A vendor tag audit lists every script, data element, and integrity value on a customer page before anything new goes live. A customer page can hold 30 or 40 vendor tags. You are not asked to like the stack, only to describe it honestly so the launch is clean.
Key takeaways
- List every request by origin from the network panel, sort each tag into one of four piles (still needed, needs a constraint, redundant, or unknown), and flag unknown tags without removing them.
- Write the data layer rules before launch: name the condition, name the elements, name the fallback, and put the schema in the same file as the tag inventory.
- Add an integrity column to every row — present, absent, or stale — and flag tags injected by a tag manager as a separate category.
- Check that each tag fires only where the schema allows and that nothing fires before consent.
- Give every tag a launch-day decision: keep as is, keep with a constraint, replace, or retire — and turn retired tags off in the tag manager in the same change window.
You have a week before the new tool goes live. The page already runs a crowd of vendor tags. Your job is to walk in, read what is there, and leave a written picture of the state you inherited. Nothing should ship until you can name every script, every data element it touches, and the integrity hash that locks down each script the page fetches directly (tags a tag manager injects get a named exception instead).
A tag audit done before the first change is the difference between a clean launch and a quarter of explaining why numbers moved.
Read the page before you touch it
Open the customer's page. Do not open a tag manager yet. Sit with the rendered document and the network panel. Watch what loads, in what order, and which requests carry personal or browsing context away from the site.
The OWASP cheat sheet on third party JavaScript management names a possible tag count: a single marketing page can carry 30 or 40 different vendor tags at once. Treat that range as your starting inventory size, not as a figure to repeat to your client. The real count on their page is whatever the network shows you.
List each request by origin. Group them. You will find a few kinds.
Vendor tags for analytics collect user actions and browsing context so the page owner can do marketing with them. Those are the ones you audit first, because they usually fire on every route.
User interface tags change what the visitor sees. They display a dialog, swap an image, or rewrite text. They have to run on the client. That is why they cannot be moved to a background job later.
Consent and personalization logic sits in the middle. It decides which of the other tags may run at all. If it is missing or misconfigured, you have inherited a live problem.
Once you have a rough inventory, pin each item to a name your client's team already uses. Ask for their vendor list and their data layer schema. If neither exists, write a short one yourself and hand it over. An audit that cannot be read by the marketing lead will not change anything.
The inventory sheet should carry, for each tag: who owns it, why it exists, where it fires, what data it sends, and whether it blocks render. That last column tells you where your launch risk sits.
Understand what each tag is for
Not every tag earns its place. Part of your handover is sorting the list by purpose, so the client can see what they are paying for and what is simply old.
The OWASP cheat sheet names the reason tags exist at all: to collect data on web user actions and browsing context, so the page owner can use it in marketing. Not every tag on the page still serves that purpose.
Sort into four piles:
Still needed. The tag feeds a report someone reads every week. Keep it. Record who reads it.
Needs a constraint. The tag is fine on some routes and wrong on others. This is where the data layer rules matter, and we come back to that below.
Redundant. Two tags send the same event to two tools. One of them can go. You will not know which until you ask who reads which report.
Unknown. Nobody on the client's side can say why a tag is there. Flag it. Do not remove it during your audit. Flagging is the deliverable.
The OWASP cheat sheet also notes that OWASP Top 10:2025 A03 Software Supply Chain Failures describes the problem of using components with known vulnerabilities. A vendor tag is a component you are pulling from someone else's server. If you cannot say which version is loading, you have a supply chain question, and you should write it down as one.
Ask each vendor owner a plain question: what is the current URL of this script, and what happens when it changes? If the answer is "we do not know," you have found a tag that loads without any integrity guarantee. Move it to the unknown pile and say so.
Illustrative example
Suppose a page carries 30 tags. The inventory sorts them into four piles, and any tag marked unknown keeps running until its owner answers. At launch, a retired tag is switched off in the tag manager in the same change window as its removal from the page.
Write the data layer rules before the launch
The data layer is the contract between your page and every tag that reads it. If the contract is vague, each vendor will guess, and the reports will disagree. Write the rules down before anything new ships.
The OWASP cheat sheet gives a clean example of how a rule should read: user actions in pages about specified cities, from specified locations on specified days should send data layer elements 1, 2 and 3. And, for the rest of the site, user actions in pages about other cities should send data layer elements 2 and 3 only.
That is a rule with a scope and an exception. Your version will use your client's own page types. The shape stays the same: name the condition, name the elements, name the fallback.
Here is a small side-by-side of the two rule shapes you are writing.
| Rule type | Condition | Elements sent |
|---|---|---|
| Targeted page rule | Specified city, location, and day | Elements 1, 2, and 3 |
| General fallback | Any other city page | Elements 2 and 3 only |
Source: example data layer rules from the OWASP cheat sheet.
When you write your own version, follow four habits.
Name the condition in words the marketing lead would use. Not a complicated route regex. Something like "product pages in the enterprise section."
Name the elements explicitly. If a vendor wants an element you have not defined, add it to the schema with a note on who asked for it.
Name the fallback. Every page that does not hit a targeted rule should still send a known minimum. Silence is worse than a small payload, because silence looks like an outage in the reports.
Put the schema in the same file as the tag inventory. The two documents should reference each other. When your new tool goes live, it joins the schema with a new row. That is how the next onboarding lead finds your work. For a related field checklist, see customer event specification.
Check how integrity is locked down
A vendor tag is a file your customer's page fetches from somewhere else. The content of that file can change without warning. You need a way to know that what loaded is what you approved.
The Mozilla Subresource Integrity page on MDN explains the mechanism: it works by allowing you to provide a cryptographic hash that a fetched resource must match. The file that arrives has to match the hash you pinned.
The same page describes what the value looks like: a whitespace-separated list of cryptographic hashes of the content of the linked resource, where each hash is prefixed with an identifier for the hash algorithm used, followed by a dash, and ending with the actual base64-encoded hash value.
So an integrity value is not one number. It can be several, in a row, separated by spaces.
Which algorithms should you pin? MDN puts the hash functions in order of strength, from weaker to stronger: SHA-256, SHA-384, SHA-512. Stronger means harder to forge. Pin the strongest your client's browser support matrix allows.
You can also pin more than one algorithm at once. MDN shows an attribute containing four hashes: two calculated using SHA-384, and the other two using SHA-512.
Subresource Integrity is a defense against attacks on fetched files, by ensuring that the files your web application fetches have exactly the contents that you expect them to have, as MDN puts it. Your audit question for every script tag is simple: does this tag carry an integrity value, and is the value current?
Here is a compact comparison of the three algorithms MDN names.
| Hash algorithm | Strength order |
|---|---|
| SHA-256 | Weakest of the three |
| SHA-384 | Middle |
| SHA-512 | Strongest of the three |
Source: MDN, Subresource Integrity.
Run through your inventory and add a column: integrity present, integrity absent, or integrity present but stale. A stale integrity value is worse than none in one way: it breaks the script on the next vendor update, and the breakage looks like an outage to your client. You want to catch that before launch, not during it.
Some vendor tags do not load from a script tag at all. They load through a tag manager, which injects them at runtime. Flag them as a separate category. Your mitigation for that category is access control on the tag manager itself, plus a documented change process.
Watch what the page actually sends
You have the inventory, the schema, and the integrity columns. Now watch the page under a real session and check what leaves the browser.
Two checks matter here.
First, does each tag fire only where the schema says it should? Open a page that matches a targeted rule. Confirm the expected elements appear. Open a page that does not match. Confirm the fallback fires and nothing extra leaks through.
Second, does anything fire before consent? If your client runs a consent banner, the tags behind it should stay dark until the visitor accepts. A tag that fires early is not a reporting problem. It breaks the consent rule the client has set, and you should surface it in your handover note. For a related post on explaining data collection, see customer data collection.
When you find a tag sending more than the schema allows, the fix is in the data layer or the tag's configuration. Tighten the rule, update the schema to match, then re-run the page and confirm the payload shrank.
One limit worth knowing when you are sizing what a vendor can send. The Google Analytics Help page on event collection limits states that Google Analytics doesn't log events, event parameters, and user properties that exceed the following limits. The page lists the limits themselves. Read them before you promise a client that a new tool will capture everything, because what exceeds a limit simply does not land.
Treat that as a design constraint on your schema. If a proposed element would push a payload past a vendor's cap, cut the element, not the cap. For related payload caps, see usage event size caps.
Decide what happens to each tag on launch day
Your audit should end with a decision column. Every tag gets one of four states on the day your new tool goes live.
Keep as is. Nothing changes. Record the owner and the reason.
Keep with a constraint. The tag stays but gains a tighter data layer rule, or moves behind consent.
Replace. The new tool takes over the job. Name the old tag, the new one, and the date the old one stops.
Retire. Nobody reads the report. The tag goes. Confirm with the owner in writing first.
Write the table into your handover note. It is the document the client will actually use when someone asks why a vendor disappeared.
The retirement step is where launches go wrong. A tag that is removed from the page but still firing through a tag manager will keep sending data. Turn it off in the manager at the same moment you remove it from the page. Do the two steps in one change window.
Hand over a document the next person can use
Your last deliverable is a single note the next onboarding lead can open and understand without a call.
It should carry: the tag inventory with owners, the data layer schema, the integrity status column, the consent status, the launch-day decision table, and the open questions. No theory, no vendor pitch.
Add a short section titled open questions. If the sources you worked from leave something undecided, say so there in plain words and name the person on the client's side who should answer it. That is the only place ambiguity belongs in your note.
Finally, date the document. Tag stacks change. A note without a date is a note nobody trusts three months later.
Next step today: open the customer's page with your browser's network panel and list each request by origin in a spreadsheet. Change nothing yet.
FAQ
What if the customer has no tag inventory at all? You build one. Start from the network panel on their main page types. Group by origin, then ask the marketing lead to name each one. Your first pass will be incomplete. That is fine. Ship it, then refine it as you find more.
Should I remove unknown tags during the audit? No. Flag them and leave them running. An audit is a read operation. Removing a tag you do not understand can break a report someone depends on, and you will not know until they notice.
What if a vendor will not tell me their script's current URL? Treat the tag as unverified. Note it in your integrity column as absent, and raise it as an open question in your handover. The person to ask is your client's vendor owner.
Does every script tag need an integrity value? Any script your page fetches directly can carry one. Tags injected at runtime by a tag manager cannot. Know which kind you have for each row of your inventory, and control the tag manager tightly if that is your case.
Where does consent fit in the audit? It is a column, not a section. For each tag, record whether it fires before consent, after consent, or only on certain routes. That column often drives the most work at launch.
What do I do if the data layer has no written schema? Write one. Use the rule shape from the OWASP cheat sheet: name the condition, name the elements, name the fallback. Hand it to the marketing lead and ask them to confirm it before your tool joins it.
How do I know when the audit is finished? Every row of your inventory has an owner, a purpose, an integrity status, a consent status, and a launch-day decision. If any cell is blank, you are not done.
Sources
Limits of this post
This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.