Skip to main content
Google Tag Manager installs the snippet without touching your site’s code. You create one Custom HTML tag, point it at every page, and publish the container. Copy your snippet from Install the snippet before you start, or use the one below with your own SDK key.

The snippet

Replace YOUR_SDK_KEY with the key for your website, shown when you create a website and under Settings → Website.

Create the tag

1

Open Google Tag Manager

Go to tagmanager.google.com and sign in.
2

Open the right container

Find the account that owns the site you’re installing on, then click the container name for that site. Containers are listed by name with their container ID (for example GTM-XXXXXXX) beside them. If you manage several sites, match the container name to the domain you want to identify visitors on, since publishing to the wrong container installs Squid ID on the wrong site.
3

Go to Tags

You land on the container workspace. Click Tags in the left sidebar.
4

Create a new tag

Click New at the top right of the Tags list. A panel slides open from the right.
5

Name the tag

Click the tag name at the top left of the panel and name it Squid Tag. Naming it now makes it easy to find later when you need to check or update it.
6

Choose Custom HTML

Click the Tag Configuration box, then under the Custom section choose Custom HTML.
7

Paste the snippet

Paste the full snippet, including the opening and closing <script> tags, into the HTML field. Leave Support document.write unchecked.
8

Set the trigger

Click the Triggering box, then choose Initialization - All Pages.
9

Save

Click Save at the top right. You are returned to the workspace and the new tag appears in the Tags list.
Choose Initialization - All Pages rather than All Pages. Initialization triggers fire before every other tag in the container, so Squid ID loads as early as possible in the page lifecycle and captures the full visit. On All Pages the snippet loads later and the first moments of a session can be missed.

Check it before publishing

Publishing pushes the tag to your live site, so it is worth confirming the tag fires first.
1

Enter Preview

Click Preview at the top right of the workspace and enter your site’s URL. Tag Assistant opens your site in a new tab with a debug panel attached.
2

Confirm the tag fired

In the Tag Assistant panel, select the Initialization event in the left column. Squid Tag should appear under Tags Fired. If it sits under Tags Not Fired, the trigger is not matching, so reopen the tag and confirm the trigger is Initialization - All Pages.

Publish

1

Select the tag

Back in the workspace, confirm Squid Tag is listed with type Custom HTML and trigger Initialization - All Pages.
2

Submit

Click Submit at the top right of the workspace.
3

Name the version

Optionally give the version a name and description, for example Add Squid ID. This is only for your own version history.
4

Publish

Click Publish at the top right. The tag is now live on your site.
5

Verify

Visit your site, then verify the install.
GTM loads tags after the page, and some consent or performance plugins delay or block Custom HTML tags. If verification does not pass, check whether a consent tool is holding the tag back, then install the snippet directly in your site’s <head> instead.