How it works · TM-14

Analytics your site's brain builds for you.

$2,000 a month, no thanks.

Some salesmen from a big, fancy, publicly traded analytics company called us, trying to sell us their analytics platform for over $2,000 a month. It's the same analytics platform they sell everyone else. We told them we're not interested, because our site brains can make a custom analytics platform for our customers themselves.

A rented platform gives every business the same dashboard, a tracking script on every page, and a cookie banner in front of your visitors. A flff site counts its own visitors on its own server. Then its brain builds the charts, funnels and reports your business actually asks about, in plain words, in an afternoon.

Part 1 · In plain words

Your site keeps its own count.

Every request to your site passes through your site's own web server. That server already knows which page was asked for, when, from which site the visitor came, and what kind of browser asked. flff turns that into analytics, on the spot, and then forgets the details it doesn't need.

Nothing added to your pages

No tracking script slowing them down, no pixel, nothing sent to another company. Your pages stay as fast as you built them.

No cookies, no banner

Visitors are counted without storing anything in their browser, so there's nothing for them to accept. More below.

Built for your business

The brain makes the pages you ask for: the funnel from your pricing page to your contact form, this month's bookings by referrer, whatever you need to know.

A rented analytics platformYour flff site
DashboardsThe same ones for every customerThe ones you ask your brain for
On your pagesTheir tracking scriptNothing
Cookie bannerUsually requiredNot needed
Where the data livesOn their serversOn your site's server
BotsFiltered by their listFiltered by name and by how they act
PriceThe salesmen's quote: over $2,000 a monthPart of your site

Under the EU and UK rules (the ePrivacy rules behind cookie banners, and GDPR), a site has to ask first only when it stores or reads something on the visitor's device that isn't strictly needed for what the visitor asked for. Tracking cookies and advertising pixels are the usual reasons for a banner.

flff's analytics doesn't put anything on the visitor's device. Visitors are counted on the server, from what every browser sends anyway, and the details are dropped within the minute. So there's nothing to consent to, and no banner to show. We show one anyway, on this site, to say so:

Three things to know before you put one on your own site:

  • It holds only while nothing else does it. An embedded video, a font loaded from another company, a chat widget or an ad sets its own cookies, and then a banner is needed. Ask your brain to check your pages for anything loaded from elsewhere before it adds a note like ours.
  • Cookies you need are fine. A sign-in cookie, a shopping cart, or a chat a visitor started are part of what they asked for.
  • No banner isn't no notice. Your privacy policy still says what your site keeps and why. The table below lists what flff keeps for you.

This is how we read the rules, not legal advice for your business.

Part 2 · What you can ask for

Ask a question, get a page.

Add the Analytics recipe and the brain sets up an Analytics page in your site's admin: visitors and page views over time, who's on the site right now, top pages, where visitors came from, devices, browsers and systems, the busy hours, and how fast your pages load in visitors' own browsers.

Then ask for what that page doesn't show. The brain reads your site's own numbers and builds the page, in your admin, with your words:

  • "Which blog posts lead people to the contact form?"
  • "Show me last month's visitors from Instagram next to the bookings they made."
  • "Make me a weekly page: visitors, the most-read pages, and anything that broke."
  • "Where do people leave the checkout?"
  • "Who's crawling the site, and how much?"

Pages it makes for you live in your site's admin, never on the public site. Ask it to change one the same way.

Paths and funnels.

A funnel is a list of steps you hope visitors take: home, then pricing, then contact, then the thank-you page. It shows how many made each step and where the rest went. The Analytics recipe's Paths and funnels page draws them like this:

Quote requests

An example: visits in the last 30 days that went from the home page to a quote.

Home1,240 visits

412 went to the blog · 388 left the site

Pricing421 34% of the first

160 went to About · 124 left the site

Contact137 33% of pricing

66 didn't send the form

Thank you71 5.7% overall
  • Suggested for you: the page suggests funnels from your site's map and its real traffic, ending at the pages that look like goals (contact, thanks, checkout, sign-up). Keep the ones you like.
  • Or ask for one: type "people who read a blog post and then asked for a quote" and the brain works out the steps and adds the funnel.
  • Follow a page: where people go from any page, and where they came from before it, a few steps deep.
  • The commonest paths, the pages people arrive on and leave from, and the pages in your site's map nobody visits.
  • One visitor's trail: in your site's hub, under Traffic, click a visitor's id to see just their requests that day, in order. Click Busiest visitors to see who's asking the most.

Part 3 · Under the hood

How it works.

How visitors are counted

  • The source: your site's own web server logs each request: the time, the page, the status, the size, the referring site, the browser's user agent and the address it came from.
  • Read every minute, then emptied: the site's server reads the new lines, counts them, and empties the log. Addresses don't stay on disk.
  • A visitor id for the day: each visitor gets an id made from their address and browser, mixed with a random value that's new every day for each site:
    id = sha256(today's random value + address + browser)   // the first 8 bytes, as hex
    The random value is deleted after a day, so an id can't be turned back into an address, and tomorrow the same person has a new one. That's why an id follows one visit and one day, not a person over months.
  • Page views and visitors are counted from pages people asked for (not pictures, styles or scripts), and each visitor id once a day.
  • Speed in real browsers (Core Web Vitals) and visitors' script errors come from flff's loader on your pages, which reports them without cookies.

People and bots

Much of any site's traffic isn't people. flff sorts it two ways, and leaves bots out of your visitor numbers:

  • By name: search engines, AI crawlers and assistants, social previews, uptime monitors, SEO tools and scripts say what they are in their user agent.
  • By how they act: a bot that claims to be a browser gives itself away:
    • too fast for a person: more than 20 pages in a minute, or more than 300 in an hour;
    • pages without their files: ten pages or more with none of the pictures, styles or scripts a browser would fetch, and no sign that a browser ran the page;
    • from a data centre: an address in the cloud providers' published ranges (Amazon Web Services, Google Cloud, Microsoft Azure, Oracle Cloud, DigitalOcean, Linode), checked before the address is dropped.
    When a visitor is found out, what they were already counted for moves to the bots, so your numbers stay clean.
  • Seen in the hub: the Traffic section marks them 🚩 with the reason, and lists them under "Bots by how they act".

The paths tool

For each page view the site keeps a line with the time, the day's visitor id, the page and the referring site. A visit ends after 30 minutes without a page. The brain, AI apps connected to flff, and your admin pages read these through one tool, visitor_paths:

ModeWhat it answers
funnelVisits that made each step in order, the share of the first and of the step before, the median time between steps, and where the rest went.
next, previousWhere people went from a page, or came from before it, as a tree a few steps deep.
topThe commonest paths, entry and exit pages, and the share of one-page visits.
visitorsThe busiest visitor ids, with pages, the most in a minute, and a bot's reason.
visitorOne visitor's trail that day.
suggestFunnels from the site's map and its traffic, and the map's pages nobody visits.
savedThe funnels you kept, worked out for the days asked.

Steps match pages loosely: /pricing matches /pricing.html, * matches any part (/blog/*), and | gives alternatives (/contact|/thanks). Kept funnels are a small file in your admin, _u/admin/funnels.json:

{"funnels": [
  {"name": "Quote requests",
   "why": "from the home page to a sent quote form",
   "steps": [
     {"label": "Home",      "match": "/"},
     {"label": "Pricing",   "match": "/pricing"},
     {"label": "Contact",   "match": "/contact"},
     {"label": "Thank you", "match": "/thanks|/thank-you"}
   ]}
]}

An admin page asks for it with flff.paths({mode: "funnel", steps: [...], days: 30}), the same way it reads your database.

What's kept, and for how long

WhatHoldsKept
The web server's logEach request, with the addressUntil it's read, within a minute
The day's random valueWhat visitor ids are made withToday and yesterday
Daily countsViews, visitors, pages, referring sites, browsers, bots by name400 days
Recent requestsTime, page, status, kind of visitor, visitor id; no address, no query stringThe newest 3,000
PathsTime, visitor id, page, referring site90 days

All of it stays on your site's own server, in a part of the site visitors can't reach. None of it is sent to another company, and flff doesn't use it for anything but your site.

What it comes with

See also your site's own REST API and Duplex, built the same way. The catalog lists every feature and what it comes with. Questions: hello@flff.fi.