zenterp / zenterp.co

The homepage serving zenterp training students
www.zenterp.co
0 stars 0 forks source link

Replace Google Analytics Tracking Code for /videos #3

Open owenkellogg opened 11 years ago

owenkellogg commented 11 years ago

Since the new /videos resource does not use the same layout as all the other controllers/views we need to update the Google Analytics Tracking script at the bottom of its layout.

The code that is there already is actually from the website from which I stole the theme (foundation.kr). Please replace the tracking script with the following:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-36236651-2', 'zenterp.co');
  ga('send', 'pageview');

</script>
ghost commented 11 years ago

It is replaced. Whether or not it works, I don't know.