Siyavula / ThunderboltKids

0 stars 2 forks source link

Google Analtyics tracking not registering #27

Closed marknewlyn closed 11 years ago

marknewlyn commented 11 years ago

I'm not seeing anything coming through to Google Analytics, the tracking code doesn't seem to be in the footer, the code we need to add to the footer is:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36714231-1']);
  _gaq.push(['_setDomainName', 'thunderboltkids.co.za']);
  _gaq.push(['_setAllowLinker', true]);
  _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>
nicoladt commented 11 years ago

It needs to go in headers. Added to index.html and Grade4/01-life-and-living/chapter1.html headers. Ewald needs to script this to copy into all the other headers.

nicoladt commented 11 years ago

Pushed to gh-pages. Should be working.