Implementation Guide | Base Tag | Google Tag Manager

Install the CHEQ Library Tag

Implement the JavaScript Tag

To find your tag, log into your account to access your Dashboard. In the bottom-left of your user interface, click on your [Account Name] > Account Settings:

Copy the Invocation tag to your clipboard.

Now go to Google Tag Manager and create a Tag. It should look something like this:

Field Description Example
Tag Type Select Custom HTML. Custom HTML
Name (Recommended) Some name that makes sense. This doesn't impact functionality. CHEQ Tag
Support document.write Ensures the script that's posted is secure and triggers the right way. Checked
Tag firing priority Something over 9,000 just to ensure it triggers first. 9999

Click Save in the top-right. Validate the tag by Previewing the Workspace and then Publish!

Implement the <noscript> Tag

Before starting, Find your CHEQ <noscript> tag and go ahead and click that Copy icon for the <noscript> tag. To implement this, we will need 3 elements: a Variable, Trigger, and a Tag. 

In Google Tag Manager, create a Custom JavaScript Variable by going to the Variables section and clicking New.

Field Description Example
Variable Type Select Custom JavaScript. Custom JavaScript
Name (Recommended) Some name that makes sense. This doesn't impact functionality. JS Enabled
Custom JavaScript The custom JavaScript that is pasted into the code editor. function() { return true; }

Click Save.

Next, navigate to the Triggers section and click New to create a Trigger to fire the tag for when users' JavaScript is disabled. 

Field Description Example
Trigger Type Select Page View. Page View
Name (Recommended) Some name that makes sense. This doesn't impact functionality. JS is Disabled
Trigger fires on If users have JavaScript, it will return true - and we want the opposite of that. JS Enabled does not contain true

Click Save.

Finally, head to the Tags section and click New to create the image Tag that will load for users without JavaScript enabled.

Field Description Example
Tag Type Select Custom Image. Custom Image
Name (Recommended) Some name that makes sense. This doesn't impact functionality. CHEQ No-Script
Image URL

The URL that comes after the iframe source parameter: <iframe src='URL'>

How to find your tag.

https://its.1wittydomain.com/ns/XXXX.html?ch=cheq
Tag firing priority Something over 9,000 just to ensure it triggers first. 9999

Click Save.

Make sure you validate the tag (it shouldn't fire unless you have JavaScript disabled) and then Publish the Workspace.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request