Ad  Block Plus Review

website-ads

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.

  1. <script>
  2. window.onload = function() {
  3. // Delay to allow the async Google Ads to load
  4. setTimeout(function() {
  5. // Get the first AdSense ad unit on the page
  6. var ad = document.querySelector(“ins.adsbygoogle”);
  7. // If the ads are not loaded, track the event
  8. if (ad && ad.innerHTML.replace(/\s/g, “”).length == 0) {
  9.  
  10. if (typeof ga !== ‘undefined’) {
  11.  
  12. // Log an event in Universal Analytics
  13. // but without affecting overall bounce rate
  14. ga(‘send’, ‘event’, ‘Adblock’, ‘Yes’, {‘nonInteraction’: 1});
  15.  
  16. } else if (typeof _gaq !== ‘undefined’) {
  17.  
  18. // Log a non-interactive event in old Google Analytics
  19. _gaq.push([‘_trackEvent’, ‘Adblock’, ‘Yes’, undefined, undefined, true]);
  20.  
  21. }
  22. }
  23. }, 2000); // Run ad block detection 2 seconds after page load
  24. };
  25. </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