0

MarketingCloud analytics for tracking push notifcations can be enabled by calling setAnalyticsEnabled(true) on the PushConfigBuilder instance when initializing SFMCSdk, as explained here.

We would like to enable/disable analytics according to user consent for tracking, to make our app 100% GDPR compliant.

In our app user can update user consent multiple times, so is there a way to enable/disable MC analytics without reinitialising SDK?

1
  • We're working on adding runtime feature toggles in our next release. Stay tuned! Oct 3, 2023 at 20:56

1 Answer 1

0

Please checkout the new Mobile Push SDK (8.1.0) and SFMCSDK (1.1.0)! You can now use the Runtime Toggles API to enable/disabled features like Analytics, Location, and Inbox Messages.

SFMCSdk.requestPushSdk { mp in
    mp.setAnalyticsEnabled(false)
    
    let _ = mp.isAnalyticsEnabled()
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .