Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 2.04 KB

README.md

File metadata and controls

37 lines (22 loc) · 2.04 KB

Google Tag Template

Resident Experts

Overview

Rokt integrates with Google Tag Manager, enabling partners to launch placements through Google's tag management system. Partners can configure their tags on Google's Console instead of managing the Rokt script directly.

Two files make up Rokt's integration with Google Tag.

  1. gtm.js - This file is created by Google Tag Manager and will be fetched on the partner page through the Google Tag script which they would have injected onto their <head> tag. Rokt's tag is implemented in this file along with many other tags.
  2. gtm_wrapper.js - This file is responsible for extracting all the configurations (i.e Rokt accountId, attributes ...) passed from the gtm.js file and coordinates the interaction with the Rokt Launcher and invokes placement selection. Source code can be found in @ROKT/gtm_wrapper. Refer to step 2 in the image below.

This repository is responsible for building and deploying the Rokt Tag template bundled into gtm.js.

version

This is a public repository containing the TPL file necessary for Google to support Rokt's application onto the Tag Manager Marketplace.

To use on an adhoc basis -- please download the .tpl file and upload this in your Google Tag Manager Template interface. You can read more about how to do that here.

For more info on developing a Google Tag

Testing

Follow these instructions to set up the Testing Playground and test your template changes.

Deployment Process

Follow these steps to deploy the template.