Silver Egg Recommendation Messages¶
In order to display the Silver Egg Recommendation Message in the in-app message, additional implementation is required in your app.This page describes an additional implementation.
Warning
All of the following must be met in order to use this function.
Have a contract with Silver Egg Technology and are ready to use Silver Egg Technology's Aigent Recommender.
You have already applied to us to use Silver Egg Recommendation Messages.
Using Repro iOS SDK 5.3.0 or higher, Repro Android SDK 5.2.0 or higher
Get Started¶
The following two items need to be implemented additionally to display the Silver Egg Recommendation message.
- (Required)Cookie
This value corresponds to the user ID on Silver Egg.
- (Optional)ProdKey
Displays a Silver Egg Recommendation Message based on the specified ProdKey. This is an optional parameter to be set as an event property of the message display trigger event.
Example¶
Before the initialization (setup) of Repro, set the user ID (cookie) of Silver Egg Technology and the key name of the product ID (prod) registered with Silver Egg Technology.
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
[Repro setSilverEggCookie:@"silver egg's cookie_id"];
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
[Repro setSilverEggProdKey:@"product_id"];
// Setup Repro
[Repro setup:@"YOUR_APP_TOKEN"];
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
Repro.setSilverEggCookie(user_id: "silver egg's cookie_id")
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
Repro.setSilverEggProdKey(key: "product_id")
// Setup Repro
Repro.setup(token: "YOUR_APP_TOKEN")
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
Repro.setSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
Repro.setSilverEggProdKey("product_id");
// Setup Repro
Repro.setup(this, "YOUR_APP_TOKEN");
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
ReproCpp::setSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
ReproCpp::setSilverEggProdKey("product_id");
// Setup Repro
ReproCpp::setup("YOUR_APP_TOKEN");
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
Repro.SetSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
Repro.SetSilverEggProdKey("product_id");
// Setup Repro
Repro.Setup("YOUR_APP_TOKEN");
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
Repro.setSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
Repro.setSilverEggProdKey("product_id");
// Setup Repro
Repro.setup("YOUR_APP_TOKEN");
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
Repro.setSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
Repro.setSilverEggProdKey("product_id");
...
// Setup Repro
// Write 'Repro.setup' in a class that inherits from Application or AppDelegate.
// Register your user ID (cookie) that you have registered with Silver Egg Technology to ReproSDK.
await Repro.setSilverEggCookie("silver egg's cookie_id");
// Register the key name of the event property in which the product ID (prod) registered in Silver Egg Technology is embedded to ReproSDK.
await Repro.setSilverEggProdKey("product_id");
...
// Setup Repro
// Write 'Repro.setup' in a class that inherits from Application or AppDelegate.
Specify the
ProdKey
set above as the event property for the message display trigger, and display the message.
[Repro track:@"addCart" properties:@{
@"product_id": @"abc123"
}];
Repro.track(event: "addCart", properties:[
"product_id": "abc123"
])
Repro.track("addCart", new HashMap<String, Object>() {{
put("product_id", "abc123");
}});
ReproCpp::trackWithProperties("addCart", R"({ "product_id": "abc123" })"); /* Raw string literals, same with {\"product_id\": \"3\"} */
Repro.TrackWithProperties ("addCart", "{\"product_id\": \"abc123\"}");
Repro.trackWithProperties("addCart", "{\"product_id\": \"abc123\"}");
Repro.track("addCart", { product_id: "abc123" });
repro.track("addCart", { product_id: "abc123" });
await Repro.track("addCart", { "product_id": "abc123" });