Add Antlytics to Google Tag Manager
Prerequisites
- An Antlytics account (sign up free)
- Your tracking ID from Settings → Tracking Snippet in your Antlytics dashboard
Install the snippet
- In your GTM workspace, click Tags → New.
- Set the Tag type to Custom HTML.
- Paste the snippet into the HTML field.
- Under Triggering, choose All Pages (or the trigger you prefer).
- Save the tag and Submit your container to publish.
Tip: Direct snippet installation (without GTM) reduces complexity and avoids the extra round-trip GTM introduces. GTM is a good option if you are already using it to manage other tags and prefer a single deployment workflow.
<script
defer
src="https://www.antlytics.com/tracker.js"
data-tracking-id="YOUR-SITE-ID"
data-api-host="https://www.antlytics.com"
></script>
Note: Replace
YOUR-SITE-IDwith the tracking ID from your Antlytics dashboard.
Verify installation
- Visit your site in a browser.
- Open your Antlytics dashboard → Overview.
- Your visit should appear within a few seconds.
If data does not appear after a few minutes, check the troubleshooting guide.
Optional: First-party proxy
To avoid ad blockers, set up a first-party proxy on your own domain.
Need help?
Email support@antlytics.com with your site ID and page URL.
Something missing? Get in touch and we will update these docs.