UTM Source & Campaign iOS Context


I would like to use the equivalent of AnalyticsContext.Campaign (Android) with iOS to track the source, but I can not find the equivalent for iOS, it exists?

Thanks ! 

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi Pierre

    Thanks for reaching out! You should be able to pass campaign info into your tracking calls as described here in our iOS docs. This example shows how you can access the context object in a tracking call for anonymizing IP, by accessing context.ip:

    [[SEGAnalytics sharedAnalytics] track: @"Clicked Button"
      options:@{ @"context": @{@"ip": @""}}];

    Similarly, you should be able to access context.campaign when firing any calls.
    I hope that helps.


    Reply Upvote