Pages

Tuesday, March 6, 2012

Google Analytics Tracking Code is Broken (as of Mar 2012)




Google Analytics Tracking Code is Broken (seen Mar 2012)
{script type="text/javascript"}

  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-########-1']);

  _gaq.push(['_trackPageview']);

  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();


{/script} --- note tag change


If http://www.google-analytics.com/ga.js is not loading for you I have a fix. 

Also in the ga.js code some references fail. 

I have a fix for this - $10.00. 

No comments:

Post a Comment