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]-->
|
<![endif]-->
|
||||||
<!-- <link href="css/ungleich.css" rel="stylesheet" type="text/css"></link> -->
|
<!-- <link href="css/ungleich.css" rel="stylesheet" type="text/css"></link> -->
|
||||||
<!-- Google tracking -->
|
<!-- Google tracking -->
|
||||||
<script src="//www.google-analytics.com/analytics.js" async></script><script>
|
<!--<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(){
|
<!--(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),
|
<!--(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)
|
<!--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');
|
<!--})(window,document,'script','//www.google-analytics.com/analytics.js','ga');-->
|
||||||
|
|
||||||
ga('create', 'UA-62285904-1', 'auto');
|
<!--ga('create', 'UA-62285904-1', 'auto');-->
|
||||||
ga('send', 'pageview');
|
<!--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">
|
<link rel="shortcut icon" href="{% static 'digitalglarus/img/favicon.ico' %}" type="image/x-icon">
|
||||||
<style id="igtranslator-color" type="text/css"></style>
|
<style id="igtranslator-color" type="text/css"></style>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
|
@ -515,8 +515,11 @@ DCL_SUPPORT_FROM_ADDRESS = env('DCL_SUPPORT_FROM_ADDRESS')
|
||||||
|
|
||||||
# Settings for Google analytics
|
# Settings for Google analytics
|
||||||
GOOGLE_ANALYTICS_PROPERTY_IDS = {
|
GOOGLE_ANALYTICS_PROPERTY_IDS = {
|
||||||
'datacenterlight.ch': 'UA-62285904-9',
|
'ungleich.ch': 'UA-62285904-1',
|
||||||
'digitalglarus.ch': 'UA-62285904-2',
|
'digitalglarus.ch': 'UA-62285904-2',
|
||||||
|
'blog.ungleich.ch': 'UA-62285904-4',
|
||||||
|
'datacenterlight.ch': 'UA-62285904-9',
|
||||||
|
|
||||||
'127.0.0.1:8000': 'localhost',
|
'127.0.0.1:8000': 'localhost',
|
||||||
'dynamicweb-development.ungleich.ch': 'development',
|
'dynamicweb-development.ungleich.ch': 'development',
|
||||||
'dynamicweb-staging.ungleich.ch': 'staging'
|
'dynamicweb-staging.ungleich.ch': 'staging'
|
||||||
|
|
|
@ -45,16 +45,19 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<script>
|
<!--<script>-->
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
<!--(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),
|
<!--(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)
|
<!--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');
|
<!--})(window,document,'script','//www.google-analytics.com/analytics.js','ga');-->
|
||||||
|
|
||||||
ga('create', 'UA-62285904-5', 'auto');
|
<!--ga('create', 'UA-62285904-5', 'auto');-->
|
||||||
ga('send', 'pageview');
|
<!--ga('send', 'pageview');-->
|
||||||
|
|
||||||
</script>
|
<!--</script>-->
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include "google_analytics.html" %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -40,6 +40,9 @@
|
||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include "google_analytics.html" %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<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/html5shiv/3.7.0/html5shiv.js"></script>
|
||||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<script>
|
<!--<script>-->
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
<!--(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),
|
<!--(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)
|
<!--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');
|
<!--})(window,document,'script','//www.google-analytics.com/analytics.js','ga');-->
|
||||||
|
|
||||||
ga('create', 'UA-62285904-5', 'auto');
|
<!--ga('create', 'UA-62285904-5', 'auto');-->
|
||||||
ga('send', 'pageview');
|
<!--ga('send', 'pageview');-->
|
||||||
|
|
||||||
</script>
|
<!--</script>-->
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include 'google_analytics.html' %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
<link href="{% static 'hosting/font-awesome/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css">
|
<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 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" />
|
<link rel="shortcut icon" href="{% static 'hosting/img/favicon.ico' %}" type="image/x-icon" />
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include 'google_analytics.html' %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% render_block "external-css" %}
|
{% render_block "external-css" %}
|
||||||
{% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
|
{% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
|
||||||
|
|
||||||
|
<!-- Google analytics -->
|
||||||
|
{% include "google_analytics.html" %}
|
||||||
|
<!-- End Google Analytics -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -60,16 +64,16 @@
|
||||||
{% bootstrap_javascript %}
|
{% bootstrap_javascript %}
|
||||||
{% endaddtoblock %}
|
{% endaddtoblock %}
|
||||||
{% addtoblock "js" %}
|
{% addtoblock "js" %}
|
||||||
<script>
|
<!--<script>-->
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
<!--(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),
|
<!--(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)
|
<!--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');
|
<!--})(window,document,'script','//www.google-analytics.com/analytics.js','ga');-->
|
||||||
|
|
||||||
ga('create', 'UA-62285904-4', 'auto');
|
<!--ga('create', 'UA-62285904-4', 'auto');-->
|
||||||
ga('send', 'pageview');
|
<!--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/vendor/js/jquery.min.js' %}" type="text/javascript" />
|
||||||
<script src="{% static 'blog.ungleich.ch/js/navbar-scroll-up.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">
|
<link href="{% static 'ungleich_page/css/ungleich.css' %}" rel="stylesheet">
|
||||||
|
|
||||||
|
|
||||||
<!-- Google tracking -->
|
<!--<!– Google tracking –>-->
|
||||||
<script src="//www.google-analytics.com/analytics.js" async></script>
|
<!--<script src="//www.google-analytics.com/analytics.js" async></script>-->
|
||||||
<script>
|
<!--<script>-->
|
||||||
(function (i, s, o, g, r, a, m) {
|
<!--(function (i, s, o, g, r, a, m) {-->
|
||||||
i['GoogleAnalyticsObject'] = r;
|
<!--i['GoogleAnalyticsObject'] = r;-->
|
||||||
i[r] = i[r] || function () {
|
<!--i[r] = i[r] || function () {-->
|
||||||
(i[r].q = i[r].q || []).push(arguments)
|
<!--(i[r].q = i[r].q || []).push(arguments)-->
|
||||||
}, i[r].l = 1 * new Date();
|
<!--}, i[r].l = 1 * new Date();-->
|
||||||
a = s.createElement(o),
|
<!--a = s.createElement(o),-->
|
||||||
m = s.getElementsByTagName(o)[0];
|
<!--m = s.getElementsByTagName(o)[0];-->
|
||||||
a.async = 1;
|
<!--a.async = 1;-->
|
||||||
a.src = g;
|
<!--a.src = g;-->
|
||||||
m.parentNode.insertBefore(a, m)
|
<!--m.parentNode.insertBefore(a, m)-->
|
||||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
<!--})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');-->
|
||||||
|
|
||||||
ga('create', 'UA-62285904-1', 'auto');
|
<!--ga('create', 'UA-62285904-1', 'auto');-->
|
||||||
ga('send', 'pageview');
|
<!--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">
|
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
|
||||||
<style id="igtranslator-color" type="text/css"></style>
|
<style id="igtranslator-color" type="text/css"></style>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue