Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chrisglass/tribaal-mnmlist
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisglass committed Jul 24, 2015
2 parents 68e6af6 + 57f26e6 commit 86e73b5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions templates/analytics.html
@@ -1,11 +1,12 @@
{% if GOOGLE_ANALYTICS %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript async src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
<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', '{{GOOGLE_ANALYTICS}}', 'auto');
ga('send', 'pageview');

</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
pageTracker._trackPageview();
} catch(err) {}</script>
{% endif %}

0 comments on commit 86e73b5

Please sign in to comment.