Live analytics for Statamic sites
Live analytics for Statamic: one addon sends page views, form submissions, sign-ups, crawler visits, 404s and errors, and leaves the control panel and your editors out.
Install
composer require mettr/statamic
<head>
{{ mettr }}
</head>
Add the site's two keys to .env, and it sends from production only. Statamic 6, PHP 8.3 or later.
Everything the Laravel SDK does
The addon is built on mettr for Laravel: page views and who is online from the script, served through /_live on your own domain; sign-ins; 404s and exceptions by class; response times; and crawler visits, named and kept apart from your visitors.
And for Statamic
- Form submissions, by the form's handle: see which form fills up, and from which source. Never what was typed in it.
- Sign-ups through Statamic's registration form.
- No control panel traffic: the panel's route sends nothing, and people who may use it count as staff, so your editors at work never show up as visitors.
Your own events
Mettr::event('newsletter', ['list' => 'weekly']);
Open source
mettr/statamic is MIT licensed, on GitHub and Packagist. The full guide.
Read on
Statamic
The mettr/statamic addon sends a Statamic site's page views, form submissions, sign-ups, crawler visits, 404s and errors, and leaves the control panel out.
Laravel analytics
Live analytics for Laravel apps: one composer require sends page views, your events, errors, sign-ins, failed jobs, response times and crawler visits, after the response has gone.
Product events
Send your product's own events from the server, with the user and their properties: sign-ups, upgrades, exports. Live on the dashboard, in funnels and breakdowns, beyond the reach of ad blockers.
See your site live in two minutes
Free for one site. No card, no cookie banner