Runlight for Craft CMS

The Runlight plugin counts your visitors and the AI agents that read your pages, with the dashboard right in the Control Panel. It sets no cookies, and every number stays in your own Craft database.

  • Craft 5.3 or later
  • PHP 8.2 or later
  • Free and open source
Craft's Control Panel with the Runlight item open, showing that 6,637 people visited Tulvane in the last 30 days, with cards for visits, pageviews, bounce rate, and visit duration above a chart of visitors per day.The same screen in light mode.

Once the plugin is installed, one button on its setup screen starts the count, and the Runlight item in the Control Panel shows the numbers from then on. Goals, funnels, short links, and email reports are in the full dashboard at /runlight on your site.

What it does

Your numbers stay in your database

When Craft’s database is Postgres, MySQL 8.0.20 or later, or MariaDB 11.4 or later, Runlight keeps its numbers there, in tables named after Craft’s table prefix. Your backups include them, and every server of a site sees the same ones.

Visitors are counted without cookies

Runlight tells visits apart with a daily hash of the visitor’s address and user agent, and the salt behind it is deleted after a day. Nothing is stored on the visitor’s device. How Runlight counts has the details.

AI agents that read your pages

Agents such as ChatGPT and Claude fetch pages without running JavaScript, so no script can see them. The plugin reports them after the connection has closed, so the agent never waits, and Runlight checks each one against the addresses its company publishes.

Permissions for your team

Admins and people with Manage Runlight own this Runlight. People with See Runlight’s numbers get the same dashboard without changing anything.

Your own visits are left out

Control Panel users' visits are left out unless you turn that off. The pages they see without the script are never cached, so everyone else still gets it.

Keys stay out of project config

When you connect to a Runlight you run elsewhere, the plugin writes its keys into .env and saves only the variables' names, so each environment sets its own.

At a glance

Inside Craft Sent to a Runlight elsewhere
Dashboard in the Control Panel Yes, the whole dashboard with its settings Yes, a read-only view of this site
Full dashboard At /runlight on your site In your own Runlight
Where the numbers are kept Craft’s database, or a SQLite file in storage That Runlight’s database
Goals, funnels, and short links Yes Yes, in that Runlight
AI agent fetches Yes Yes, sent with a key that can only report for this site
Email reports Yes, through Craft’s mailer or a mail service Yes, sent by that Runlight
Static caches such as Blitz Yes, visits are counted Yes, visits are counted
What it needs PHP 8.2 with pdo, mbstring, and openssl A Runlight served over HTTPS

Set it up

  1. Install the plugin from the Plugin Store in the Control Panel, or run composer require runlight/craft and then php craft plugin/install runlight.
  2. On the setup screen in the plugin’s settings, press Run Runlight in this Craft site.
  3. Add php craft runlight/check to your server’s cron, hourly, so reports go out and old visits are cleared on time.

The Craft CMS guide covers static caching, locations, email reports, and sending to a Runlight you run elsewhere.

Questions

Does it work with Blitz and other static caches?

Yes. Cached pages still include the script, so visits are counted. The plugin cannot see AI agents fetch pages a static cache answers, since Craft never runs for them.

Does it work on several servers?

Yes, when Runlight keeps its numbers in Craft’s database. A SQLite file belongs to one server, so on several servers, or a host that replaces storage on each deploy, use Postgres, MySQL 8.0.20 or later, or MariaDB 11.4 or later.

What happens when I uninstall the plugin?

Uninstalling removes Runlight’s tables, each by name and only this install’s, and its folder in storage.

Is it really free?

Yes. The plugin and Runlight itself are free and open source, with no paid plan and no limit on sites or pageviews.

The Runlight plugin is free in the Craft Plugin Store, and it starts counting the moment you choose where it runs.

Runlight is an independent project, and the makers of Craft CMS do not endorse it.