From 7a9d8c2e9607e262253999904064e8a9aa4db9cc Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Mon, 8 Apr 2024 15:56:46 +0200 Subject: [PATCH] Don't use google analytics (#754) --- src/_js/main.js | 14 -------------- src/sw.js | 2 -- 2 files changed, 16 deletions(-) diff --git a/src/_js/main.js b/src/_js/main.js index 011ab23f2..ed04bfb71 100644 --- a/src/_js/main.js +++ b/src/_js/main.js @@ -71,18 +71,4 @@ // set the location to `location.pathname` directly. history.replaceState({}, '', location.pathname); } - - // Google Analytics. - const UA_ID = 'UA-65961526-1'; - self.GoogleAnalyticsObject = 'ga'; - self.ga = function() { - ga.q.push(arguments); - }; - ga.l = +new Date(); - ga.q = []; - ga('create', UA_ID, 'auto'); - ga('set', 'referrer', document.referrer.split('?')[0]); - ga('send', 'pageview'); - insertScript('https://www.google-analytics.com/analytics.js'); - }()); diff --git a/src/sw.js b/src/sw.js index 8ff3dffa0..daa2bfb03 100644 --- a/src/sw.js +++ b/src/sw.js @@ -20,6 +20,4 @@ workbox.core.setCacheNameDetails({ // Note: this is populated at build time. workbox.precaching.precacheAndRoute([]); -workbox.googleAnalytics.initialize({}); - workbox.skipWaiting();