main page analytics for production only by host checking;

This commit is contained in:
tmshv committed 2015-07-14 03:30:47 +03:00
1 parent 840502c68f
commit 5e14fe465c
1 file changed
+15 -13
+15 -13
View File
@@ -21,20 +21,22 @@
<script src="/app.js"></script> <script src="/app.js"></script>
<script> <script>
(function (i, s, o, g, r, a, m) { if(window.location.host.indexOf('localhost') === -1){
i['GoogleAnalyticsObject'] = r; (function (i, s, o, g, r, a, m) {
i[r] = i[r] || function () { i['GoogleAnalyticsObject'] = r;
(i[r].q = i[r].q || []).push(arguments) i[r] = i[r] || function () {
}, i[r].l = 1 * new Date(); (i[r].q = i[r].q || []).push(arguments)
a = s.createElement(o), }, i[r].l = 1 * new Date();
m = s.getElementsByTagName(o)[0]; a = s.createElement(o),
a.async = 1; m = s.getElementsByTagName(o)[0];
a.src = g; a.async = 1;
m.parentNode.insertBefore(a, m) a.src = g;
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-60209057-1', 'auto'); ga('create', 'UA-60209057-1', 'auto');
// ga('send', 'pageview'); //ga('send', 'pageview');
}
</script> </script>
</head> </head>
<body> <body>