Adblock Detection for Google AdSense: Check if AdSense is being blocked using Analytics

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 88 All time: 439 This week: 4Up
Version License JavaScript version Categories
adblock-detector 1.0GNU General Publi...1.0HTML, Events
Description Author

This object can check if AdSense is being blocked using Analytics.

It can check if certain HTML elements of AdSense ads are present in the current page.

The object will send events to Google Analytics depending on whether AdSense ads were found in the pages or not.

Innovation Award
JavaScript Programming Innovation award winner
March 2015

Prize: One book of choice by Packt
Nowadays, many users use browser extensions to block ads that appear on site pages.

Usually Webmasters are not aware of how many of their site users are blocking ads on their pages.

This package can help detecting which users are blocking AdSense ads or not by checking the presence of certain tags generated by AdSense ads.

The results of the detection are reported via Google Analytics API.

Manuel Lemos
Picture of Suresh Kumar
Name: Suresh Kumar <contact>
Classes: 4 packages by
Country: India India
Age: ???
All time rank: 665 in India India
Week rank: 6 Up1 in India India Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x


Adblock detector for google-adsense

Detects if user is using adblock or not and sends the tracking data to google analytics.

  • google-analytics.png
  Files folder image Files  
File Role Description
Plain text file adblock-detector.js Class Class source
Accessible without login HTML file example.html Doc. Example usage
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file Data Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:439
This week:4Up
User Comments (1)