Anonymous Tracking

Prev Next

Anonymous tracking sends requests without generating or storing an everID. This avoids user-level recognition in Mapp Intelligence at the cost of significantly reduced data quality. Use it only when explicitly required by your data privacy team.

Important: Anonymous tracking impacts session detection (causing session breaks) and user recognition between sessions. User matching between Mapp Engage and Mapp Intelligence does not work while anonymous tracking is active.

What is unavailable while anonymous tracking is active

  • Migrating from iOS SDK v4 to v5 without loss of historical data

  • Reading the everID via Get the User Ever ID

  • Seeding the everID at initialization (andWithEverID:)

  • User matching between Mapp Engage and Mapp Intelligence (see User Matching)

Properties and methods

API

Description

Default

anonymousTracking (BOOL property)

Enables anonymous tracking without suppressing additional parameters.

false

enableAnonymousTracking(_ suppressParams: [String]?)

Enables anonymous tracking and additionally suppresses the listed parameters or tags from each request.

setTemporarySessionId(_ id: String)

Sets a temporary, session-scoped user ID while anonymous tracking is active.

Examples

Anonymous tracking must be enabled before calling initWithConfiguration(...) if you want it active from the very first request.

Enable anonymous tracking globally

// In AppDelegate.application(_:didFinishLaunchingWithOptions:)
MappIntelligence.shared()?.anonymousTracking = true
MappIntelligence.shared()?.setTemporarySessionId("user-xyz-123456789")
MappIntelligence.shared()?.initWithConfiguration(
    [123451234512345],
    onTrackdomain: "https://your-trackdomain.com"
)
[[MappIntelligence shared] setAnonymousTracking:YES];
[[MappIntelligence shared] setTemporarySessionId:@"user-xyz-123456789"];
[[MappIntelligence shared]
    initWithConfiguration:@[@123451234512345]
            onTrackdomain:@"https://your-trackdomain.com"];

Toggle anonymous tracking at runtime

@IBAction func toggleAnonymousTracking(_ sender: UISwitch) {
    if sender.isOn {
        // Enable anonymous tracking and suppress the customer visitor ID:
        MappIntelligence.shared()?.enableAnonymousTracking(["cd"])
        MappIntelligence.shared()?.setTemporarySessionId("user-xyz-123456789")
    } else {
        MappIntelligence.shared()?.anonymousTracking = false
    }
}
- (IBAction)toggleAnonymousTracking:(UISwitch *)sender {
    if (sender.isOn) {
        [[MappIntelligence shared] enableAnonymousTracking:@[@"cd"]];
        [[MappIntelligence shared] setTemporarySessionId:@"user-xyz-123456789"];
    } else {
        [[MappIntelligence shared] setAnonymousTracking:NO];
    }
}

Related pages: Opt-out of Tracking, User Matching.