Google Tag Manager
Install the tracker through Google Tag Manager.
Last updated June 3, 2026
Install Grometrics in Google Tag Manager with a Custom HTML tag that fires on all pages.
Prerequisites
- A GTM container installed on the site
- Publish access to the GTM workspace
- A Grometrics site ID from Settings > Tracking
Steps
Create a Custom HTML tag
Paste the tracker script into a new Custom HTML tag.
Replace YOUR_SITE_ID with your site ID from Settings > Tracking.
Custom HTML
1<script defer src="https://cdn.grometrics.io/g.js" data-site="YOUR_SITE_ID"></script>Add the trigger
Use the All Pages trigger.
Preview and publish
Preview the container, confirm the tag fires, then publish.
Options / Configuration
| Option | Type | Required | Description |
|---|---|---|---|
| Trigger | GTM trigger | ✓ | Use All Pages |
| data-site | string | ✓ | Your Grometrics site ID |
What happens next
Use GTM preview, then open Realtime after publishing.
Verify your setup
Verify your setup
Troubleshooting
Tag fires but no pageview appears
Check consent settings, blocked scripts, and whether the Custom HTML tag was published.
Was this page helpful?