Oracle Help Center | Oracle Responsys Mobile App Platform Cloud Service title

Rapid Retargeter for iOS

Overview

To modify your mobile app to support Rapid Retargeter, you must add code to your mobile app. This code must do the following:

The following sections show the modifications to make to your iOS apps.

Reporting the Rapid Retargeter Event in your mobile app

Add the Rapid Retargeter event code to the places in your code that handle the user's action.

In the following syntax examples: <rapid_retargeter_event_name> is the name of the Rapid Retargeter event (for example, $AddedItemToCart). You must express the attributes as key value pairs. For example, for the $AddedItemToCart event, your "<name1>":"<value1>" would be "Pid":"123" (the Product ID attribute and its value).

Syntax:
[[PushIOManager sharedInstance] trackEvent:@"<rapid_retargeter_event_name>" withAttributes:@{ @"<name1>": @"<value1>", @"<name2>": @"<value2>",...@"<nameN>": @"<valueN>" }]

Example:
[[PushIOManager sharedInstance] trackEvent:@"$AddedItemToCart" withAttributes:@{ @"Pid": @"123", @"Pc": @"Shoes" }]
        
Syntax:
PushIOManager.sharedInstance().trackEvent("<rapid_retargeter_event_name>", properties: ["<name1>":"<value1>", "<name2>":"<value2>",..."<nameN>":"<valueN>"])

Example:
PushIOManager.sharedInstance().trackEvent("$AddedItemToCart", properties: ["Pid": "123", "Pc":"Shoes"])
        

Examples

To report the Rapid Retargeter events from the mobile device to Responsys, use trackEvent and pass the event attributes, as shown in the following examples.

PushIOManager.sharedInstance()?.trackEvent("$Searched", properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Browse

PushIOManager.sharedInstance()?.trackEvent("$Browsed",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Item added in cart

PushIOManager.sharedInstance()?.trackEvent("$AddedItemToCart",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Item removed from cart

PushIOManager.sharedInstance()?.trackEvent("$RemovedItemFromCart",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Cart cleared

PushIOManager.sharedInstance()?.trackEvent("$ClearedCart",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Cart stage updated

PushIOManager.sharedInstance()?.trackEvent("$UpdatedStageOfCart",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

Purchase

PushIOManager.sharedInstance()?.trackEvent("$PurchasedCart",properties:["shirt":"Lenin","quantity":"1", "price":"20$"])

See Mobile Events for more information about each event type and its attributes.