Skip to main content

Rokt Web SDK setup for Tealium

To properly match conversions to campaign events, Rokt requires a customer identifier; either raw email, hashed email (SHA-256) or Rokt Tracking ID.

Including contextual data in your conversion reporting helps Rokt optimize your campaigns.

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 - Ecommerce only): Select True if you would like to send an email on positive engagement.
    • Use Sandbox (Optional - Ecommerce only): 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.
      • 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.


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.

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

The available categories are:


First Name(firstname)
Last Name(lastname)
Mobile Number(mobile)
Zip or Postal Code(zipcode)
Use Sandbox(sandbox)


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)
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?