openstack-manuals/www/templates/google_analytics.tmpl
Christian Berendt 06f965d1bd [www] add Google Analytics JavaScript tracking snippet code
Change-Id: I5a6c5a16be45e99196e285b79e04e41daa5abce5
Closes-Bug: #1516819
2015-11-30 15:49:11 +01:00

12 lines
452 B
Cheetah

<!-- 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 -->