Smartly Cloud Mode Integration Beta
less than a minute
After you have successfully instrumented Smartly as a destination in RudderStack, follow this guide to correctly send your events to Smartly in cloud mode.
Find the open source transformer code for this destination in the GitHub repository.
Track
You can use the track to record user actions along with any associated properties.
A sample track call is as shown:
rudderanalytics.track(
"Purchase", {
adUnitId: "123456789",
platform: "snapchat",
adInteractionTime: 1640999520,
installTime: 1640999825,
timestamp: 1641000678,
conversions: 1,
value: 15,
currency: "EUR",
}
);Supported mappings
RudderStack maps the following track fields to the corresponding Smartly properties:
| RudderStack property | Destination property | Data type |
|---|---|---|
eventRequired | event_name | String |
properties.adUnitIdRequired | ad_unit_id | Number |
properties.platformRequired | platform | String |
properties.adInteractionTimeRequired | ad_interaction_time | UNIX (time in seconds) |
properties.conversionsproperties.products.length1 | conversions | Number |
properties.valueproperties.totalproperties.revenueproperties.price*properties.quantity | value | Number |
properties.installTime | install_time | UNIX (time in seconds) |
originalTimestamptimestamp | event_time | UNIX (time in seconds) |
properties.currency | value_currency | Number |