Google Analytics Tracking Distorted

Discussion on how to block ads on a certain site, why your filter doesn't work or how it can be optimized

Google Analytics Tracking Distorted

Postby greiner » Sat Feb 16, 2013 11:45 am

I found this blog post about adblocking software distorted Google Analytics numbers due to the release of its new retargeting feature. To use this feature webmasters need to change their analytics code and replace this line
Code: Select all
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

with this line
Code: Select all
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

DoubleClick, however, is being blocked in some filter lists and therefore the whole tracking appears to not be working anymore. Someone from an online marketing firm replied to that on Google+, saying
"On one client site I noticed a more than 50% drop in traffic recorded in analytics once we switched over. For this client, that meant several thousand visits per day. We switched the code back after just three days. Most other clients its much lower, but almost always significant enough to warrant a switch back."
User avatar
greiner
ABP Developer
 
Posts: 486
Joined: Mon Sep 03, 2012 5:29 pm
Location: Cologne, Germany

Return to Filters for Adblock Plus

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests