Skip to content

Commit

Permalink
fix(analytics): set correct consent settings property name (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored Aug 27, 2024
1 parent 224c8b5 commit 3781386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tidy-icons-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@capacitor-firebase/analytics': patch
---

fix(web): set correct consent settings property name
2 changes: 1 addition & 1 deletion packages/analytics/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class FirebaseAnalyticsWeb
const consentSettings: ConsentSettings = {};
switch (options.type) {
case ConsentType.AdPersonalization:
consentSettings.personalization_storage = status;
consentSettings.ad_personalization = status;
break;
case ConsentType.AdStorage:
consentSettings.ad_storage = status;
Expand Down

0 comments on commit 3781386

Please sign in to comment.