Plugin Store

Official plugins

Analytics — visit counting without cookies

The official Analytics plugin — server-side visit counting with no cookies, no stored IPs and no bots, with a daily chart, top pages, referrers and a dashboard widget

2 min readLast updated

View as Markdown

On this page

The Analytics plugin (analytics) counts visits on the server. There is no tracking script on the page, no cookies and no stored IP — so no cookie consent is needed and the site doesn't get slower.

The Analytics page
The Analytics page

Using it#

Install and activate it and counting starts right away; nothing to set up.

  • The Analytics page (left menu) — today's numbers, totals for 7/30/90 days, a daily chart (also viewable as a table), the 10 top pages and the 10 top referrers (domains of sites linking to you)
  • The "Visitors, last 7 days" widget on the admin home page
The dashboard widget
The dashboard widget

What is counted#

  • Only HTML pages that opened successfully (status 200) — counted after the page was sent
  • Not counted: bots and tools (Googlebot, curl, HeadlessChrome …), browser prefetches, admin pages, /api/, /uploads/ and downloads
  • Visitors come from a daily hash of IP + browser with a fresh random salt each day — the IP cannot be recovered and a person cannot be linked across days (the same person on two days = 2 visitors)

Numbers may be a little lower than Google Analytics because bots are not counted, and a little higher because ad blockers don't block it.

Permissions#

PermissionMeaningDefault
analytics.viewOpen the Analytics page and see the dashboard widgetAdministrator, Editor

Developers can read the summary from code with plugins.call('analytics', 'summary', 30) — see Plugin API.