]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revert back to the old snippet and just add anonymize IP.
authorXhmikosR <xhmikosr@gmail.com>
Thu, 14 Mar 2019 19:14:31 +0000 (21:14 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 18 Mar 2019 10:26:50 +0000 (12:26 +0200)
We don't need the extra bloat of gtag.

site/layouts/partials/analytics.html

index 12338bfc6e6bf011920d937626cb93a5cf135767..ded6e72448efcb11d65eff369e3eb01b1467fc59 100644 (file)
@@ -1,7 +1,7 @@
-<script async src="https://www.googletagmanager.com/gtag/js?id=UA-146052-10"></script>
 <script>
-  window.dataLayer = window.dataLayer || [];
-  function gtag(){dataLayer.push(arguments);}
-  gtag('js', new Date());
-  gtag('config', 'UA-146052-10', { 'anonymize_ip': true });
+  window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
+  ga('create', 'UA-146052-10', 'getbootstrap.com');
+  ga('set', 'anonymizeIp', true);
+  ga('send', 'pageview');
 </script>
+<script async src="https://www.google-analytics.com/analytics.js"></script>