Skip to content

Commit

Permalink
Fix analytics consent updating (firebase#8210)
Browse files Browse the repository at this point in the history
* Fix call to consent update after integrating rest operator for gtag wrapper.
  • Loading branch information
megamisan authored Apr 27, 2024
1 parent 7709f10 commit bbaec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/analytics/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ export type CustomEventName<T> = 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);
}
Expand Down

0 comments on commit bbaec77

Please sign in to comment.