Add GA to all important apps
This commit is contained in:
parent
f6ef24d8e6
commit
a8be59d7a2
8 changed files with 75 additions and 51 deletions
|
@ -46,16 +46,19 @@
|
|||
<![endif]-->
|
||||
<!-- <link href="css/ungleich.css" rel="stylesheet" type="text/css"></link> -->
|
||||
<!-- 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');
|
||||
<!--<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="{% static 'digitalglarus/img/favicon.ico' %}" type="image/x-icon">
|
||||
<style id="igtranslator-color" type="text/css"></style>
|
||||
<style type="text/css">
|
||||
|
|
|
@ -515,8 +515,11 @@ DCL_SUPPORT_FROM_ADDRESS = env('DCL_SUPPORT_FROM_ADDRESS')
|
|||
|
||||
# Settings for Google analytics
|
||||
GOOGLE_ANALYTICS_PROPERTY_IDS = {
|
||||
'datacenterlight.ch': 'UA-62285904-9',
|
||||
'ungleich.ch': 'UA-62285904-1',
|
||||
'digitalglarus.ch': 'UA-62285904-2',
|
||||
'blog.ungleich.ch': 'UA-62285904-4',
|
||||
'datacenterlight.ch': 'UA-62285904-9',
|
||||
|
||||
'127.0.0.1:8000': 'localhost',
|
||||
'dynamicweb-development.ungleich.ch': 'development',
|
||||
'dynamicweb-staging.ungleich.ch': 'staging'
|
||||
|
|
|
@ -45,16 +45,19 @@
|
|||
}
|
||||
</style>
|
||||
{% endwith %}
|
||||
<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');
|
||||
<!--<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-5', 'auto');
|
||||
ga('send', 'pageview');
|
||||
<!--ga('create', 'UA-62285904-5', 'auto');-->
|
||||
<!--ga('send', 'pageview');-->
|
||||
|
||||
</script>
|
||||
<!--</script>-->
|
||||
<!-- Google analytics -->
|
||||
{% include "google_analytics.html" %}
|
||||
<!-- End Google Analytics -->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Google analytics -->
|
||||
{% include "google_analytics.html" %}
|
||||
<!-- End Google Analytics -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -31,16 +31,19 @@
|
|||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<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');
|
||||
<!--<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-5', 'auto');
|
||||
ga('send', 'pageview');
|
||||
<!--ga('create', 'UA-62285904-5', 'auto');-->
|
||||
<!--ga('send', 'pageview');-->
|
||||
|
||||
</script>
|
||||
<!--</script>-->
|
||||
<!-- Google analytics -->
|
||||
{% include 'google_analytics.html' %}
|
||||
<!-- End Google Analytics -->
|
||||
|
||||
</head>
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
<link href="{% static 'hosting/font-awesome/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css">
|
||||
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
|
||||
<link rel="shortcut icon" href="{% static 'hosting/img/favicon.ico' %}" type="image/x-icon" />
|
||||
|
||||
<!-- Google analytics -->
|
||||
{% include 'google_analytics.html' %}
|
||||
<!-- End Google Analytics -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
@ -34,6 +34,10 @@
|
|||
{% endblock %}
|
||||
{% render_block "external-css" %}
|
||||
{% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||
|
||||
<!-- Google analytics -->
|
||||
{% include "google_analytics.html" %}
|
||||
<!-- End Google Analytics -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -60,16 +64,16 @@
|
|||
{% bootstrap_javascript %}
|
||||
{% endaddtoblock %}
|
||||
{% addtoblock "js" %}
|
||||
<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');
|
||||
<!--<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-4', 'auto');
|
||||
ga('send', 'pageview');
|
||||
<!--ga('create', 'UA-62285904-4', 'auto');-->
|
||||
<!--ga('send', 'pageview');-->
|
||||
|
||||
</script>
|
||||
<!--</script>-->
|
||||
|
||||
<script src="{% static 'blog.ungleich.ch/vendor/js/jquery.min.js' %}" type="text/javascript" />
|
||||
<script src="{% static 'blog.ungleich.ch/js/navbar-scroll-up.js' %}" type="text/javascript" />
|
||||
|
|
|
@ -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');
|
||||
<!--<!– 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');-->
|
||||
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue