crtarsorg / glasomer.rs-v2

This repo is here in case we decide not to modify the original glasomer in favour of developing an admin dashboard instead.
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Google Analytics #39

Closed dafinaolluri closed 7 years ago

dafinaolluri commented 7 years ago

Description

We need to make sure that the code contains the Google Analytics script block on every page so that we can track traffic. In the case of Glasomer, we can just re-use the same Google Analytics script block that was used in the previous version of the app (because the domain is the same!)

<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','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-76259345-1', 'auto');
  ga('send', 'pageview');

</script>