Runlight for Drupal
The Runlight module counts your visitors and the AI agents that read your pages, with the dashboard right under Reports. It sets no cookies, and every number stays in your own Drupal database.



Once the module is enabled, one button on its setup screen starts the count, and Reports, Runlight 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 Drupal’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 Drupal’s table prefix, so your backups include them. Any other database gets a SQLite file under Drupal’s private files.
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 module reports them after the response has been sent, including pages Drupal’s page cache answers, and Runlight checks each one against the addresses its company publishes.
It speaks your site’s language
The dashboard starts in Drupal’s language, so /fr/runlight/ opens in French, and the module works on sites with a language in the path.
Permissions for your team
People with Administer Runlight own this Runlight. People with View Runlight get the same dashboard without changing anything.
Keys stay out of your repository
Where Runlight runs, its address, and its keys are kept in Drupal’s state, which drush config:export leaves out, so importing configuration never points one environment at another’s Runlight.
At a glance
| Inside Drupal | Sent to a Runlight elsewhere | |
|---|---|---|
| Dashboard under Reports | 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 | Drupal’s database, or a SQLite file in private files | That Runlight’s database |
| Goals, funnels, and short links | Yes | Yes, in that Runlight |
| AI agent fetches | Yes, including cached pages | Yes, sent with a key that can only report for this site |
| Email reports | Yes, through Drupal’s mailer or a mail service | Yes, sent by that Runlight |
| Gin’s dark mode | No, the dashboard has its own theme switch | Yes |
| What it needs | PHP 8.2 with pdo, mbstring, and openssl |
A Runlight served over HTTPS |
Set it up
- Install the module with
composer require drupal/runlightand enable it withdrush pm:install runlight, or under Extend. - Under Configuration, System, Runlight, press Run Runlight in this Drupal site.
- Open Reports, Runlight to watch the numbers come in.
The Drupal guide covers locations, reverse proxies, email reports, and sending to a Runlight you run elsewhere.
Questions
Does it work with Drupal’s page cache?
Yes. Cached pages still include the script, so visits are counted, and the module reports AI agents that fetch cached pages too.
Does it work with the Redirect module?
Yes. You can keep Enforce clean and canonical URLs on.
What happens when I uninstall the module?
Uninstalling removes Runlight’s tables, each by name and only this site’s, or its folder, along with what it kept in state and in Drupal’s cache.
Is it really free?
Yes. The module and Runlight itself are free and open source, with no paid plan and no limit on sites or pageviews.
The Runlight module is free on drupal.org, and it starts counting the moment you choose where it runs.
Drupal is a registered trademark of Dries Buytaert. Runlight is an independent project, and the Drupal Association does not endorse it.