ActionLab Analytics for Laravel
Add privacy-first, AI-powered analytics to your Laravel site in under 60 seconds. No cookies, no consent banners, no complex setup.
Installation Code
Laravel
{{-- resources/views/layouts/app.blade.php --}}
<head>
<script
src="https://cdn.actionlabanalytics.com/actionlab.js"
data-site="{{ config('services.actionlab.site_id') }}"
defer
></script>
</head>Step-by-Step Setup
- 1
Add the script to your Blade layout template (layouts/app.blade.php).
- 2
Add ACTIONLAB_SITE_ID to your .env file.
- 3
Register the config in config/services.php.
- 4
Works with Laravel Livewire and Inertia.js.
Why Use ActionLab with Laravel
- Environment-configurable via .env
- Works with Blade, Livewire, and Inertia
- No Laravel package needed
- SPA navigation tracked for Inertia apps
Frequently Asked Questions
Does ActionLab work with Laravel Inertia?
Yes. ActionLab detects client-side route changes for Inertia.js (both Vue and React adapters) and tracks them as pageviews automatically.