TL;DR, Quick Answer
7 min readGTM manages tracking script deployment but does not resolve Google Analytics' data transfer or consent issues. It amplifies privacy concerns by making it easy to deploy multiple trackers.
This overview puts the topic Tag manager security into useful context. Installed together but doing different jobs, GTM and GA4 turn tag manager security into the real control point: whoever can publish a container changes what every visitor loads.
Google Tag Manager and Google Analytics are often installed together, but they do different jobs.
Google Analytics measures website and app activity. Google Tag Manager is a container that loads and controls tags, including GA4, ad pixels, conversion scripts, A/B testing tools, chat widgets, and custom HTML.
The privacy mistake is assuming GTM makes tracking safer. It can make tracking easier to govern, but it can also make uncontrolled tracking much easier to deploy.
What Google Analytics Does
GA4 collects events such as pageviews, sessions, conversions, traffic sources, and user properties. Google's GA4 cookie documentation explains that GA4 uses cookies such as _ga to distinguish users and sessions unless configured differently through consent behavior.
That means a standard GA4 setup raises questions about:
- cookie consent under ePrivacy rules
- GDPR lawful basis and transparency
- international transfers
- event payload minimization
- linked Google Ads features
- retention and access control

What Google Tag Manager Does
GTM lets non-developers deploy and update tags through a web interface. A tag can fire based on triggers such as page load, click, form submission, scroll depth, consent state, or custom events. It also has its own permission model, workspaces, versions, environments, custom templates, and container export format.
This is useful when governed well. It is dangerous when the container becomes a shadow codebase. Marketing teams may add pixels without code review. Old campaigns may leave trackers behind. Consent triggers may be misconfigured. Custom HTML tags may load third-party scripts nobody audits. A GTM audit therefore has to cover people, permissions, templates, triggers, data layer values, and publishing history, not only the GA4 tag.
Privacy Impact: GTM as a Multiplier
GTM does not solve the privacy issues of the tags inside it. If GTM loads Meta Pixel before consent, the problem is still Meta Pixel before consent. If it loads GA4, LinkedIn Insight Tag, TikTok Pixel, and a heatmap tool on every page, your privacy exposure expands.
GTM can also hide complexity. A site auditor may see one GTM script in the HTML, while the container loads ten downstream trackers in the browser.

Consent Mode Is Not a Complete Compliance Program
Google's Consent Mode documentation lets tags adjust behavior based on consent signals such as analytics_storage and advertising-related settings. This can be useful, especially for preventing storage before consent.
But Consent Mode does not create valid consent by itself. You still need a lawful banner or preference center, accurate defaults, regional rules, vendor disclosures, withdrawal handling, and testing.
Test consent states in GTM Preview and in the browser. Load the page before any choice, after rejection, after analytics-only consent, and after marketing consent. Confirm which tags fire, which cookies or storage entries appear, and which network requests leave the browser. A tag that says it is "consent aware" is not enough if its trigger or custom HTML bypasses the consent state.
Flowsery
Start Your 14-Day Free Trial
Real-time dashboard
Goal tracking
Cookie-free tracking
How to Audit a GTM Container
Export the container and classify every tag:
| Tag type | Questions |
|---|---|
| GA4 | Does it fire before analytics consent? Are ad features enabled? |
| Ad pixels | Do they require marketing consent? Are they on sensitive pages? |
| Conversion tags | What identifiers and event parameters are sent? |
| Custom HTML | Who owns it? What remote scripts does it load? |
| Heatmaps/session replay | Is sensitive input masked? Is consent required? |
| Utility tags | Are they truly necessary? |
Then check triggers. A tag named "consent safe" can still fire on All Pages if the trigger is wrong.
Also review account and container access. Remove former agencies, contractors, and unused service accounts. Restrict publish rights, require approvals for production, and keep a record of who owns each tag. Google's Tag Manager security guidance emphasizes access controls because GTM can change what executes on a site without a normal deploy.
Performance Impact
Tag managers can also harm performance. Every third-party script competes for network, CPU, and main-thread time. This can affect Core Web Vitals and conversion. Google's own Search Central documentation treats page experience as one of many signals, and users feel slow pages regardless of rankings.
Remove tags before optimizing them. The fastest tracker is the one you do not load.
Safer Rules for GTM
If you keep GTM:
- require an owner for every tag
- require a purpose and expiry date
- export the container before and after major changes
- block marketing tags before marketing consent
- block analytics tags before analytics consent where required
- ban custom HTML without review
- review template permissions and network endpoints
- exclude sensitive pages
- document event payloads
- test with DevTools in accepted and rejected states
- review the container monthly
For small sites, removing GTM can be simpler. If you only need one privacy-first analytics script, hardcoding it may be safer than maintaining a tag platform.
- Give every tag an owner and a purpose
- Block marketing and analytics tags before consent
- Ban custom HTML without review
- Review the container monthly
- Simpler to maintain on small sites
- One privacy-first analytics script instead of a platform
- Easier to audit than a container with years of legacy tags
GTM Audit Checklist
Export the container and build a tag-owner register:
- Tag name, vendor, owner, purpose, expiry review date, and consent category.
- Trigger conditions, blocked pages, and consent requirements.
- Data layer variables and URL, cookie, storage, or form-field reads.
- Custom template permissions and custom HTML script sources.
- Publishing history, workspace changes, and users with edit or publish access.
- Evidence from rejected, accepted, and partial-consent browser tests.
This is the GTM-specific work that generic analytics audits miss. If the container cannot be explained, it should not have production publish power.
The Bottom Line
Google Analytics is a measurement tool. Google Tag Manager is a deployment tool. GTM can help govern consent and tag rollout, but it can also multiply privacy, legal, and performance risk.
Use GTM only if you are willing to treat it like production code.
Governance Rules for Containers
Give every tag an owner, a purpose, a consent category, a data-field list, and an expiry review date. Block custom HTML tags by default unless engineering or security approves them. Keep separate workspaces for experiments and production. Require peer review for tags that read form fields, URL parameters, local storage, cookies, or data layer values.
For privacy-first analytics, the safest GTM rule is often restraint. If a site only needs one analytics script and a few conversion events, direct implementation may be easier to audit than a container with years of legacy tags. If you keep GTM, export the container quarterly and compare it with your vendor inventory. Remove paused experiments, duplicate pixels, abandoned heatmaps, and tags owned by former agencies. A clean container improves consent accuracy, page speed, and legal review.
Frequently Asked Questions
Does Google Tag Manager collect data on its own?
GTM does not collect data itself. It decides what else runs, loading and controlling tags such as GA4, ad pixels, conversion scripts, and custom HTML. The privacy exposure comes from the tags it deploys, not from the container itself.
Does installing GTM make tracking safer?
Not automatically. GTM can make tracking easier to govern, but it can just as easily make uncontrolled tracking easier to deploy, particularly when marketing teams add pixels without code review.
Flowsery
Start Your 14-Day Free Trial
Real-time dashboard
Goal tracking
Cookie-free tracking
What cookie does GA4 use to track sessions?
GA4 uses cookies such as _ga to distinguish users and sessions, according to Google's own GA4 cookie documentation. That default behavior changes only if the setup is configured differently through consent behavior. A standard GA4 setup already raises consent and lawful basis questions before you add anything else.
Can Consent Mode alone satisfy GDPR requirements?
Consent Mode adjusts tag behavior based on signals like analytics_storage, which helps prevent storage before consent, but it does not create valid consent by itself. You still need a lawful banner, accurate defaults, and vendor disclosures.
Why would an auditor miss trackers when reviewing a site's HTML?
An auditor checking page source sees one GTM script tag, while the container itself loads ten downstream trackers in the browser. Reviewing the exported container, not just the page source, is the only way to see everything it triggers.
What should a GTM audit cover beyond the GA4 tag?
A proper audit covers people, permissions, templates, triggers, data layer values, and publishing history, not only the GA4 tag. Old campaigns can leave trackers behind, and custom HTML tags can load third-party scripts nobody has reviewed.
How do you test whether consent triggers actually work?
Load the page before any choice, after rejection, after analytics-only consent, and after marketing consent. Then confirm which tags fire, which cookies or storage entries appear, and which network requests leave the browser. A tag labeled "consent aware" is not enough if its trigger or custom HTML bypasses the consent state.
Who should be allowed to publish a GTM container?
Access should be restricted to people who need it, with former agencies, contractors, and unused service accounts removed. Google's own Tag Manager security guidance recommends restricting publish rights and requiring approvals for production, because a container can change what executes on a site without a normal deploy.
Is removing GTM ever the better option?
For small sites, yes. If you only need one privacy-first analytics script and a few conversion events, hardcoding it is easier to audit than maintaining a tag platform with years of legacy tags.
How often should a GTM container be reviewed?
The post recommends a monthly review as one of the safer rules for GTM, plus a quarterly export compared against your vendor inventory. That comparison is what catches paused experiments, duplicate pixels, and tags left behind by former agencies.
Was This Article Helpful?
Let us know what you think!
See us more often in Google
One click marks Flowsery as a preferred source, so our articles sit higher in your Top Stories, AI Mode, and AI Overviews.
Before you go...
Flowsery
Revenue-first analytics for your website
Track every visitor, source, and conversion in real time. Simple, powerful, and cookie-free.
Real-time dashboard
Goal tracking
Cookie-free tracking
Related Articles


A Practical Guide to Pii Identifiers
Whether a Google Analytics user ID GDPR counts as personal data turns on singling out. Client ID, User ID, Signals and app IDs, each assessed in turn.
A Practical Guide to Tracking Without Cookies
Tracking without cookies lets you measure form conversions while avoiding the personal-data risks that often come with traditional form tracking setups.


A Practical Overview - Google Analytics Lighthouse
A Google Analytics Lighthouse score is a lab proxy, not the real cost. How to measure script weight with DevTools and field data, plus a sane budget.

