Distinguish between indexable and non-indexable extra data

This commit is contained in:
Jorge Martín 2025-12-16 17:45:56 +01:00 committed by Jorge Martin Espinosa
parent fa8d7b73c7
commit fe9224b807
10 changed files with 69 additions and 11 deletions

View file

@ -149,9 +149,15 @@ class DefaultAnalyticsService(
}
}
override fun addUserData(key: String, value: String) {
override fun addExtraData(key: String, value: String) {
if (userConsent.get()) {
analyticsProviders.onEach { it.addUserData(key, value) }
analyticsProviders.onEach { it.addExtraData(key, value) }
}
}
override fun addIndexableData(key: String, value: String) {
if (userConsent.get()) {
analyticsProviders.onEach { it.addIndexableData(key, value) }
}
}