Rokt Cloud Mode Integration
Private Beta3 minute read
The Rokt destination integration is currently in Private Beta, where we work with early users and customers to test new features and get feedback before making them generally available.
Reach out to Customer Success if you’re interested in enabling this destination for your workspace.
After you have configured Rokt as a destination in RudderStack, you can send conversion events to Rokt in cloud mode. Rokt supports cloud mode only for all supported source types.
Track
Rokt supports only track calls. No other call type is supported. Configure an event mapping for each track event name you want to send.
A sample track call is shown below:
rudderanalytics.track("Order Completed", {
orderId: "order-123",
revenue: 49.99,
currency: "USD",
roktClickId: "click-123",
});Field reference
RudderStack maps the following fields to Rokt parameters. When multiple RudderStack properties are listed, RudderStack uses the first populated property. The parameter column shows the outgoing field and its containing object; some source properties are processed before delivery rather than forwarded as fields with the same name.
| RudderStack property | Rokt parameter | Description |
|---|---|---|
context.traits.emailtraits.emailproperties.email | user_identities.email | Email address, converted to lowercase. |
userId | user_identities.customerid | Customer ID, converted to a string. |
context.traits.firstNamecontext.traits.first_nametraits.firstNametraits.first_name | user_attributes.firstname | First name. |
context.traits.firstNameSha256context.traits.first_name_sha256traits.firstNameSha256traits.first_name_sha256 | user_attributes.firstnamesha256 | SHA-256-hashed first name. |
context.traits.lastNamecontext.traits.last_nametraits.lastNametraits.last_name | user_attributes.lastname | Last name. |
context.traits.lastNameSha256context.traits.last_name_sha256traits.lastNameSha256traits.last_name_sha256 | user_attributes.lastnamesha256 | SHA-256-hashed last name. |
context.traits.phonetraits.phone | user_attributes.mobile | Mobile number. |
context.traits.phoneSha256context.traits.phone_sha256traits.phoneSha256traits.phone_sha256 | user_attributes.mobilesha256 | SHA-256-hashed mobile number. |
context.traits.agetraits.age | user_attributes.age | Age. |
context.traits.birthdaycontext.traits.dateOfBirthcontext.traits.date_of_birthtraits.birthdaytraits.dateOfBirthtraits.date_of_birth | user_attributes.dob | Date of birth, formatted as YYYYMMDD when the date is valid. |
context.traits.gendertraits.gender | user_attributes.gender | Gender. |
context.traits.address.citycontext.traits.citytraits.address.citytraits.city | user_attributes.city | City. |
context.traits.address.statecontext.traits.statetraits.address.statetraits.state | user_attributes.state | State. |
context.traits.address.postalCodecontext.traits.address.postal_codecontext.traits.ziptraits.address.postalCodetraits.address.postal_codetraits.zip | user_attributes.zip | Postal code. |
context.traits.titletraits.title | user_attributes.title | Title. |
context.localecontext.traits.languagetraits.language | user_attributes.language | Language or locale. |
properties.valueproperties.revenue | user_attributes.value | User attribute value. Sent as a separate field from the conversion amount, though the same property can populate both. |
properties.predictedLtvproperties.predicted_ltv | user_attributes.predictedltv | Predicted lifetime value. |
context.userAgentcontext.user_agent | device_info.http_header_user_agent | HTTP user agent. |
context.traits.iosAdvertisingIdcontext.traits.ios_advertising_idtraits.iosAdvertisingIdtraits.ios_advertising_id | device_info.ios_advertising_id | iOS advertising ID, unless overridden by context.device.advertisingId on an Apple device. |
context.traits.androidAdvertisingIdcontext.traits.android_advertising_idtraits.androidAdvertisingIdtraits.android_advertising_id | device_info.android_advertising_id | Android advertising ID, unless overridden by context.device.advertisingId on an Android device. |
properties.orderIdproperties.order_idproperties.confirmationRefproperties.confirmation_ref | events[].data.custom_attributes.confirmationref | Order or confirmation reference. |
properties.amountproperties.revenueproperties.totalproperties.valueproperties.price | events[].data.custom_attributes.amount | Conversion amount, converted to a string. |
properties.currency | events[].data.custom_attributes.currency | Conversion currency. |
context.page.pathproperties.namename | events[].data.custom_attributes.screen_name | Page path or event name. |
context.page.urlproperties.url | events[].data.custom_attributes.url | Page URL. |
context.ipcontext.request_iprequest_ip | ip | IP address at the batch root. |
properties.roktClickIdproperties.rokt_click_idproperties.rclidproperties.rtidcontext.page.search | user_identities.other2integration_attributes["1277"].passbackconversiontrackingid | Rokt click ID. If no click ID property is populated, RudderStack reads rclid, then rtid, from context.page.search. |
timestamporiginalTimestampsentAt | events[].data.timestamp_unixtime_ms | RudderStack selects the first populated timestamp, validates it, then converts it to Unix milliseconds. If that value is invalid, the outgoing timestamp is omitted; RudderStack does not try later properties. |
context.device.typecontext.device.advertisingId | device_info.ios_advertising_iddevice_info.android_advertising_id | The device type determines where the advertising ID is placed: iOS for Apple devices or Android for Android devices. Unsupported device types do not place this ID. |
The SHA-256 trait variants let you send pre-hashed PII instead of plaintext values.