analytics.html 468 B

123456789101112
  1. {% if GOOGLE_ANALYTICS %}
  2. <script>
  3. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  4. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  5. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  6. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  7. ga('create', '{{GOOGLE_ANALYTICS}}', 'auto');
  8. ga('send', 'pageview');
  9. </script>
  10. {% endif %}