forked from external-repos/squoosh
Don't fire install analytics on hidden pages
This commit is contained in:
@@ -24,7 +24,7 @@ if (typeof PRERENDER === 'undefined') {
|
||||
ga('create', 'UA-128752250-1', 'auto');
|
||||
ga('set', 'transport', 'beacon');
|
||||
ga('set', 'dimension1', displayMode);
|
||||
ga('send', 'pageview');
|
||||
ga('send', 'pageview', '/index.html', { title: 'Squoosh' });
|
||||
// Load the GA script
|
||||
const s = document.createElement('script');
|
||||
s.src = 'https://www.google-analytics.com/analytics.js';
|
||||
|
||||
Reference in New Issue
Block a user