Add Google Analytics JavaScript tracking snippet code

Change-Id: I1ce08f72fbac451f86c6d551d7fa445ccbc8a5da
Closes-Bug: #1516819
This commit is contained in:
Christian Berendt 2015-11-17 14:08:26 +01:00
parent 7ab7dbe186
commit f235ad6b54
2 changed files with 15 additions and 0 deletions

View File

@ -13,6 +13,17 @@
{% if favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/favicon.ico') }}"/>
{% endif %}
<!-- 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 -->
</head>
<body>
{% include 'header.html' %}

View File

@ -0,0 +1,4 @@
---
fixes:
- Add Google Analytics JavaScript tracking snippet code to resolve
Launchpad bug #1516819.