Skip to main content

Rokt Web SDK setup for Tealium

Tealium's integration with Rokt allows you to integrate customer and transactional data using varibles.

When you add the integration code to your page, make sure you populate customer and transactional data. Make sure you configure customer email address so that Rokt can identify customers and choose a relevant offer.

Populate any contextual attributes about the transaction to help Rokt better personalize which offers the customer sees.

Add the Rokt Web SDK#

  1. Log in to Tealium Customer Data Hub.
  2. Click iQ Tag Management > Tags.
  3. Click + Add Tag. Tealium_add_rokt_tag
  4. Search for Rokt.
  5. Click +Add. Tealium_add_rokt

Configure the Rokt Web SDK#

  1. Configure the following settings:
    • Rokt Account ID: Enter the Rokt account ID provided by your account manager.
    • Two-step Email (Optional): Select True if you would like to send an email on positive engagement.
    • Use Sandbox (Optional): Select True if you wold like to send events to a sandbox account for testing.
    • PUBLISH LOCATIONS: Select Yes or No for publish locations and whether you want to use the Bundle Flag.
    • ADVANCED SETTINGS:
      • Tag Timing: Determines the timing of the tag firing.
      • Send Flag: Determines whether or not this library has event level data sent to it for tracking.
      • Synchronous Load Type: Set when the library needs to load synchronously.
      • Custom Script Source: Set when the library that supports this tag is served from an alternate location.
  2. Click Next.

Create a Load Rule#

Load Rules in Tealium determine when and where to load an instance of the Rokt Web SDK on your site.

  1. Click + Create Rule. Tealium_create_rule
  2. Enter the following information:
    • Name: Give your rule a descriptive name.
    • Notes: Enter any notes about the rule.
    • Variable: Select Domain.
    • Operator: Select equals.
    • Value: Enter the URL provided by your Rokt account manager.
  3. Click Done. Tealium_load_rules
  4. Click Next.

Data Mapping#

Mapping is the process of integrating a data layer variable with the corresponding destination variable of the vendor tag.

note

The most common variable used is the JS emailAddress variable which the below process shows. Other variable categories are listed below.

  1. Click the dropdown and search for JS.
  2. Click the Use Custom Variable. Tealium_js_emai_custom
  3. Select Email and click Done.tealium_js_email_done
  4. Add any further variables as needed.
note

The categories Standard and Ecommerce in Tealium corelate to Core and Suplemental in Rokt.

The available categories are:

Standard#

VARIABLEDESCRIPTION
Email(email)
First Name(firstname)
Last Name(lastname)
Mobile Number(mobile)
Zip or Postal Code(zipcode)
Country(country)
Language(language)
Use Sandbox(sandbox)

Ecommerce#

VARIABLEATTRIBUTEDESCRIPTION
Confirmation Number(confirmationref)This variable overrides the _corder variable.
Amount(amount)This variable overrides the _ctotal variable.
Currency(currency)This variable overrides the _ccurrency variable.
Payment Type(paymenttype)
ccbin(ccbin)
List of Item Prices(price)[Array] This array overrides the_cprice variable.
List of Item Quantites(quantity)[Array] This array overrides the_cquan variable.
List of Item Major Categories(majorcat)[Array] This array overrides the_ccat variable.
List of Item Major Category IDs(majorcatid)[Array]
List of Item Minor Categories(minorcat)[Array] This array overrides the _ccat2 variable.
List of Item Minor Category IDs(minorcatid)[Array]
List of Product Names(productname)[Array] This array overrides the_cprodname variable.
List of Item SKUs(sku)[Array] This array overrides the_csku variable.
  1. Click Finish and you are returned to the Tags Dashboard.

Publish the Rokt Web SDK for Tealium#

  1. From the Tags Dashboard, click Save/Publish.
  2. Enter a Title (mandatory).
  3. Enter version Notes (mandatory).
  4. Select where you would like to publish to Dev and/or QA and/or Prod.
  5. Click Publish. Tealium_publish_sdk
Was this article helpful?