[www] add Google Analytics JavaScript tracking snippet code
Change-Id: I5a6c5a16be45e99196e285b79e04e41daa5abce5 Closes-Bug: #1516819
This commit is contained in:
parent
ed0b07948c
commit
06f965d1bd
@ -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' %}
|
||||
|
11
www/templates/google_analytics.tmpl
Normal file
11
www/templates/google_analytics.tmpl
Normal 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 -->
|
@ -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' %}
|
||||
|
Loading…
Reference in New Issue
Block a user