> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlurk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How web analytics counts

> What a visitor, a visit, a page view, a bounce, a channel, a final day and a hidden row mean in Lurk web analytics.

Every number in a web report is an exact count of the hits Lurk accepted, not a sample. Bots, internal traffic, refused hits and hits over a limit are not counted. This page says what each word means. To see why a report shows nothing, read [Why a report has no numbers](https://docs.getlurk.com/web/no-numbers.md).

## Visitors

A visitor is counted per day. Lurk makes a hash from the site, the day, the visitor's IP address and the browser's user agent. A salt that changes every day goes into it. The hash is how the same visitor is recognised during one UTC day. What Lurk keeps is on the [Privacy](https://docs.getlurk.com/web/privacy.md) page.

* The same person on two days counts twice.
* The same person on two networks, or in two browsers, counts twice.
* Two people with the same IP address and the same browser count once.
* The hash changes at midnight UTC. On a site whose time zone is not UTC, a person who visits on both sides of that midnight within one local day can count twice.
* A **sum of daily visitors** over a period adds the days up. It is not the number of different people in the period.

A visitor who sends Global Privacy Control or Do Not Track is not counted at all. A visitor who opts out is not counted from that moment on; hits sent before stay counted. See [Privacy](https://docs.getlurk.com/web/privacy.md).

## Visits

A visit is a run of hits from one visitor on one site. A new visit starts when:

* the visitor has sent nothing for the site's inactivity time (30 minutes unless the project set another, up to 120);
* UTC midnight passes;
* a page view brings campaign tags or a paid click that differ from those of the visit.

A visit counts on the day it starts, with its whole length, also when it ends the next day.

## Page views and events

* A **page view** is a hit named `page_view`.
* An **event** is any accepted hit, page views included. The totals say "events" for that number.
* A hit counts on the day its time falls in, on the site's own clock.

## Bounce and visit time

* A **bounce** is a visit with one hit. The **bounce rate** is the bounces divided by the visits. A visit of a page view and one custom event is not a bounce.
* **Visit time** is the time from the first hit of a visit to its last. A visit with one hit lasts 0 seconds, so the last page of a visit is not timed. The report gives the mean.
* With no visits, both are empty, not zero.

## Entry page and exit page

The **entry page** is the path of the first page view of a visit. The **exit page** is the path of its last page view. A visit with only custom events has neither.

## Source, campaign and channel

The source, medium and campaign come from the page view that started the visit. Lurk keeps them for the visit and does not change them later.

* `utm_source` and `utm_medium` are trimmed and written in lower case. `utm_campaign` is trimmed and keeps its case.
* When a page view has any of the three, Lurk does not read the referrer for the source.
* Without them, the source is the host of the referrer, if the referrer is another site. Your own origins and the return origins set on the site are not read as referrers.
* A click ID from an ad network marks the visit as paid. The ID itself is not stored.

The **channel** is the first of these that fits, in this order: `cross_network`, `display`, `paid_search`, `paid_social`, `paid_video`, `email`, `sms`, `push`, `affiliate`, `organic_search`, `organic_social`, `organic_video`, `referral`, `direct`, `unassigned`. Lurk keeps a list of known search, social and video sources. A referrer host not on the list counts as `referral`. A tagged source it does not know stays `unassigned` unless the medium decides.

## Final days

A day is one calendar day on the site's own clock. A day is **final** 36 hours after it ends, and a report reads only final days. So today is never in a report.

* `complete_through` of a site is the end of the last final day in an unbroken run. A report cannot ask past it.
* `available_from` is where the published days start.
* The first day a site collects is not published, unless collection was switched on exactly at the start of that day.
* Today's hours are on the Web tab marked "Not final". They are outside the reports.

## No data

A day with no data is a day collection did not cover, or one that was lost. It is never shown as zero, and totals leave it out. A report says how many days of the period have no data (`days_without_data`), and the Web tab says how many days of the range are left out.

## Hidden rows

A breakdown is the totals split by one thing: page, entry page, exit page, source, campaign, country, device, event name or channel. A **row** is one line of it.

Day totals are always shown. Rows are not. A row of a day is hidden when fewer than 10 different visitors are behind it. It is also hidden when showing it would let you work out a hidden row: what is left of a total after you take away the shown rows must not be the traffic of fewer than 10 visitors. If a day has fewer than 10 visitors in all, it shows its totals and no rows.

When some rows of a report are hidden, the API describes it with this sentence:

> Some rows are withheld. The rule of hidden rows holds inside one breakdown and between the breakdowns that are parts of each other: campaign, source and channel; page, entry page and exit page

The Web tab puts this note under a breakdown:

> Some rows are hidden to protect groups of fewer than 10 visitors a day. Days built before this rule was added are not covered.

Hidden rows are not stored in the reports, and no report or API call can show one later. The raw hits and visit records behind them stay in Lurk's live database for 90 days.

* A row of kind `other` stands for every row past the day's top 1,000.
* A row of kind `unknown` stands for hits whose value is not known.
* A row marked `at_least` may be higher than shown, because on some days of the period it was hidden or counted in `other`. Read it as "at least N".


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.