In this guide, learn:
- Special considerations for GTM implementation
Steps to implement the Blue Triangle JS tag in Google Tag Manager (GTM)
Deploying the Blue Triangle JS tag is easy via tag managers like Google Tag Manager (GTM). First, you need to receive your custom tag from Blue Triangle. It should look like this:
1. Go to tagmanager.google.com and login to your account.
2. Select "Add a New Tag."
3. Name the tag "Blue Triangle" (or whatever you'd like).
4. Select "Choose a Tag Type" and choose "Custom HTML."
5. Paste the Blue Triangle tag you were provided with.
6. Scroll down and select "Triggering".
7. If you have a Trigger created that tells the tag to load after the Onload event, or Window Loaded, choose that.
If not, you'll need to create a new trigger by selecting the "+" icon in the top right.
8. Now you can add the "Window Loaded" event trigger.
9. Now click Save.
Once you submit the changes you made to GTM, your real-user data will begin populating inside Blue Triangle.
Unlike other analytics providers, the Blue Triangle tag should not be loaded in the <head> of a page. Any tag that loads in the <head> can impact your performance.
The Blue Triangle tag loads asynchronously by default. Please do not make changes to the tag (e.g. removing async), as this could break your website.
If parts (or all) of your site is a Single Page Application (SPA), please refer to this guide: Tag Implementation for Single Page Applications.