0

UTM Source & Campaign iOS Context

Hi, 

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"
      properties:nil
      options:@{ @"context": @{@"ip": @"0.0.0.0"}}];

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

    Yannick

    Reply Upvote