Ad Block Plus Review
Ad blocking software like Ad Block Plus had become main tributary and now create a significant hazard to web businesses that are dependent on online advertisements. Google and Amazon are facing severe problems with this Ad Block so that they are paying money for the writers to white list . This may be seen as some kind of extortion but with billions of dollars at stake, the advertising companies have chosen to take the more profitable route.
It thought that ~5% of website visitors are blocking ads (PDF report) and the situation could be far worse to the websites that have a much tech-savvy audience. If you are eager to know how many members are visiting your own site is blocking Adsense and other ads then we have a small trick
Track Ad block Users with Google Analytics
Open your website pattern and copy-paste the snippet below before the closing body. This code will notice the displaying of ad blocking software on the visitor’s browser and, if it founded, an event gets logged into your Google Analytics account.
- <script>
- window.onload = function() {
- // Delay to allow the async Google Ads to load
- setTimeout(function() {
- // Get the first AdSense ad unit on the page
- var ad = document.querySelector(“ins.adsbygoogle”);
- // If the ads are not loaded, track the event
- if (ad && ad.innerHTML.replace(/\s/g, “”).length == 0) {
- if (typeof ga !== ‘undefined’) {
- // Log an event in Universal Analytics
- // but without affecting overall bounce rate
- ga(‘send’, ‘event’, ‘Adblock’, ‘Yes’, {‘nonInteraction’: 1});
- } else if (typeof _gaq !== ‘undefined’) {
- // Log a non-interactive event in old Google Analytics
- _gaq.push([‘_trackEvent’, ‘Adblock’, ‘Yes’, undefined, undefined, true]);
- }
- }
- }, 2000); // Run ad block detection 2 seconds after page load
- };
- </script>
The snippet will be working for both Universal Analytics and the older version of Google Analytics tracker that will use the _gaq object. As a web publisher, you have the only option is to serve swap content to Ad Block users so the visitors at least watch some content in the place of ads.
One big warning though – it will fail if the ad block extension installed on the visitor’s computer has blocked Google Analytics as well. Some of the accepted options like μBlock, NoScript and Ghostery will do block Google Analytics so it won’t help you to track and you may have to construct your own in-house solution – like download an image and upload to your own server and count the hits of that image by Apache server logs.
This is all about visitors are blocking ads while seeing the websites. So By using this Analytics Snippet We Can find how many visitors are not viewing the ads.
You May Also like: Track Google Spreadsheet Views