How do I install a visitor ID tag on Angular?
On Angular, your visitor identification tag goes in: angular.json 'scripts' array OR dynamically via Renderer2.createElement('script') in component. The install itself takes minutes; the part that goes wrong on Angular is below.
Where the tag goes
- angular.json 'scripts' array OR dynamically via Renderer2.createElement('script') in component.
- 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 Angular?
Do not import library using both 'scripts' array AND import statement; this creates two copies which breaks plugins (e.g., jQuery plugins).
How do you verify the tag fires?
ng serve, inspect page source for <script> tag, check DevTools console for library availability.
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.