From 77212386c02b9ea3740d1c9a18ff7cf39e52712c Mon Sep 17 00:00:00 2001 From: XhmikosR <xhmikosr@gmail.com> Date: Thu, 14 Mar 2019 21:14:31 +0200 Subject: [PATCH] Revert back to the old snippet and just add anonymize IP. We don't need the extra bloat of gtag. --- site/_includes/analytics.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/_includes/analytics.html b/site/_includes/analytics.html index 12338bfc6e..ded6e72448 100644 --- a/site/_includes/analytics.html +++ b/site/_includes/analytics.html @@ -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> -- GitLab