Distinguish between indexable and non-indexable extra data
This commit is contained in:
parent
fa8d7b73c7
commit
fe9224b807
10 changed files with 69 additions and 11 deletions
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue