Set Campaign Variable (Tracking Code) in iOS Mobile App

Objective

Set Campaign Variable (Tracking Code) in iOS Mobile App.

Environment

Adobe Mobile Services
iOS

Steps

To set the campaign variable, set a context data key to "&&campaign", and set the value by using the syntax that is defined for the campaign variable:

[contextData setObject:@"App Campaign" forKey:@"&&campaign"];

For Example:

//create a context data dictionary
NSMutableDictionary *contextData = [NSMutableDictionary dictionary];

// Note the special syntax for Campaign
[contextData setObject:@"App Campaign" forKey:@"&&campaign"];

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책