Code: Select all
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
Code: Select all
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
"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."