Install with Google Tag Manager
Add Cromojo through a Custom HTML tag in Google Tag Manager
Written By David
Last updated 10 days ago
You can install Cromojo through Google Tag Manager (GTM). Tag Manager needs its own version of the snippet, and Cromojo gives you one ready to paste. It takes about 5 minutes.
In a hurry? Click Copy AI prompt next to the snippet in Settings > Analytics — it writes a ready-to-paste prompt for Claude, ChatGPT or Gemini that walks your AI assistant through the Tag Manager setup for you.
Why Tag Manager needs its own version
The standard snippet stores your settings on the script tag itself: your site ID, your ingest key and any tracking options. When you paste that tag into a Custom HTML tag, Tag Manager removes those settings before it adds the script to your page. The script still loads and GTM shows the tag as firing, but Cromojo can't tell which website the visits belong to, so it ignores them.
The Tag Manager version is a short piece of JavaScript that builds the script tag itself, with every setting included. Tag Manager leaves it untouched, so your visits are counted.
Step 1: Copy the Tag Manager version
In Cromojo, open your website and go to Settings > Analytics.
If you see First-party tracking, set it first and click Save. These settings are built into the snippet, so save them before you copy.
Under Analytics script, turn on I use Google Tag Manager.
Click the copy icon. The snippet you copy now starts with
<script>followed by(function () {.
You can also do this during setup: on the Tracking script step, turn on I use Google Tag Manager before you copy.

Step 2: Add it to Tag Manager
Open your container in Google Tag Manager and click Tags > New.
Name the tag, for example Cromojo Analytics.
Click Tag Configuration and choose Custom HTML.
Paste the Tag Manager version into the HTML box.
Click Triggering and choose All Pages.
Click Save, then Submit and Publish to make the change live.
Your website must already load your Tag Manager container. If you're not sure, open your site, right-click and choose View page source, then search for GTM-.
Step 3: Check it's working
Visit your website in a normal browser window and click through a page or two.
Wait a minute, then click Verify Installation (or Retry) under Settings > Analytics.
Good to know
Install Cromojo once. If the snippet is also in your website's <head>, remove one of the two. Cromojo ignores the second copy, so nothing is counted twice, but it's cleaner to keep one.
Already added the standard snippet in Tag Manager? Replace the contents of that tag with the Tag Manager version, then publish your container again.
Changed a setting later? When Cromojo says your analytics script has changed, copy the Tag Manager version again and replace the code in your tag. Until you publish the new version, the old settings stay in effect.
Still stuck? Email support@cromojo.com with your website address.
Was this helpful?
More in Installation Guides
Installing Your Analytics Tracking ScriptInstall on WordPressInstall on ShopifyInstall on WebflowStill need help? Ask the team