Skip to content

Commit 0561323

Browse files
authored
Merge pull request #843 from Iterable/evan/MOB-9751
[MOB-9751] adds check for anon tracking enablement and updates logging
2 parents 42d3b6f + 956048c commit 0561323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-sdk/Internal/InternalIterableAPI.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ final class InternalIterableAPI: NSObject, PushTrackerProtocol, AuthProvider {
223223
self.localStorage.anonymousUsageTrack = isAnonymousUsageTracked
224224
self.localStorage.anonymousUserEvents = nil
225225
self.localStorage.anonymousSessions = nil
226-
if isAnonymousUsageTracked {
227-
ITBInfo("CONSENT GIVEN - Criteria fetched")
226+
if isAnonymousUsageTracked && config.enableAnonTracking {
227+
ITBInfo("CONSENT GIVEN and ANON TRACKING ENABLED - Criteria fetched")
228228
self.anonymousUserManager.getAnonCriteria()
229229
self.anonymousUserManager.updateAnonSession()
230230
}

0 commit comments

Comments
 (0)