Overview
You can use your Google Tag Manager (GTM) to implement your CHEQ tag on your website. The process of the implementation consists of implementing the invocation tag and the non-Javascript tag and validating that the tags were implemented in the GTM successfully.
CHEQ Tag Implementation
Implement Invocation Tag
-
CHEQ Platform
Before adding the tag to GTM, you will need to copy the script tag and paste into the a text editor for use later.
- In the CHEQ platform, navigate to the Account Settings settings section by clicking on your username or the person_outline icon on the top right of the platform.
- Click the Tags tab.
- Choose the tag by clicking the carat expand_more to expand the tag details view.
- Click the Copy content_copy icon for the invocation tag script and paste it into a text editor to use in the next step.
-
Google Tag Manager
- Navigate to Workspace, click Tags then click New.
- Click the Tag Configuration section to edit.
- Under Tag Type choose Custom HTML.
- Name the tag CHEQ.
- In the HTML code box, paste the previously copied CHEQ invocation tag script.
- Click to enable Support document write.
- Under Advanced Settings, set the Tag firing priority to 9999.
- Click the Triggering section to edit.
- Select Initialization - All Pages.
- Click Save.
-
Validate Tag
Before publishing, validate the tag as follows:
- Click the Preview button on the top right-hand side of the Workspace page.
- Enter your website url in the Tag Manager Preview Mode box and click Connect.
- A new tab opens and a new browser window opens with a preview of your website. Minimize this window, do not close it. Go to the new tab that opened.
- Click Continue to see the summary and confirm the tag fired.
- Close the tab, the preview mode window and return to the Workspace page.
-
Publish Workspace
Now that you have confirmed the tag is set up correctly and firing, click Submit to publish the Workspace.
Before non-Javascript Tag Implementation
Before implementation of the CHEQ non-Javascript tag, be sure that the GTM non-Javascript tag is installed in the body of your website. If it is installed, you can skip this next step. If you are uncertain use the following steps to confirm.
-
- In the Workspace, click the GTM tag located on the top-right of the page.
- Verify the code for the non-Javascript tag is identical to the code in the body of your website.
Implement non-Javascript Tag
-
CHEQ Platform
Before adding the tag to GTM, you will need to copy the script tag and paste it into a text editor for use later.
- In the CHEQ platform, navigate to the Account Settings settings section by clicking on your username or the person_outline icon on the top right of the platform.
- Click the Tags tab.
- Choose the tag by clicking the carat expand_more to expand the tag details view.
- Click the Copy content_copy icon for the non-Javascript script and paste it into a text editor to use in the next step.
-
Google Tag Manager
- Navigate to the Workspace, click Variables.
- Under User Defined Variables click New.
- Name the variable CHEQ Custom Javascript - JS is Disabled.
- Click the section to configure.
- Under Variable Type Select Custom JavaScript.
- Copy the following code and paste it into the Custom JavaScript input box.
function() { return true; }
- Click Save.
-
Create the Tag
- Navigate to Tags then click New.
- Name the tag CHEQ non-Javascript.
- Click the Tag Configuration section to edit.
- Under Tag Type select Custom Image.
- In the Image URL box, paste only the src value of the CHEQ non-Javascript script.
- Under Advanced Settings, set the Tag firing priority to 9999.
- Click the Triggering section to edit.
- Click the + button to add a new trigger.
- Name the trigger CHEQ PageViews - JS is Disabled.
- Click the Trigger Configuration section to edit.
- Select Page View.
- Under This trigger fire on select Some Page Views.
- Under Fire this trigger when an Event occurs and all of these conditions are true, select the variable that you created in the previous step then select Does not contain and type True in the input box.
- Click Save.
-
Validate Tag
Before publishing, validate the tag.
- Click the Preview button on the top right-hand side of the Workspace page.
- Enter your website url in the Tag Manager Preview Mode box and click Connect.
- The Assistant tab opens and a new browser window opens with a preview of your website.
- Minimize the this window, do not close it.
- On the Assistant tab, click Continue to see the summary.
- Under the Tag Not Fired category, make sure you see the non-Javascript tag listed. It should only fire when JavaScript is disabled.
- Close the Assistant tab, the preview mode window and return to the Workspace page.
-
Publish Workspace
Now that you have confirmed the tag is set up correctly and firing, click Submit and then click Publish on the Submit Changes page to publish the Workspace.