Last active
August 29, 2015 14:00
-
-
Save maxbanton/11099552 to your computer and use it in GitHub Desktop.
JavaScript code intended for track that adsense advertising was blocked for display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function () { | |
if ($("ins.adsbygoogle iframe").height() == null) { | |
ga('send', 'event', 'adsense', 'blocked'); | |
} | |
else { | |
ga('send', 'event', 'adsense', 'shown'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment