From 796d07d1e6da4b43927a886c76adc71060e73908 Mon Sep 17 00:00:00 2001 From: Erik Henningson Date: Sat, 15 May 2021 12:01:42 +0200 Subject: [PATCH] Fix duplicate pageview tracking. (#36) --- .../GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts b/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts index aae0dad..f18e850 100644 --- a/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts +++ b/src/Blazor.Analytics/GoogleAnalytics/Resources/GoogleAnalyticsInterop.ts @@ -27,7 +27,7 @@ namespace GoogleAnalyticsInterop document.head.appendChild(script); - gtag("config", trackingId); + gtag("config", trackingId, { 'send_page_view': false }); if(this.debug){ console.log(`[GTAG][${trackingId}] Configured!`);