Marketing teams rarely think of themselves as part of a payment security programme. Yet the scripts they add to websites, from analytics tags and advertising pixels to chat widgets and A/B testing tools, are exactly the kind of code that card security rules now expect merchants to control. Version 4 of the Payment Card Industry Data Security Standard (PCI DSS) brought that issue to the surface, and it is worth understanding before the next tag goes live on a checkout page.
What changed with PCI DSS v4
PCI DSS v4 introduced a set of new requirements, many of which were given a grace period before becoming mandatory. The PCI Security Standards Council has explained that 51 of the 64 new requirements were future-dated and would be effective as of 31 March 2025. The same Council blog notes that the previous version, 3.2.1, was retired on 31 March 2024, leaving v4.0 and v4.0.1 as the active releases.
Two of the new requirements matter most to anyone who manages website tags: requirement 6.4.3, which deals with scripts on payment pages, and requirement 11.6.1, which deals with detecting changes to those pages.
The two requirements in plain English
Payment provider Adyen’s script security guidance summarises them clearly. Under 6.4.3, scripts that are loaded and run in the customer’s browser on a payment page must be managed: there must be a method to confirm that each script is authorised, a method to assure each script’s integrity, and an inventory of scripts with a written justification for each one.
Under 11.6.1, merchants need a change- and tamper-detection mechanism that alerts staff to unauthorised changes to payment page scripts and to security-relevant HTTP headers. Adyen adds that unauthorised changes must be investigated and resolved promptly, and suggests that a Content Security Policy with reporting enabled can support this.
The reason is straightforward. Attackers who manage to inject or alter a script on a payment page can read what customers type, including card details, without touching the merchant’s servers. Every additional script on that page is another possible route in.
Does this apply to you?
Scope depends on how your checkout is built and which self-assessment questionnaire (SAQ) applies to you. Adyen states that its guidance does not apply to merchants eligible for SAQ A, and that it does apply to those completing SAQ D or an onsite assessment, among others. Merchants that host their own payment forms, or embed payment fields in pages they control, are more likely to be in scope than those that redirect customers to a provider-hosted page.
Your acquirer, payment provider or qualified security assessor is the right party to confirm your scope. What marketing can do is make sure that whoever answers that question knows exactly which scripts run where.
Why tag managers make this hard
Tag management systems are designed to let marketers add and change scripts quickly without a developer release. That speed is the point, but it cuts against a requirement to authorise, justify and monitor every script on a payment page. Common problems include:
- Site-wide containers: a tag manager container loaded on every page, including checkout, so any tag published to it can run there.
- Fourth-party code: a vendor script that itself loads further scripts from other domains, which no one on your team has reviewed.
- Forgotten tags: pixels from old campaigns or retired vendors that were never removed.
- Unclear ownership: no single person who can say why a script is on the page and who approved it.
A checklist for marketing and web teams
- Inventory the payment pages. List every script that loads on checkout and payment steps, including those added through the tag manager, and record its purpose and owner.
- Remove what you do not need. The easiest script to secure is one that is not there. Question every analytics or advertising tag on payment steps.
- Separate checkout from the main container. Consider excluding payment pages from site-wide tag manager firing rules, or using a tightly restricted container for them.
- Introduce an approval step. Any new script on a payment page should need sign-off from security or the web team, with the justification recorded.
- Support monitoring. Work with your developers on a Content Security Policy and change detection, and make sure alerts reach someone who will act.
- Review vendor contracts. Ask tag and widget vendors how they protect their own code and how they notify customers of changes.
None of this means giving up measurement. Many teams find they can capture conversion data on the confirmation page or through server-side integrations rather than running third-party scripts on the page where card details are entered.
Practical takeaway
Treat the checkout as restricted territory. Know every script that runs there, be able to justify each one, and make changes only through an approved process. A short working session between marketing operations, the web team and whoever owns PCI compliance will usually reveal quick wins, starting with the tags nobody remembers adding.



