# Statistics

URL: https://docs.vaultpanel.net/guides/websites/statistics

> See a website's visitors, page views, traffic, bots and errors per day, with its top pages, referrers, browsers and missing pages, read from its NGINX access log.

The **Statistics** tab of a website shows how it is used: visitors, page views, traffic, bots and errors for each day, and the top pages, the sites visitors came from, their browsers and systems, and the pages not found. Nothing is added to the website's pages: the numbers come from its NGINX access log on the server.

> **Note:**
Website statistics need agent 0.49.0 or later on the website's server.

## How they are collected

Once a day, the panel asks each server to read the access logs of its websites (`/var/log/nginx/vp-<site name>.access.log`, and its rotated and compressed copies too). The agent sums each day and sends only the totals to the panel. Click **Read now** on the tab to read the log straight away.

The first read goes back 14 days, so a website shows some history as soon as it is read. After that, each read picks up from the last day it saw.

### Privacy

Only the day totals and top lists reach the panel. Addresses, user agents and query strings stay in the log on the server. The panel stores statistics, not raw visits, for about a year (400 days).

## What the numbers mean

![The Statistics tab of wordpress.vaultpanel.net over 30 days: 46 visitors, 76 page views, 35.3 MB of traffic in 5,167 requests and 4,860 bots and errors, above a chart of visitors and page views from Oct 20 to Nov 18](https://docs.vaultpanel.net/screenshots/website-stats-light.png)

Choose the period at the top of the tab: **7 days**, **30 days**, **90 days** or **1 year**.

| Number | What it counts |
| --- | --- |
| **Visitors** | Different visitors each day, added up. A visitor is a different address and browser on that day, not a cookie. |
| **Page views** | Requests for pages. Images, styles, scripts and requests from bots are not page views. |
| **Traffic** | The data sent, and the number of requests. |
| **Bots and errors** | Requests from bots, and the number of `4xx` and `5xx` answers (with the server errors separately). |

A chart shows visitors and page views per day. Below it:

| Card | What it lists |
| --- | --- |
| **Top pages** | The pages viewed most. |
| **Where visitors came from** | Other sites that linked visitors here. |
| **Browsers**, **Systems** | Visitors' browsers and operating systems, with their share. |
| **Pages not found (404)** | Addresses that answered 404. |
| **Responses** | Requests by status class: `2xx`, `3xx`, `4xx` and `5xx`. |

## No visits yet

If the tab shows no visits, either the log has not been read yet (it is read within a day, or now with **Read now**), or the website's domain does not point at this server yet. Visits show the day after they happen.

## Permissions

The **Statistics** tab, and **Read now**, need the `websites.read` permission. Hosting customers see the statistics of their own websites.

## Related

- [Uptime monitoring](https://docs.vaultpanel.net/guides/websites/uptime-monitoring) for whether the website answers.
- [API reference](https://docs.vaultpanel.net/api-reference/websites#get-website-statistics) for the statistics endpoints.
