[www] add Google Analytics JavaScript tracking snippet code

Change-Id: I5a6c5a16be45e99196e285b79e04e41daa5abce5
Closes-Bug: #1516819
This commit is contained in:
Christian Berendt 2015-11-30 15:48:48 +01:00
parent ed0b07948c
commit 06f965d1bd
3 changed files with 13 additions and 0 deletions

View File

@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS in: {{ cssdir }}-->
{% include 'templates/css.tmpl' %}
{% include 'templates/google_analytics.tmpl' %}
</head>
<body>
{% include 'templates/header.tmpl' %}

View File

@ -0,0 +1,11 @@
<!-- Google Analytics -->
<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-17511903-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

View File

@ -10,6 +10,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS in: {{ cssdir }}-->
{% include 'templates/css.tmpl' %}
{% include 'templates/google_analytics.tmpl' %}
</head>
<body>
{% include 'templates/header.tmpl' %}