ソースを参照

Удалена старая гугл аналитика

vadeg_ne@mail.ru 1 年間 前
コミット
b2049ac21d
1 ファイル変更0 行追加39 行削除
  1. 0 39
      views/layouts/header/metrics.php

+ 0 - 39
views/layouts/header/metrics.php

@@ -1,45 +1,6 @@
 <?php
 ?>
 
-    <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-21345164-1", "auto");
-        ga("send", "pageview");
-        if (
-            !document.referrer ||
-            document.referrer
-                .split("/")[2]
-                .indexOf(location.hostname) != 0
-        )
-            setTimeout(function() {
-                ga(
-                    "send",
-                    "event",
-                    "New visitor",
-                    location.pathname
-                );
-            }, 15000);
-    </script>
-
 <!-- Google tag (gtag.js) -->
 <script async src="https://www.googletagmanager.com/gtag/js?id=G-B56TR2TLTN"></script>
 <script>