We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7709f10 commit bbaec77Copy full SHA for bbaec77
packages/analytics/src/api.ts
@@ -768,7 +768,7 @@ export type CustomEventName<T> = T extends EventNameString ? never : T;
768
export function setConsent(consentSettings: ConsentSettings): void {
769
// Check if reference to existing gtag function on window object exists
770
if (wrappedGtagFunction) {
771
- wrappedGtagFunction(GtagCommand.CONSENT, 'update', consentSettings);
+ wrappedGtagFunction(GtagCommand.CONSENT, consentSettings);
772
} else {
773
_setConsentDefaultForInit(consentSettings);
774
}
0 commit comments