Merge "Add Google Analytics JavaScript tracking snippet code"

This commit is contained in:
Jenkins 2015-11-30 21:06:25 +00:00 committed by Gerrit Code Review
commit 06a856a457
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.