Skip to content

Commit

Permalink
Don't use google analytics (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni authored Apr 8, 2024
1 parent f6c98e6 commit 7a9d8c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
14 changes: 0 additions & 14 deletions src/_js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

}());
2 changes: 0 additions & 2 deletions src/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ workbox.core.setCacheNameDetails({
// Note: this is populated at build time.
workbox.precaching.precacheAndRoute([]);

workbox.googleAnalytics.initialize({});

workbox.skipWaiting();

0 comments on commit 7a9d8c2

Please sign in to comment.