You can run website analytics without cookies. My studio site does it today: no cookies, nothing saved in your browser, no Google Analytics, and no cookie banner asking you to click "Accept" before you can read a sentence. I still know which pages people read, where they came from, and where they stop.
I built the counter myself in October. This post covers why, how it works in plain terms, and the one thing I gave up.
Why I didn't add Google Analytics
The studio has a few house rules. No ads. No dark patterns. Privacy is something I sell, so I can't treat it as fine print.
My privacy page says there are no ads or ad trackers on this site. The usual analytics setup would have made that promise harder to keep. It sets cookies, it sends your visit to another company, and in a lot of places it brings a cookie banner along with it.
I also didn't need most of what it does. I wanted answers to a short list of questions:
- Which pages do people read?
- Where did they come from: a search, a link someone shared, a flyer?
- Where do they stop in a sign-up flow?
- Is the page fast on a phone?
None of those need to know who you are. So I wrote a small collector that answers them and nothing more.
How website analytics without cookies works
The browser side is one short script, about 1.5 KB once compressed. On each page view it sends a few things: the page address, the site you came from, your browser's language and the width of your window.
The page address gets cleaned before anything is saved. The query string is cut off, except campaign tags. Anything that looks like an email address or a private code in a link gets blanked out.
The harder part is counting visitors without a cookie. When a visit arrives, my server mixes your IP address and browser type with a random value made fresh that day, and turns the mix into a scrambled code. Your visits today share that code, so I can tell ten page views from one person apart from ten people reading one page each.
The next day, the server deletes that random value. Nobody can rebuild yesterday's codes after that, me included, and nothing connects yesterday's visit to today's. Your IP address is never stored at all. I keep the country and region the visit comes from, never the city.
A few more rules sit around that:
- Do Not Track and Global Privacy Control are honored. If your browser sends either one, the script sends nothing.
- Only listed events get in. Each site has a fixed list of events it may send, like "started a sign-up sheet". Anything else is dropped, so stray text someone typed can't end up in my database by accident.
- No free text, ever. No names, no emails, no error messages, no button labels. A click is recorded as a short id I put on the button myself.
- Old records go away. Raw visit records are deleted after 13 months. After that I keep daily totals only, and those hold no visitor codes.
The page doesn't get a reply worth reading, either. The collector answers every request the same way, with an empty "got it", even when it throws an event away. A page never learns what was kept.
The site also runs Vercel's own Web Analytics and Speed Insights, which measure visits and page speed without cookies. The privacy page names them, along with every other company that handles data for the site.
What I gave up
A person who visits on Monday and again on Tuesday counts as two visitors. That is the cost of deleting the daily value, and I accepted it on purpose.
It means I can't say "this many people came back this week" from the visit counter. When I need that kind of number for an app, like how many sign-up sheets got made, it comes from the app itself, as a total, not from following anyone around the web.
I'll take that trade. I'd rather have a slightly blurry count than a sharp picture of you.
The same rule, in the apps
The principle carries into the apps, and sometimes it goes further. Color Squad, the coloring app for siblings and friends, has no ads and no tracking at all. It's for kids ages 1 to 10, so it sends nothing to my collector. Some products earn a small, careful counter. A kids' app doesn't need one.
Privacy also shapes features that never touch analytics. Flow, my side panel for Claude Code, never asks for a password or the value of an API key. It tells you which file the key goes in and lets you put it there yourself. Same instinct: collect what the job needs, and leave the rest alone.
What this means for your small business site
Most small sites need answers to the same short list I had: what gets read, where visitors come from, where they give up. A cookieless counter answers those without a banner in the way and without handing your visitors to an ad company.
Before you change anything, check what your site has running today. Plenty of business owners don't know which scripts their site loads, or that a plugin added a tracker years ago. Look at your privacy page, then open your site on your phone and watch for a banner you didn't ask for.
Want a site built this way
I build websites and apps for small businesses, churches and nonprofits, and I'm happy to build yours the same way: plain privacy promises and numbers that answer real questions. See how working with the studio goes.