Setting Up Variables

Creating Variables

Before adding any tags using Deviate Tracking, you need the following four items: your license key, the email that you started your subscription with, your Facebook Access Token and your Facebook Pixel ID. Saving these as GTM variables will help you to avoid having to copy and paste them each time you create a tag. In the event you don’t know how to get those variables, please go to the next section.

You should save these four items as variables in Tag Manager. Click on the Variables tab on the left, then choose the Constant variable type. This might seem like a hassle, but it will save time in the long run.

Deviate Tracking GTM Variable
Creating a Tag Manager variable

Pixel ID

The pixel ID indicates which pixel Deviate Tracking should send data to. You can get it from inside Facebook Events Manager at the top right of the Overview tab.

Facebook Pixel ID
Pixel ID location

Facebook Access Token

Deviate Tracking uses the access token to prove that it has permission to send data to your pixel. You can get it from insideFacebook Events Manager. Go to the Settings tab, then scroll down to the Conversions API section. Click the link titled Generate access token and then copy the text it produces.

How to generate a Facebook access token
Facebook Access Token location

License Key and Email

Your license credentials are in your subscription’s confirmation email. If you can’t find it, try searching for emails from [email protected] or checking your spam.

A confirmation email

You can then add your variables into the GTM tag by clicking the following button

  1. Your Facebook Pixel ID
  2. Your Facebook access token
  3. Your Deviate Tracking license key
  4. Your Deviate Tracking license email
Enter info into Deviate Tracking tag configuration
Configuring a Deviate Tracking tag