How I automated Adobe Analytics tag testing
Validating analytics tags by hand does not scale. In 2019 I built a small Node.js tool that takes a URL, loads the page, captures the Adobe Analytics beacon, and writes every prop, eVar and event into a file you can compare with the implementation plan. The same approach works for any analytics tool that sends a beacon.
What problem does tag testing automation solve?
Every analytics release ends with the same chore: open a list of pages, watch the network calls in a proxy or a browser plugin, and check that each prop, eVar and event fires with the value the solution design asks for. It is slow, repetitive, and easy to get wrong on page forty.
Commercial audit tools solve this, but they are licensed products and not every team can justify one for routine checks. I wanted the simple version: put the URLs in a spreadsheet, press a button, get a coffee, and come back to a second spreadsheet with every variable and its value.
Why Node.js instead of Java and Selenium?
I started out planning a fuller framework with Java and Selenium. I switched to Node.js because it was lighter, quicker to iterate on, and had good packages for loading pages and reading network traffic. For a tool whose whole job is "open page, capture beacon, write results", simple won.
What did the first version do, and what did it not?
What it did:
- Loaded a page, captured the first Adobe Analytics call, and decoded the variables into readable output.
- Gave a framework that was easy to extend.
What it did not do yet:
- It handled one URL at a time; batch input and output from files was the next step.
- It read only the first analytics call on a page, so link tracking and later calls were out of scope.
Being honest about limits mattered more than a long feature list. The point was to prove that a repeatable, scripted check beats manual clicking.
What happened next?
Over the following two years, enough people asked for a working copy that I shared the full code on my blog and later published a demo version. The question I kept hearing was the same one this article started with: how do I stop validating tags by hand?
What I would do first today
- Write the implementation plan as data (page, variable, expected value), not only as a document, so it can be tested.
- Automate the capture of every beacon on the page, not only the first, including server-side and tag manager calls.
- Run the check in the release pipeline, so tagging regressions are caught before go-live rather than in next month's report.
Today the same idea applies to Adobe Experience Platform data collection and tag management more broadly: if a rule can be written down, it can be tested automatically. For a wider view of where automation and AI help in this work, see the six-stage path to AI agents.
Discuss this on LinkedIn Connect with me on LinkedIn
Next articleCustomer value is defined at the start, not in the post-mortem