From 3781386eee4d9bc1ef2cac475105946debea2799 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Tue, 27 Aug 2024 11:26:33 +0200 Subject: [PATCH] fix(analytics): set correct consent settings property name (#704) --- .changeset/tidy-icons-marry.md | 5 +++++ packages/analytics/src/web.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-icons-marry.md diff --git a/.changeset/tidy-icons-marry.md b/.changeset/tidy-icons-marry.md new file mode 100644 index 00000000..8d37968e --- /dev/null +++ b/.changeset/tidy-icons-marry.md @@ -0,0 +1,5 @@ +--- +'@capacitor-firebase/analytics': patch +--- + +fix(web): set correct consent settings property name diff --git a/packages/analytics/src/web.ts b/packages/analytics/src/web.ts index 7ee8262c..f1a5c756 100644 --- a/packages/analytics/src/web.ts +++ b/packages/analytics/src/web.ts @@ -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;