How do I install a visitor ID tag on Laravel?

On Laravel, your visitor identification tag goes in: resources/views/layouts/*.blade.php via @stack/@push directives OR Spatie package @javascript directive. The install itself takes minutes; the part that goes wrong on Laravel is below.

Where the tag goes

  1. resources/views/layouts/*.blade.php via @stack/@push directives OR Spatie package @javascript directive.
  2. Paste your vendor’s tag snippet exactly as issued. Do not wrap it in extra script tags or reformat it.
  3. Publish or deploy, then verify (below) before trusting data.

What breaks visitor tracking on Laravel?

@push directives require parent template to have matching @stack; inline script tags not tracked by Laravel's manifest.

How do you verify the tag fires?

php artisan serve, inspect page source for <script> tag, check DevTools console for execution.

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.

All platform install guides