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
+3 -1
+3 -1
View File
@@ -21,6 +21,7 @@
<script src="/app.js"></script>
<script>
if(window.location.host.indexOf('localhost') === -1){
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
@@ -34,7 +35,8 @@
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-60209057-1', 'auto');
// ga('send', 'pageview');
//ga('send', 'pageview');
}
</script>
</head>
<body>