diff --git a/packages/analytics/src/api.ts b/packages/analytics/src/api.ts index baf136b3e35..ed63d2b0e25 100644 --- a/packages/analytics/src/api.ts +++ b/packages/analytics/src/api.ts @@ -768,7 +768,7 @@ export type CustomEventName = T extends EventNameString ? never : T; export function setConsent(consentSettings: ConsentSettings): void { // Check if reference to existing gtag function on window object exists if (wrappedGtagFunction) { - wrappedGtagFunction(GtagCommand.CONSENT, 'update', consentSettings); + wrappedGtagFunction(GtagCommand.CONSENT, consentSettings); } else { _setConsentDefaultForInit(consentSettings); }