iOS Conversion Tracking

Step 1: Download and integrate the SDK.

Follow the steps in the iOS SDK Documentation to download and integrate the iOS SDK into your app.

Step 2: Implement conversion tracking.

Add the following methods into the application:didFinishLaunchingWithOptions: method of your code using your App Tracking ID. Make sure to set the log level to MMLOG_LEVEL_DEBUG to test conversion tracking.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    [MMSDK trackConversionWithGoalId:@"YOUR_APP_TRACKING_ID"];
    return YES;

You must replace YOUR_APP_TRACKING_ID with the App Tracking ID given to you by your Account Manager or when you registered on mMedia.

Note: The App Tracking ID is used as the Goal ID parameter.

Don’t have an App Tracking ID? Do one of the following:

Step 3: Test conversion tracking.

Start up your application and check your logs. Once conversion tracking is implemented, you will see a debug message similar to the one below.

2013-03-12 09:26:17.736 MMSampleApp[76261:c07] DEBUG: "Successful conversion tracking event: <CONVERSION URL>"

Once you see that response, it means that you are ready for conversion tracking!

For More Information