Articles
01 December 2026

Your Tag Manager Is Part of Your Checkout

Attackers have hidden card skimmers inside Google Tag Manager. Here's how it works and how to check who can add code to your checkout.

Your Tag Manager Is Part of Your Checkout

Anyone who can publish to your tag manager can put code on your checkout page. They don't need a developer, a code review or a deployment. They need a login and a few clicks.

Most retailers think of Google Tag Manager as a marketing tool, and day to day that's what it is. It's also one of the easiest ways to get JavaScript onto the page where your customers type in their card details, which is why attackers have started using it to hide card skimmers.

What does Google Tag Manager actually do on your checkout?

Google Tag Manager lets you add tracking and marketing tags to your site without editing its code. A small snippet goes into your site template once, and from then on the container loads on every page that uses that template. On most stores, that includes checkout.

Whatever is inside the container runs in the shopper's browser. Most of it is routine, such as analytics, ad conversion tags and remarketing pixels. GTM also has a Custom HTML tag, which can hold any JavaScript at all.

That code runs on the same page as your payment form. It can read what's on the page and send data elsewhere, just like any script your developers add.

The difference is how changes go live. Your developers' code usually goes through testing and a release. A change in GTM goes live the moment someone clicks publish.

How have attackers used Google Tag Manager to skim card details?

This is already happening. In February 2025, TechRadar reported a card skimmer hidden inside a Google Tag Manager script on a Magento store. The script was disguised to look like a normal tracking tag.

The skimmer captured payment details from the checkout page and sent them to the attackers' server. At least six websites were infected with the same GTM container. The store found out after card data had already been stolen.

In June 2026, TechRadar covered another campaign where attackers added a malicious GTM container to online stores. The code switched on at checkout and copied card numbers, security codes, names and addresses as shoppers typed them.

That campaign also sent the stolen data through a well-known payment platform's own servers. Traffic to a payment provider looks normal on a checkout, so security rules that would have blocked an unknown domain let it through.

Both cases rely on the same thing. Code loading from Google's servers looks routine, so a malicious tag can sit next to your genuine ones without anyone looking twice.

Who can publish to your Google Tag Manager container?

In both cases above, the attackers brought their own container. Your own container is a separate risk, and in most businesses it's much less tightly controlled than the site code.

Over a few years, access tends to build up. The marketing team needs it, and so does the paid media agency. The SEO agency from three years ago probably still has a login, along with a freelancer who set up a campaign once and a member of staff who has since left.

Any of those accounts with publish rights can put code on your checkout. If one of them is phished or reuses a password that leaked elsewhere, an attacker gets the same access without touching your website at all.

GTM is still a useful tool, and you don't need to stop using it. Access to it simply deserves the same care as access to your site code.

How do I reduce the risk from tag manager on my checkout?

Most of this is housekeeping your marketing team or agency can do in an afternoon:

  • Review who has access. Go through the user list in your container and remove anyone who no longer needs it. Keep publish rights to as few people as you can.
  • Turn on two-step verification. Make sure every Google account with access to the container uses it.
  • Check which tags fire on checkout. Many tags are set to fire on all pages by default. If a tag doesn't need to run on checkout or payment pages, exclude those pages from its trigger.
  • Look closely at Custom HTML tags. Anything you can't explain should be investigated before it's removed, so you know how it got there.
  • Look for containers you don't own. Ask your developers to check the site templates for any GTM snippet besides your own. Both cases above used containers that belonged to the attackers.
  • Watch what actually loads. Your container settings only show what should run. What matters is what the shopper's browser loads at checkout, and that can change at any time.

There's a compliance side too. PCI DSS requirements 6.4.3 and 11.6.1 cover the scripts that run on payment pages. The PCI Security Standards Council has published guidance on payment page security and preventing e-skimming, which is worth sharing with whoever handles your compliance.

See what's running on your checkout with Checkout Audit

Checkout Audit monitors the third-party scripts on your checkout pages, so you can see what's loading and spot changes for yourself.

If you'd rather find a rogue tag before your customers' banks do, talk to the Checkout Audit team about what's running on your checkout today.

Own your checkout. Pass your audit.

Simple proof, steady monitoring, fewer surprises.

Start Protecting Your Online Presence - Cybersecurity X Webflow Template