From a0d5570ebc025c063fcd8e06d84d73781d8c006b Mon Sep 17 00:00:00 2001 From: Josh Radcliff Date: Fri, 5 Jan 2024 12:02:20 -0500 Subject: [PATCH] Update consent.eta in src/public Applies the fix in https://github.com/googleanalytics/ga4-tutorials/pull/10 to the `src/public/partials/consent.eta` file as well. --- src/public/partials/consent.eta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/partials/consent.eta b/src/public/partials/consent.eta index 6d65270..3230ae8 100644 --- a/src/public/partials/consent.eta +++ b/src/public/partials/consent.eta @@ -59,7 +59,7 @@ 'analytics_storage': consent.analytics ? 'granted' : 'denied', 'personalization': consent.preferences ? 'granted' : 'denied', }; - gtag('consent', 'update', consent); + gtag('consent', 'update', consentMode); localStorage.setItem('consentMode', JSON.stringify(consentMode)); }