ActionLab Analytics for Google Tag Manager
Add privacy-first, AI-powered analytics to your Google Tag Manager site in under 60 seconds. No cookies, no consent banners, no complex setup.
Setup at a Glance
Add ActionLab to Google Tag Manager in 5 simple steps. Copy one script tag, paste it into your project, and start collecting privacy-friendly analytics immediately.
About Google Tag Manager
Google Tag Manager is the most widely used tag management system, allowing marketing teams to deploy tracking scripts without modifying website code directly. For organizations that manage multiple tracking tools through GTM, ActionLab can be deployed as a Custom HTML tag. This approach lets marketing teams manage ActionLab alongside their other tools within the familiar GTM interface, using triggers and variables for advanced deployment control.
Why Add Analytics to Google Tag Manager
For organizations that have standardized on GTM for tag management, deploying ActionLab through GTM maintains consistency with existing workflows. Marketing teams can manage ActionLab deployment without developer involvement, and the tag can be version-controlled alongside other GTM configurations. The key advantage of ActionLab in a GTM context is that it does not require consent mode integration — while other tags in your GTM container may need consent triggers, ActionLab can fire unconditionally on all pages because it uses no cookies and collects no personal data.
Installation Code
<!-- In GTM: Add a Custom HTML tag -->
<script
src="https://cdn.actionlabanalytics.com/actionlab.js"
data-site="YOUR_SITE_ID"
defer
></script>
<!-- Trigger: All Pages -->Step-by-Step Setup
- 1
In Google Tag Manager, create a new Tag by clicking Tags → New.
- 2
Choose "Custom HTML" as the tag type and paste the ActionLab script tag into the HTML field.
- 3
Set the trigger to "All Pages" so the tag fires on every page load. For SPAs, use the "History Change" trigger to also fire on client-side navigation.
- 4
Replace YOUR_SITE_ID with your ActionLab site ID. You can also use a GTM variable for the site ID to manage it centrally.
- 5
Preview and test the tag using GTM Preview mode, then publish the container when confirmed working.
Why Use ActionLab with Google Tag Manager
- Manage ActionLab deployment alongside your other marketing and analytics tags within the GTM interface.
- Easy to deploy across multiple sites via GTM containers without modifying website source code.
- Control ActionLab loading with GTM triggers, variables, and environments for advanced deployment scenarios.
- No consent mode configuration needed for ActionLab — the tag can fire unconditionally because it uses no cookies and collects no personal data.
Frequently Asked Questions
Do I need to set up consent mode for ActionLab in GTM?
No. Google Consent Mode is designed for tags that use cookies and collect personal data. ActionLab does not use cookies and does not collect personal data, so consent mode is irrelevant. You can fire the ActionLab tag unconditionally on all pages with an All Pages trigger — no consent configuration, no consent state checking, and no consent-based trigger conditions needed. This simplifies your GTM setup and ensures ActionLab captures complete data while other consent-dependent tags may fire conditionally.
Should I use GTM or direct installation for ActionLab?
If you already use GTM and want to manage all tags centrally, deploying ActionLab through GTM is a valid approach. However, direct installation (adding the script tag to your site HTML) is simpler and avoids the dependency on GTM loading before ActionLab can execute. Direct installation also avoids the ad blocker risk that affects GTM — some ad blockers block GTM itself, which would prevent ActionLab from loading even though ActionLab would not be blocked when loaded directly.
Can I use GTM variables for the ActionLab site ID?
Yes. Create a GTM Constant variable with your ActionLab site ID value, then reference it in the Custom HTML tag using {{Variable Name}} syntax within the data-site attribute. This lets you manage the site ID centrally and change it without editing the tag HTML.
Does ActionLab work with GTM server-side tagging?
ActionLab is a client-side script that loads in the browser. If you use GTM server-side tagging, ActionLab operates independently from the server-side container. The client-side Custom HTML tag approach is the correct method for ActionLab deployment through GTM.
How do I track SPA navigation with ActionLab in GTM?
Add a second trigger to your ActionLab tag: the History Change trigger, which fires when the URL changes via the History API. This ensures ActionLab tracking code processes navigation events in SPA frameworks. Alternatively, ActionLab built-in SPA detection handles this automatically if the script loads before the first navigation event — the All Pages trigger is often sufficient without the History Change trigger.