Google analytics code needs to be updated

Bug #1011128 reported by anatoly techtonik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Twisted Website
New
Undecided
Unassigned

Bug Description

Chrome page inspector reports JS errors in Google Analytics code that most likely was deprecated long ago.

Uncaught ReferenceError: urchinTracker is not defined
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
            <script type="text/javascript">
                _uacct = "UA-99018-6";
                urchinTracker();
Uncaught ReferenceError: urchinTracker is not defined
            </script>

This should be replaced with:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-99018-6']);
  _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>

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.