Forum Moderators: martinibuster
Ad blocker tracking script for Analytics + AdSense
<script>
if(typeof adsbygoogle !== "undefined") {
window.addEventListener('load', function() {
if(typeof adsbygoogle.loaded === "undefined" && typeof ga !== "undefined") {
ga('send', 'event', 'AdSense', 'Ads blocked', { "nonInteraction": 1 });
}
}, false);
}
</script> <script>
if(typeof adsbygoogle !== "undefined") {
window.addEventListener('load', function() {
if(typeof ga !== "undefined") {
if(typeof adsbygoogle.loaded === "undefined") {
ga('send', 'event', 'AdSense', 'Ads blocked', { "nonInteraction": 1 });
} else {
ga('send', 'event', 'AdSense', 'Ads not blocked', { "nonInteraction": 1 });
}
}
}, false);
}
</script> [edited by: robzilla at 12:17 am (utc) on Nov 12, 2015]
[edited by: tangor at 12:22 am (utc) on Nov 12, 2015]
And most ad blockers and script killers deal with js from the get go.
Disable all JS and you'll break your web experience; it's not for everyone.
@robzilla, does the script You mention still sends data to G for FireFox users that have Private mode enabled?
This information has little value to me though; it is what it is.
You may not copy, emulate, clone, rent, lease, sell, modify, decompile, disassemble, otherwise reverse engineer, or transfer any program...