Add GA to all important apps

This commit is contained in:
Andrii Marynets 2017-07-13 22:53:15 +03:00
commit a8be59d7a2
8 changed files with 83 additions and 59 deletions

View file

@ -32,25 +32,28 @@
<link href="{% static 'ungleich_page/css/ungleich.css' %}" rel="stylesheet">
<!-- Google tracking -->
<script src="//www.google-analytics.com/analytics.js" async></script>
<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');
<!--&lt;!&ndash; Google tracking &ndash;&gt;-->
<!--<script src="//www.google-analytics.com/analytics.js" async></script>-->
<!--<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-62285904-1', 'auto');
ga('send', 'pageview');
<!--ga('create', 'UA-62285904-1', 'auto');-->
<!--ga('send', 'pageview');-->
</script>
<!--</script>-->
<!-- Google analytics -->
{% include "google_analytics.html" %}
<!-- End Google Analytics -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<style id="igtranslator-color" type="text/css"></style>
</head>