Integrate the Android SDK
Runtime Toggles
Enable and Use Analytics on Android
Enable and Use Analytics on iOS
Track Custom Events
Integrate with Other Platforms
Handle URLs
Changelog
Enable analytics in your mobile app using MobileAppMessagingConfig.builder() to set the necessary parameters.
analyticsEnabled parameter to true.1SFMCSdk.configure(applicationContext as Application, SFMCSdkModuleConfig.build {
2 mamModuleConfig = MobileAppMessagingConfig.builder().apply {
3 analyticsEnabled(true) // Enable analytics, default = false
4 }.build()
5}) {
6 // Handle initialization status
7}