Skip to content

Commit bbaec77

Browse files
authored
Fix analytics consent updating (firebase#8210)
* Fix call to consent update after integrating rest operator for gtag wrapper.
1 parent 7709f10 commit bbaec77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/analytics/src/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ export type CustomEventName<T> = T extends EventNameString ? never : T;
768768
export function setConsent(consentSettings: ConsentSettings): void {
769769
// Check if reference to existing gtag function on window object exists
770770
if (wrappedGtagFunction) {
771-
wrappedGtagFunction(GtagCommand.CONSENT, 'update', consentSettings);
771+
wrappedGtagFunction(GtagCommand.CONSENT, consentSettings);
772772
} else {
773773
_setConsentDefaultForInit(consentSettings);
774774
}

0 commit comments

Comments
 (0)