Laravel
Add Humblytics to your Laravel site in about 5 minutes.
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 -->
@endproductionSeveral 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
Deploy to production. If you cache views, run
php artisan view:clear.Back in Humblytics, click Verify install.
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