Merge "[www] add Google Analytics JavaScript tracking snippet code"

This commit is contained in:
Jenkins 2015-12-02 22:35:38 +00:00 committed by Gerrit Code Review
commit 369e9cc4a7
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' %}