How do I install a visitor ID tag on Magento/Adobe Commerce?
On Magento/Adobe Commerce, your visitor identification tag goes in: requirejs-config.js in web root OR custom modules in app/code with JS files in view/frontend/web/js. The install itself takes minutes; the part that goes wrong on Magento/Adobe Commerce is below.
Where the tag goes
- requirejs-config.js in web root OR custom modules in app/code with JS files in view/frontend/web/js.
- Paste your vendor’s tag snippet exactly as issued. Do not wrap it in extra script tags or reformat it.
- Publish or deploy, then verify (below) before trusting data.
What breaks visitor tracking on Magento/Adobe Commerce?
Magento uses RequireJS module system; vanilla script tags will execute immediately but won't be tracked by Magento's asset system.
How do you verify the tag fires?
Check page source and verify script tag loads via requirejs or direct src; test using browser console.
Then run through the labeled QA checklist before you rely on the numbers, and set expectations with the match-rate calculator — no vendor identifies every visitor.