Website analytics

Cinder includes privacy-friendly website analytics, in the spirit of Plausible and Fathom. One small script shows you visitors, pageviews, bounce rate, visit duration, top pages, referrers, UTM campaigns, countries and devices, right next to your errors and uptime.

  • No cookies. Nothing is stored in the visitor's browser, so you don't need a consent banner for it.
  • No personal data. IP addresses and user agents are only used to compute an anonymous, daily-rotating visitor id. They are never stored.
  • No external services. Countries come from the request (Cloudflare's country header) or the visitor's timezone, never from a third-party lookup.
  • Under 2 KB. The tracker has no dependencies and loads with defer, so it never slows your pages down.

Turning analytics on

  1. Open your project and go to Settings → Analytics.
  2. Switch on Collect analytics.
  3. Check the Domains list. Events are only accepted from these hostnames and their subdomains. It starts with your project's domain.
  4. Copy the snippet into the <head> of every page.
<script defer data-site="YOUR_SITE_ID" src="https://cinderwatch.dev/js/script.js"></script>

Visit your site and open the project's Analytics tab. Your visit appears within a few seconds.

Laravel and Blade

Put the snippet in your main layout, for example resources/views/layouts/app.blade.php. To skip local development, only include it in production:

@production
    <script defer data-site="{{ config('services.cinder.site') }}" src="https://cinderwatch.dev/js/script.js"></script>
@endproduction

Single-page apps

Inertia, Livewire wire:navigate, React Router, Vue Router and other apps that use the History API are tracked automatically. Every pushState and back/forward navigation counts as a pageview.

If your router uses hash URLs (/#/settings), add data-hash:

<script defer data-site="YOUR_SITE_ID" data-hash src="https://cinderwatch.dev/js/script.js"></script>

Script options

Attribute What it does
data-site Your site id. Required.
data-hash Count hash route changes as pageviews.
data-outbound-links Send an Outbound link: Click event, with a url prop, when a visitor follows a link to another site.
data-file-downloads Send a File download event, with a url prop, for links to PDFs, zips, spreadsheets and other files.
data-file-types Comma-separated extensions to treat as downloads, replacing the default list.
data-form-submissions Send a Form: Submit event, with a form prop, for every form submit.
data-api Send events to another URL, such as your own proxy.
data-manual Don't send the first pageview automatically. Call cinder.pageview() yourself.
data-local Also track on localhost and in automated browsers. Useful while developing.

Proxying through your own domain

Some ad blockers block third-party analytics scripts. You can serve the script and the event endpoint from your own domain:

  1. Proxy /js/script.js to https://cinderwatch.dev/js/script.js.
  2. Proxy /api/event to https://cinderwatch.dev/api/v1/analytics/event, passing the visitor's IP in X-Forwarded-For.
  3. Point the snippet at your proxy:
<script defer data-site="YOUR_SITE_ID" data-api="/api/event" src="/js/script.js"></script>

Excluding yourself

To stop counting your own visits on a browser, open your site and run this in the console:

localStorage.cinder_ignore = 'true'

You can also exclude whole sections of your site, such as /admin*, under Excluded paths in the analytics settings. Bots, crawlers and HTTP libraries like curl are filtered out automatically.

How visitors are counted

Cinder never uses cookies or fingerprinting libraries. Each event's visitor id is a hash of a random salt, your site, the visitor's IP address and their user agent. The salt changes every day and old salts are deleted, so:

  • the same person counts as one visitor for the whole day,
  • the id can't be linked across days or turned back into an IP address,
  • a "visitor" over a multi-day range is the sum of daily unique visitors.

A visit (session) ends after 30 minutes without activity. A visit is a bounce when it has a single pageview and no custom events.

Sharing a dashboard

Under Settings → Analytics → Public dashboard, create a secret link that anyone can open without a Cinder account. It's read-only and isn't indexed by search engines. You can regenerate or turn off the link at any time.

Reports and alerts

  • Traffic reports summarise visitors, pageviews, bounce rate, top pages, sources, countries and goals. Set them up under Settings → Reports: they are emailed with a PDF attached, weekly, monthly, quarterly, every 6 months or yearly, and you can download one for any range. See Reports.
  • Traffic spike alerts fire when current visitors (the last 5 minutes) reach a number you choose, at most once an hour. They are sent to the project's email subscribers, Discord channel and webhook.

Usage and retention

Every pageview and custom event counts towards your plan's monthly pageviews limit, shown on the billing page. Raw events follow your plan's data retention. Daily totals are kept for the life of the project, so long-range charts keep working after raw events are pruned.

MCP

AI assistants connected to the Cinder MCP server can read your stats with the get_analytics_overview tool. For example: "How did traffic to /pricing change this week, and where did it come from?"