Docs · Guides

Cookieless traffic analytics.

Every project has a built-in analytics view — page views, sessions, and referrers — with no cookies, no consent banner, and no third-party scripts. Requests are counted as they pass through Canner, and visitor identity is derived without ever storing a persistent identifier.

Open the Analytics tab on any project to see traffic to its your-project.canner.app hostname. To start counting, copy the one-line script tag the Analytics tab shows into your app’s <head>. There is no SDK, no build step and no cookie.

Custom domains

The script only counts visits on the hostnames listed in its data-domains attribute, which holds just your-project.canner.app at first. A custom domain is counted once you add it there, comma-separated: data-domains="your-project.canner.app,example.ca".

What you get

  • Page views — total and over time.
  • Sessions — distinct visits, not raw hits.
  • Referrers — where your traffic came from.
  • Top pages — the paths visitors actually land on.

How “cookieless” works

Most analytics tie a visitor to a cookie that follows them across sites and over time. Canner doesn’t. A session is identified by hashing request attributes server-side, and that hash rotates on a monthly salt: 32 random bytes, deleted once the month is over. The same visitor can’t be re-identified across months, a session id can’t be worked back to an address without the salt, and nothing persistent is written to their browser. That means:

  • No cookie banner is required for these analytics.
  • No third-party script runs on your visitors’ browsers.
  • No cross-site tracking is possible — the identifier only exists within your project, for one month at a time.

Where the data lives

Analytics are processed and stored on Canner’s Canadian infrastructure, alongside the rest of your project — the same data-residency guarantee as your app, database, and files. Nothing is shipped to an external analytics vendor. See data sovereignty for the full model.

Retention and export

Analytics is kept for 12 months. A daily job deletes everything older, for every plan. The date range on the Analytics tab can cover all 12 months at once (up to 366 days).

To keep data longer, export it. Export CSV on the Analytics tab downloads the date range on screen as a spreadsheet file: page views (one row per page view, with its path, title, referrer, UTM tags, country, device and browser), all events (page views plus custom events), or sessions (one row per visit). The same export is available as canner analytics export in the CLI, as the canner_export_analytics MCP tool (up to 1,000 rows per reply) and as GET /projects/{slug}/analytics/export in the API (CSV or NDJSON). The location columns hold the approximate city-level place the tab already shows; IP addresses are never stored, so they are not in the file.

When you need more

This view is deliberately lightweight — traffic shape, not product analytics. If you need funnels, custom events, or per-user journeys, run your own instrumentation and store it in a Postgres database, or explore it with Data Workshop.