Skip to content
StaticScope
Overview
Get StaticScope

Analytics without a server

Plausible, Fathom, Simple Analytics, GA4 or server logs: what each measures, what it costs you and what still works on a static site.

Features Updated 21 November 2026 5 min read

A static site has no PHP to count a request. Analytics therefore comes from one of two places: a script that runs in the visitor’s browser, or a log written by the host or CDN. Both are legitimate. They answer different questions and fail in different ways.

What you cannot have is the WordPress dashboard you had before. Most WordPress analytics plugins assume WordPress renders the page, or need a WordPress connection to collect anything. On a static copy, the numbers live somewhere else.

The options

OptionHow it countsTrade-off
PlausibleCookie-free script, hosted or self-hostedPaid hosted; a self-hosted copy needs a server, a database and someone to maintain it
FathomCookie-free script, hostedPaid; simpler reporting and fewer integrations than GA4
Simple AnalyticsCookie-free script, hostedPaid; small feature set
GA4Google tag, cookies and consentFree, but heavy, complex and a consent problem in the UK and EU
Server logsCDN or web server request logIncludes bots, misses client-side events and is awkward to read

Cloudflare Web Analytics is worth a mention as a free, cookie-free option if the site is behind Cloudflare. It is less detailed than the paid tools and tied to that network. Umami is the usual choice if you want to self-host a dashboard without building one.

Cookie-free or GA4

Plausible, Fathom, Simple Analytics and Cloudflare Web Analytics avoid cookies and do not try to recognise a person across sites. They count a page view, a referrer and a rough location from the request. That is enough for “which pages are read” and “where did people come from”. It is not enough for a funnel that follows one person through three visits.

GA4 is free and far more capable. It is also a large script, it sets cookies by default and its reports are sampled or thresholded once the data gets thin. For a small static site, the cost is usually paid in consent complexity rather than money.

The weight matters more than the licence. A tag manager plus GA4 can add more JavaScript than the rest of the page. A cookie-free script is typically a few kilobytes. On a site you built to be fast, that difference is visible.

Consent

Cookie-free does not mean “no rules”. The analytics service still receives an IP address and a user agent. Under the UK’s PECR and the EU’s ePrivacy rules, the question is usually about storing information on a device, which is why cookie-free tools are easier to defend. GDPR still applies to the personal data in the request.

This is not legal advice, and the answer depends on where your readers are. The practical position: name the provider in your privacy policy, keep retention short, and do not claim “no data collected” when the server sees an IP.

If you use GA4 and your audience is in the UK or EU, load it after consent rather than before. Consent Mode can model the missing data, but modelled data is an estimate, not a measurement. A cookie-free tool avoids the banner conversation entirely for many sites, which is often the reason people choose one.

Caching and the snippet

The snippet lives in the theme header or footer, so it is part of the HTML. Change it and you have to rebuild, publish and purge the cache before anyone sees the new one. A cached page can keep sending data to the old property for as long as the cache lives.

The script itself comes from the provider and has its own cache. That is outside your control and usually fine. What is inside your control is the data-domain or site ID: publish a preview with the production ID and you pollute the numbers with your own testing.

Ad blockers, DNS filters and Safari’s tracking prevention all block analytics scripts. Server logs do not. Neither number is “the truth”: the script undercounts, the log counts bots and prefetches. Pick one source and stay with it, or you will spend your time reconciling two wrong numbers.

What still works

  • Page views, referrers, campaigns, countries and devices. All from the script or the log.
  • Outbound links and file downloads. The better scripts track them automatically; a log needs extra work.
  • 404s. Only if the 404 page includes the snippet. A missing page served by the host never runs your theme.
  • Form submissions. The provider’s dashboard is the source of truth. Analytics does not see the POST. The Forms script exposes an afterSubmit hook if you want to send an event.
  • Search terms. Pagefind runs in the browser, so send a custom event when a search happens if that matters.
  • Logged-in users. Not identifiable. There is no WordPress session on the static site, and you should not try to recreate one.

Server logs

Most hosts keep some form of log you can reach. Cloudflare and Netlify expose analytics in their dashboards. S3 access logs and CloudFront logs can be delivered to a bucket and queried. A server you own has nginx or Apache logs you can read with GoAccess.

Logs are good for totals, status codes and bandwidth. They are bad at telling you whether a human read the page. They also contain IP addresses, so retention and access are a privacy decision, as well as an operations one. Anonymise or shorten retention before someone asks.

A setup that works

Pick one cookie-free service, put the snippet in the theme, rebuild and publish, then check the live domain rather than the preview. Add the provider’s domain to your Content Security Policy, or the script will be blocked and you will debug the wrong thing.

<script defer data-domain="example.com"
  src="https://plausible.io/js/script.js"></script>

If a client insists on GA4, put it behind consent and accept that the number will be lower than the log. That is a known gap, not a bug to chase. Running GA4 and a cookie-free tool at the same time gives you two dashboards and no more certainty.

Next