Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Tag manager container edited by unknown user: how to find it

OPS-199Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A tag manager container is a bundle of tags, triggers and variables that loads on your pages. In GTM, every change you publish becomes a numbered version with a name, a publisher and a date. This issue is when a version appears that nobody on your team made, or when a person or email address you don't recognise has access to the container.

Why it costs you leads or sales

GTM runs code on your live pages with no code review. One edited tag can break tracking, pause a conversion tag, add a redirect or inject a script that reads fields on a form or checkout. Because it is not in your theme or codebase, developers often never see it.

How an unnoticed container edit unfolds (example)
  1. Day 0

    An unknown user is added to the container with Publish rights.

  2. Day 1

    A new version is published that changes a conversion tag or adds a Custom HTML tag.

  3. Day 3

    Ad platforms report fewer conversions, or visitors report odd behaviour. Nobody links it to GTM.

  4. Day 10

    Someone checks version history, finds the change, rolls back and removes the user.

Where an unreviewed edit hurts the funnel
  1. Unknown user publishesNew GTM version goes live
  2. Landing pageAltered tags load
  3. Form or checkoutTracking or data handling changed
  4. Conversion reportingAd and analytics data unreliable

The container loads on every page, so one bad version affects every step after it.

How to check if your site has it

Audit your GTM container
  1. Open the Versions listGoogle Tag Manager

    In tagmanager.google.com choose the container, then Versions. Look at who published each version and when. Flag any you can't explain.

  2. Compare versionsGoogle Tag Manager

    Select the suspicious version and the one before it, then use Compare. Look for new Custom HTML tags, changed Measurement IDs, new triggers on checkout pages and unfamiliar domains.

  3. Review user accessGoogle Tag Manager

    Go to Admin, then User Management at both account and container level. Note every email and its permission. Remove anyone you don't recognise after confirming with your team.

  4. Check the workspace and activityGoogle Tag Manager

    Open Admin, then Container, and review the Workspace changes and any pending drafts. Look for unpublished changes you didn't make.

How to fix it

Contain and clean up
  1. Roll back to the last good versionGoogle Tag Manager

    In Versions, open the last version you trust and choose Actions, then Publish. This replaces the live container with that version.

  2. Remove or downgrade unknown usersGoogle Tag Manager

    In Admin, User Management, delete unknown accounts. Give everyone else the lowest permission they need: Read, Edit, Approve or Publish.

  3. Secure the accounts

    Ask every remaining user to turn on 2-Step Verification on their Google account and change their password if there is any doubt.

  4. Check what the bad version did

    Review the changed tags and any domains they called. If a script touched a form or checkout, treat it as a possible data exposure and follow your own security and privacy process.

  5. Name your versionsGoogle Tag Manager

    From now on, give each published version a clear name and description, such as the change and who requested it.

Where else to check for container injection
  1. Confirm the container ID

    Check your GTM plugin settings or theme header for the GTM-XXXXXXX ID and make sure it is yours.

  2. Review plugin admins

    Under Users, remove unknown administrators who could add a second container.

The standard GTM snippet: check the container ID matches yourshtml
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>

How to confirm it's fixed

Confirmation checklist
  • The live version in Versions is the one you intended and shows a publisher you recognise.
  • User Management lists only people who should have access, with minimum permissions.
  • No unexplained Custom HTML tags remain in the container.
  • Preview mode on your key pages shows only the tags you expect firing.
  • Your lead form and checkout still work and conversions still reach GA4 and your ad platforms.

How to prevent it happening again

Prevention habits
  • Review container users every quarter and when an agency or freelancer leaves.
  • Give Publish rights to as few people as possible; use Approve for reviewers.
  • Require 2-Step Verification on every Google account with access.
  • Use company or agency addresses, not personal ones.
  • Name and describe every version so surprises stand out.
  • Have someone review Custom HTML tags before they are published.
Container governance

Before

  • Many users with Publish rights
  • Versions named 'Version 41'
  • Nobody notices new versions

After

  • Few publishers, others read or edit
  • Versions named with change and owner
  • Version changes are monitored

How FunnelGuard handles this

FunnelGuard detects this today by watching for GTM version change events. When the version of your container changes, you can see that a change went live and compare it against what you expected. It doesn't tell you who published it; for that, check the Versions list in GTM.

FunnelGuard also runs your real journeys on a schedule, from the EU or the US, and checks the tracking hits sent to GA4, Google Ads, Meta and other platforms. If a container change breaks a form step or a tag, a failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Unknown publisher with Publish rightsInteractive
Unreviewed user can publish

Anyone listed can publish

Leads or data lost

A rogue version can go live on every page and may go unnoticed for days.

Toggle to see how access control changes the risk.

Questions people ask

How do I see who published a change in Google Tag Manager?

Open your container, go to Versions and look at the publisher and date next to each version. Select a version and use Compare to see exactly what changed from the one before it.

Why is there a GTM version I didn't publish?

Often it was a colleague, freelancer or agency with Publish access. If nobody can account for it, treat it as suspicious, compare it with the previous version, roll back and review User Management.

How do I remove an unknown user from my GTM container?

Go to Admin, then User Management at account or container level, find the email and remove it. Check both levels, as access can be granted in either place.

Can someone hack my Google Tag Manager container?

Yes, if a user's Google account is compromised or you give access to the wrong person. A Custom HTML tag can then run code on every page. Use 2-Step Verification and limit Publish rights to reduce the risk.

How do I roll back a Google Tag Manager change?

In Versions, open the last good version, then choose Actions and Publish. That makes it the live container again. Then review users and tags to find out how the change happened.

Does FunnelGuard tell me who changed my GTM container?

No. FunnelGuard detects GTM version change events so you know a new version went live. To see the publisher, check the Versions list in GTM.

How often should I review GTM user access?

At least quarterly, and whenever an agency, freelancer or employee leaves. Remove anyone who no longer needs access and keep permissions to the minimum.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: GTM version change event.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.