Skip to main content

TagTemplateIntegration

Using the template for Google Tag Manager, you can configure the Rokt SDK without needing to change any code on your page. Once installed, the template accesses the data layer and event triggering to succesfully render placements or match referrals to conversion events. You can configure the template to include a variety of attributes related to your use case.

Add the Rokt Tag template

  1. In your Google Tag Manager Container, click Templates.

  2. Click Search Gallery.

Test GTM

  1. Search for Rokt in the search box and select the Rokt Tag Integration.

Test GTM

  1. Click Add to workspace.

  2. Click Add.

Configure the Rokt Tag template

  1. Click Tags.

  2. Click New.

Test GTM

  1. Name the tag “Rokt Tag Template”, then select Tag Configuration.

  2. Scroll to the Custom section and choose the Rokt Tag Integration.

Test GTM

  1. Configuration settings:

    SectionRequired/OptionalDescription
    ConfigurationRequiredEnter your Rokt Account ID.
    Ensure the sandbox checkbox is selected.
    Core AttributesRequiredFor each of the attributes click the add icon beside the text box to expand the list of attributes in your data layer.
    Select the appropriate variable in your data layer for the field. For example, select the correct dl_email variable in your data layer for the email field.
    If the appropriate variable is not showing in your data layer see how to set up attributes in the Google Tag Manager data layer.
    Custom AttributesOptionalClick Add Row.
    Click the add icon beside the Attribute Name text box to expand the list of attributes in your data layer.
    Click the add icon beside the Attribute Value text box to expand the list of attributes in your data layer.
    Click Add.
    More Integration OptionsOptionalAdd a Page identifier.
    Check Send raw email only on positive engagement if needed.
    Check Hash raw email attribute (SHA-256) if needed.
    Event Listeners are custom variables that subscribe to Rokt events. When that Rokt event is triggered, the custom variable will be added to the data layer.
    Advanced settingsOptionalEnter a Tag firing priority Tags with higher numbers for priority will be fired first. Priority defaults to 0 if none is specified. Tags will still be fired asynchronously, i.e., a tag will be fired whether or not the previous tag has finished.
    Enable custom tag firing schedule allows you to set a start and end date for the tag to fire.
    Only fire this tag in published containers If firing this tag results in a fee being charged, you can avoid firing it in testing environments (e.g., during previewing and debugging). Instead, when applicable, Google Tag Manager will tell you when the tag would have fired. For the most accurate testing, leave this option unchecked.
    Select your Tag firing options from the drop-down
    Tag Sequencing allows you to specify tags that will fire immediately before and after the current tag.
    Additional Tag Metadata Specify additional tag metadata to be included in the event data when a tag is fired.
    Consent Settings Understand and modify how this tag behaves alongside your consent tools.
Was this article helpful?