Code review comment for lp:~svwilliams/loco-team-portal/google-analytics

Revision history for this message
Stephen V. Williams (svwilliams) wrote :

Its an email I received from Chris

Here are the instructions for implementing Google Analytics on our website.

For more information, see http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

Copy the following code, then paste it onto every page you want to track immediately before the closing </head>tag.

<script type="text/javascript">

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

Thank you for your assistance!

« Back to merge proposal