runlight / craft
Counts visitors with Runlight: privacy friendly analytics with no cookies, kept in your own database. Adds the script, reports AI agents that read your pages, and shows your dashboard in the Control Panel.
v0.1.1
2026-10-10 23:38 UTC
Requires
- php: >=8.2
- craftcms/cms: ^5.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Counts your site's visitors with Runlight: privacy friendly analytics with no cookies, kept in your own database.
- Adds Runlight's script to every front-end page, and marks 404 pages.
- Leaves out Control Panel users' own visits, if you want.
- Reports AI agents such as ChatGPT and Claude that fetch your pages, after the response has been sent.
- Adds a Runlight item to the Control Panel that shows your dashboard there with a dashboard key, and links to your Runlight.
The address, site id, and keys accept environment variables, so the keys can stay out of project config. Full steps: runlight.sh/docs/craft.
Only the Control Panel's own origin may frame the dashboard. When a proxy in front of Craft ends HTTPS, set baseCpUrl in config/general.php (or CRAFT_BASE_CP_URL), so the plugin asks for the right one.