For the complete documentation index, see llms.txt. This page is also available as Markdown.

Laravel

Add Humblytics to your Laravel site in about 5 minutes.

You need: access to your Blade layout and a production deploy. localhost won't verify.

1. Copy your tracking code

In Humblytics, open Site settings → Install and click Copy tracking code.

2. Add it to your Blade layout

Paste the snippet just before </head> in the layout every page uses, usually resources/views/layouts/app.blade.php.

Only want it in production? Wrap the snippet in Blade's environment check:

@production
  <!-- paste your Humblytics snippet here -->
@endproduction

Several layouts? Move the snippet into a partial, such as resources/views/partials/humblytics.blade.php, and add @include('partials.humblytics') to each layout's <head>.

3. Deploy and verify

  1. Deploy to production. If you cache views, run php artisan view:clear.

  2. Back in Humblytics, click Verify install.

  3. Open your live site in a private window and click around. Your visit appears in Observe → Analytics → Overview under Live Activity within about a minute.

Not verifying? Check that APP_ENV=production on the server if you used @production, and that every page uses a layout with the snippet.

Still stuck? See Verify & Troubleshoot Tracking.

Last updated