# AnalyticsX documentation
> AnalyticsX is revenue-attributed web analytics: install one script, connect Stripe, and see which traffic sources, campaigns and landing pages bring paying customers.
Index: https://supametrics.io/llms.txt
---
# What is AnalyticsX
> What AnalyticsX does, how it links visitors to the payments they make, a tour of the main screens and the plans at a glance.
Source: https://supametrics.io/docs/introduction
AnalyticsX is web analytics that shows which traffic sources, pages and campaigns make you money, not only which
ones bring visitors. You add one small script to your website and connect Stripe; AnalyticsX then credits every
payment to the visit that brought the buyer.
The app lives at https://app.supametrics.io. If you're ready to set it up, go to the [Quick start](https://supametrics.io/docs/quick-start).
## The core idea
Most analytics tools stop at the visit. AnalyticsX follows the visitor through to the payment:
1. **Visitor.** The tracking script gives each browser a random visitor ID, kept in a first-party cookie on your
domain. See [What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works).
2. **Source.** Each visit records where it came from: the referring site, UTM tags or a `?ref=` tag, grouped into
channels such as Organic Search, Organic Social, AI, Email and Paid.
3. **Payment.** When the visitor buys, your checkout passes their visitor ID to Stripe. Stripe sends the payment to
AnalyticsX, which credits it to that visitor's most recent visit from a non-direct source in the 30 days before
the payment. If they only ever came direct, it counts as Direct; without a known visitor ID it is Unattributed.
The result is revenue per source, page, country and campaign, next to the usual visitors and pageviews. See
[Revenue and attribution](https://supametrics.io/docs/revenue).
## A tour of the app
The rail on the left holds the screens for the website you have selected. The website switcher at the top changes
websites.
- **All websites**: every website in your account with its recent numbers. See
[Websites and workspaces](https://supametrics.io/docs/websites).
- **Dashboard**: visitors, revenue and conversions over time, with breakdowns by source, page, location and device.
See [The site dashboard](https://supametrics.io/docs/dashboard), [Date ranges, filters, segments and notes](https://supametrics.io/docs/filters-and-date-ranges)
and [Sources, pages, locations and devices](https://supametrics.io/docs/breakdowns).
- **Real-time map**: who is on your site right now and what they are doing. See
[Real-time and the live map](https://supametrics.io/docs/realtime).
- **Insights**: patterns found in your data, such as when visitors convert. See [Insights](https://supametrics.io/docs/insights).
- **Details**: full-page reports for **Traffic**, **Goals** and **Revenue**. See [Details pages](https://supametrics.io/docs/details-pages).
- **Alerts**: emails when a goal completes or a payment arrives. See
[Email reports and alerts](https://supametrics.io/docs/reports-and-alerts).
- **Site settings**: domain, install snippet, Stripe connection, team, exclusions, sharing and more. See
[Site settings overview](https://supametrics.io/docs/site-settings).
- **API & MCP**: access tokens for the REST API and for AI assistants. See [REST API and access tokens](https://supametrics.io/docs/rest-api)
and [Connect AI assistants (MCP)](https://supametrics.io/docs/mcp).
- **Billing**: your plan, event usage and invoices. See [Plans, billing and event limits](https://supametrics.io/docs/billing).
Other screens open from these:
- **Goals** (`/goals`): the conversions you track. See [Goals](https://supametrics.io/docs/goals) and
[Journeys and funnels](https://supametrics.io/docs/journeys-and-funnels).
- **Revenue** (`/revenue`): payments, attribution and subscription metrics. See [Revenue and attribution](https://supametrics.io/docs/revenue)
and [Subscription metrics](https://supametrics.io/docs/subscription-metrics).
- **Visitors** (`/visitors`): individual visitors, their visits and payments. See
[Visitors and visitor profiles](https://supametrics.io/docs/visitors).
AnalyticsX also shows crawlers and AI bots that request your pages when your server forwards them. See
[Bots and AI crawlers](https://supametrics.io/docs/bot-tracking).
## Payment providers
Stripe works today: Checkout, Payment Links, the Payment Element and subscriptions, with refunds taken off revenue.
See [Connect Stripe](https://supametrics.io/docs/connect-stripe). Polar, LemonSqueezy, Paddle, DodoPayments, Shopify and WooCommerce are
coming soon and are not available yet.
## Plans at a glance
Every new account starts with a 14-day free trial that includes 50,000 events and needs no card. After that you
pick a plan:
| | Starter | Growth |
|---|---|---|
| Websites | 1 | 30 |
| Team members besides you | 1 | 30 |
| Monthly events and price | 10,000 for $9, 100,000 for $19, 250,000 for $29 | 1,000,000 for $49, 2,000,000 for $79, 5,000,000 for $199 |
| Data retention | 13 months | 25 months |
When packages are on sale, the homepage lists them instead, each with its monthly or yearly price, the events and
bot requests that reset every month, and the websites, team members, data retention and event credits that never reset.
Extra capacity can be bought once as add-ons. See [Packages and prices](https://supametrics.io/docs/billing#packages-and-prices).
Every plan includes revenue attribution, goals, funnels and journeys, real-time, Insights, the API and MCP. Paying
yearly costs 10 months for 12. Pageviews, goal completions and payments count as events; exit-link clicks and bots
don't. Full details are in [Plans, billing and event limits](https://supametrics.io/docs/billing).
## Privacy
The script sets first-party cookies only, removes personal fields such as `?email=` from URLs before sending them,
never stores IP addresses, and can wait for cookie consent. Names and emails are stored only if you send them. See
[What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works) and [Privacy and deleting data](https://supametrics.io/docs/privacy-and-data).
## Next steps
- [Quick start](https://supametrics.io/docs/quick-start): from sign-up to your first attributed payment.
- [Install and verify the script](https://supametrics.io/docs/install-the-script).
- [Frequently asked questions](https://supametrics.io/docs/faq).
---
# Quick start
> The steps from creating an account to your first tracked visit, goal and attributed payment, each linked to its detailed guide.
Source: https://supametrics.io/docs/quick-start
This guide takes you from a new account to a working setup in about fifteen minutes. Each step links to a page
with the full details. Steps 1 to 4 are required; the rest add conversions, revenue and your team.
## 1. Create your account
Go to https://app.supametrics.io/sign-up and fill in **Name**, **Email** and **Password** (at least 8 characters),
then click **Create account**. If Google sign-in is offered on the page, you can use that instead.
Your 14-day free trial starts now. It includes 50,000 events and needs no card. See
[Account and sign-in](https://supametrics.io/docs/account) and [Plans, billing and event limits](https://supametrics.io/docs/billing).
## 2. Add your website
The **Add your website** screen opens next. Enter:
- **Domain**, such as `example.com`. Subdomains are included automatically.
- **Name (optional)**, a nickname for the website.
- **Currency**, the one your Stripe prices are in.
- **Timezone**, which decides where each day starts on the charts.
Click **Continue**. Details: [Add your website](https://supametrics.io/docs/install-the-script#add-your-website).
## 3. Install the script
The **Setup** screen shows your snippet. Click **Copy snippet** and paste it inside `
` on every page of your
site:
```html
```
The **Install method** tabs show the same thing for **Next.js**, bundled apps (**npm**) and **WordPress**. If your
site uses a cookie banner, tick **Wait for cookie consent** first. Then deploy your site.
Details: [Install and verify the script](https://supametrics.io/docs/install-the-script).
## 4. Verify the first visit
Keep the **Setup** screen open and visit your live site in another tab. Within a few seconds the status changes
from **Waiting** to **Verified**, with the time and page of the first visit. From then on the app opens on your
dashboard.
If it stays on **Waiting**, see [The install check stays on "Waiting"](https://supametrics.io/docs/troubleshooting#the-install-check-stays-on-waiting).
While you're there, exclude your own visits: open your site once with `?ax_ignore=true` at the end of the address
in each browser you use. See [Exclusions](https://supametrics.io/docs/exclusions).
## 5. Create a goal
A goal is a conversion you care about, such as a signup. Open **Goals** (`/goals`) and click **New goal**. Pick one
of three types:
- **URL path**: completes when a visitor views a page, such as `/thank-you`.
- **Element click**: completes when a visitor clicks an element matching a CSS selector.
- **JavaScript event**: completes when your code calls `window.analyticsx?.('track', 'signup')`.
Goals count visits from the moment you create them. Details: [Goals](https://supametrics.io/docs/goals).
## 6. Connect Stripe
Open **Site settings › Revenue**. The **Stripe** section walks you through five steps and ticks each one off:
1. **Pick your payment provider** (Stripe).
2. **Pass the visitor ID into the payment**: read `window.analyticsx?.('visitorId')` in the browser and put it in
the Checkout Session's metadata as `ax_visitor_id`.
3. **Add a webhook endpoint in Stripe** with the events the screen lists.
4. **Paste the signing secret** from that endpoint.
5. **Send a test** payment.
Set it up in Stripe test mode first, then repeat for live mode. Details: [Connect Stripe](https://supametrics.io/docs/connect-stripe) and
[Revenue and attribution](https://supametrics.io/docs/revenue).
## 7. Invite your team
Owners can open **Site settings › Team**, enter a colleague's email, pick **Viewer** or **Member**, and click
**Invite**. AnalyticsX emails them a link; they join by signing in, or creating an account, with that address.
Starter includes one team member besides you, Growth 30. Details: [Team members and roles](https://supametrics.io/docs/team-and-roles).
## What's next
- Learn the [dashboard](https://supametrics.io/docs/dashboard) and its [filters and date ranges](https://supametrics.io/docs/filters-and-date-ranges).
- Get emails when goals complete or payments arrive: [Email reports and alerts](https://supametrics.io/docs/reports-and-alerts).
- Link signed-in users to their visits with `identify`: [Identify signed-in users](https://supametrics.io/docs/install-the-script#identify-signed-in-users).
- Connect an AI assistant to ask questions about your data: [Connect AI assistants (MCP)](https://supametrics.io/docs/mcp).
- Pick a plan before the trial ends: [Plans, billing and event limits](https://supametrics.io/docs/billing).
---
# Install and verify the script
> Add your website, put the tracking script on every page, confirm the first visit and set the script's options.
Source: https://supametrics.io/docs/install-the-script
AnalyticsX counts visitors with one small script (about 5 KB gzipped) on your website. It uses first-party
cookies on your own domain and loads with `defer`, so it never holds up your page. This page covers adding a
website, installing the script on common platforms, confirming that it works and the options you can add to
the script tag.
## Add your website
After you create your account, the **Add your website** screen asks for:
- **Domain**: for example `example.com`. Subdomains (`www.example.com`, `app.example.com`) are included
automatically; visits from any other domain are rejected. You can paste a full address; it is reduced to
the domain.
- **Name (optional)**: a nickname shown in the website switcher, such as `My product`.
- **Currency**: the currency your Stripe prices are in. Revenue is reported in this currency only; payments in
other currencies are listed but not added up.
- **Timezone**: decides where each day starts on the charts. It defaults to your browser's timezone.
Click **Continue**. The steps at the top of the screen (**Add website**, **Install script**, **First visit**)
show where you are.
You can change these later in **Site settings › General** (domain, additional domains and timezone, next to
the install snippet and the installation status) and **Site settings › Revenue** (currency, next to the Stripe
connection). After a domain change, visits from the old domain are rejected. After a currency change, only
payments in the new currency count, including past ones.
To add another website later, see [Websites and workspaces](https://supametrics.io/docs/websites).
## Copy the snippet
Until the first visit arrives, the app opens on the **Setup** screen (`/setup`). Once the website is verified,
`/setup` takes you to **Site settings › General**, which shows the same snippet. Copy it with **Copy snippet**.
It looks like this, with your own site ID:
```html
```
Put it inside `` on every page. If your site still loads the script from `app.analyticsx.io`, our previous
address, it keeps working and nothing is lost: events sent there are recorded as before. Switch to
`app.supametrics.io` when convenient.
The site ID is also shown as **Public site ID** under the domain in
**Site settings › General**. It is not a secret: it appears in your page source, and the server only accepts
data for it from your own domains.
Above the snippet, **Install method** switches between **Script**, **Next.js**, **npm**, **WordPress** and
**Shopify**. Two checkboxes change the snippet:
- **Wait for cookie consent** adds `data-consent="required"`. See [Cookie consent](#cookie-consent).
- **Cookieless / privacy mode** is marked **Soon**. It is not available yet and can't be ticked.
Single-page apps (Next.js, React Router, Vue, Svelte) are tracked automatically: every route change counts
as a pageview.
### Plain HTML
Paste the line before `` in your site template (or in every HTML file). The same applies to any site
builder or CMS that lets you add code to the page head.
### Next.js (App Router)
```tsx
// app/layout.tsx
import Script from 'next/script';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
```
### Bundled apps (npm)
The **npm** tab is for apps built with a bundler (React, Vue, Svelte and others). The `@analyticsx/web`
package is not published yet (**Soon**). Until it is, load the script from your app's entry file. This needs
no dependency:
```js
// main.ts (or your app's entry file)
const s = document.createElement('script');
s.defer = true;
s.src = 'https://app.supametrics.io/js/ax.js';
s.dataset.site = 'YOUR_SITE_ID';
document.head.appendChild(s);
// Then, anywhere in your app:
// window.analyticsx?.('track', 'signup');
```
With **Wait for cookie consent** ticked, the code also sets `s.dataset.consent = 'required';`.
### WordPress
There is no AnalyticsX plugin yet. Use a plugin that adds code to the page head:
1. In WordPress, open **Plugins › Add New** and install a header-code plugin such as **WPCode**.
2. Open its **Header & Footer** page and paste the snippet into the **Header** box.
3. Save. Visits appear within a minute. WooCommerce pages are tracked like any other page.
### Shopify
Connecting a Shopify store directly is marked **Soon**: the fields on the **Shopify** tab are disabled and do
nothing yet. Until then, add the **Script** snippet to the `` of your theme's `theme.liquid`.
## Confirm the first visit
Keep the **Setup** screen open and visit your site in another tab (the screen links to your domain). The
screen checks every few seconds. When the first accepted visit arrives, the status changes from **Waiting** to
**Verified** and shows when the first visit arrived and on which page. It only passes when your site really
sends an accepted visit; nothing else can turn it on.
If nothing arrives after two minutes, the screen shows **Nothing yet? Check these**:
- The page you opened is on your domain or a subdomain (`localhost` isn't counted).
- The snippet is deployed, not only saved locally. View the page source to confirm.
- An ad blocker in your browser may block it. Try a private window with extensions off.
- You haven't excluded this browser with `?ax_ignore=true`.
More causes are in [Troubleshooting](https://supametrics.io/docs/troubleshooting#the-install-check-stays-on-waiting).
Below the status, the **Website settings** card shows the site ID, the **Last accepted event**, the Stripe
connection status, and a form to change the name, domain, currency and timezone (**Save settings**).
Once verified, the app opens on the [dashboard](https://supametrics.io/docs/dashboard) instead.
## Domains
- **Domain** (**Site settings › General**): your main domain. All its subdomains are accepted.
- **Additional domains**: other domains (and their subdomains) that may send data to this website, for
example a separate checkout or docs domain. Type the domain and click **Add**; **Remove** takes it off.
Links between your main and additional domains are treated as internal navigation, not referrals.
- **Allow all domains**: a switch above the additional domains, for embedded widgets and custom domains. When
it is on, any hostname may send data to this website.
- **Managed proxy** is marked **Soon**: serving the script through a subdomain of yours with a CNAME record is
not available yet. You can proxy it yourself today; see [Serve the script from your domain](#serve-the-script-from-your-domain).
Visitors are identified with a cookie on the domain the page is on, so `example.com` and `app.example.com`
share one visitor, but `example.com` and `another-domain.com` count the same person as two visitors.
Only owners and members can change domains and other settings. Viewers can open the page and copy the
snippet. See [Team members and roles](https://supametrics.io/docs/team-and-roles).
## Options
Add these attributes to the script tag when you need them.
| Attribute | What it does |
|---|---|
| `data-consent="required"` | Sends nothing and sets no cookies until your consent tool calls `analyticsx('consent', true)`. |
| `data-domain="example.com"` | Cookie domain, if automatic detection picks the wrong one. |
| `data-api="https://..."` | Where to send events, when you proxy them through your own domain. |
| `data-allow-localhost` | Also track on `localhost` and other local development hosts, for testing. |
### Cookie consent
With `data-consent="required"`, call this from your consent tool's callbacks:
```js
window.analyticsx?.('consent', true); // visitor accepted
window.analyticsx?.('consent', false); // visitor withdrew (cookies are removed)
```
The choice is remembered in the visitor's browser. Until consent is given, `analyticsx('visitorId')` returns
`null`, so payments from that browser are Unattributed.
### Test on localhost
By default the script does nothing on `localhost`, `127.x.x.x`, `0.0.0.0`, `[::1]`, `*.local` hosts and
`file:` pages. Add `data-allow-localhost` to the tag while testing locally. Those visits are stored under
their hostname (for example `localhost`), and you can drop them later with a hostname rule in
**Site settings › Exclusions**. Remove the attribute before you deploy, or keep it: it has no effect on your
live domain.
### Serve the script from your domain
Some ad blockers block requests to analytics services. To avoid that, forward requests from a path on your own
domain to `https://app.supametrics.io/api/event` and point the script at it:
```html
```
Your proxy must:
- Forward the request body unchanged (`POST`, sent as `text/plain`).
- Forward the visitor's `User-Agent` header. Requests without one are treated as bots and dropped.
- Put the visitor's IP address first in `X-Forwarded-For`. It is used for rate limits and IP exclusions, and
is never stored.
Behind a proxy, the country comes from the proxy's location, unless the request carries an
`x-vercel-ip-country` header (Vercel adds it), in which case only the country is recorded, not the region or
city.
When your `data-api` address ends in `/event`, click goals load through the same proxy, from the address with
`/event` replaced by `/config/` (for example `https://example.com/your-path/config/YOUR_SITE_ID`).
Forward that `GET` to `https://app.supametrics.io/api/config/`. If your proxy doesn't answer it, or your
`data-api` address doesn't end in `/event`, they load from the address the script itself came from.
### Identify signed-in users
When someone signs up or logs in to your app, tell AnalyticsX who they are:
```js
window.analyticsx?.('identify', { id: user.id, email: user.email, name: user.name });
```
All three fields are optional; send what you have. Later calls fill in missing fields without clearing
earlier ones. The person's name or email then shows on the **Visitors** screen, and you can search by it.
Call it on every login so each browser the person uses is linked to them. See
[Visitors and visitor profiles](https://supametrics.io/docs/visitors).
This is personal data. Mention it in your privacy policy, and with `data-consent="required"` it is only
sent after consent.
### Erase a person (deletion requests)
On the **Visitors** screen, **Erase a person** finds someone by email, user ID or visitor ID across all
time and deletes their visits, goals and identity from every browser they were identified on. Their
payments stay in your revenue, without the link to them. This can't be undone. See
[Privacy and deleting data](https://supametrics.io/docs/privacy-and-data).
### Exclude your own visits
Open your site once with `?ax_ignore=true` at the end of the address (**Site settings › Exclusions** has
an **Exclude this browser** button for this). That browser is never counted again. Do it in each browser you
use; undo with `?ax_ignore=false`. The same tab also excludes traffic by IP address, path, hostname or
country; see [Exclusions](https://supametrics.io/docs/exclusions).
### Installed before the rename
Sites that use the DataFaster snippet (`/js/df.js`, `window.datafaster`) keep working unchanged: same script,
same visitors, same goals. Switch to the snippet above whenever convenient.
## What is collected
Per visit: pages viewed, the referring site, UTM tags (`utm_source`, `utm_medium`, `utm_campaign`,
`utm_term`, `utm_content`) or `?ref=`, country (from the network, not GPS), device, browser and OS, and the
screen size (width and height in pixels, shown next to the device in the visitor drawer).
Clicks on links to other websites are recorded as **exit links** (Details › Pages › Exit links): only the
link's address without its query string, and the page it was clicked on. They don't count toward your plan's events. Personal fields
in URLs such as `?email=` or `?token=` are removed in the browser before anything is sent. Bots and automated
browsers are ignored. Names and emails are stored only if you send them with `identify`.
Traffic from AI assistants (ChatGPT, Claude, Perplexity, Gemini, Copilot and others) is grouped as its own
**AI** channel.
The full list of fields, cookies and rules is in [What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works). To
record conversions, continue with [Goals](https://supametrics.io/docs/goals); to credit revenue, [Connect Stripe](https://supametrics.io/docs/connect-stripe).
---
# What AnalyticsX collects
> What the tracking script sends, what is stored, the cookies it sets, how visitors, sessions and traffic sources are worked out, and how bots are filtered.
Source: https://supametrics.io/docs/how-tracking-works
This page describes exactly what the AnalyticsX script (`ax.js`) does in your visitors' browsers and what the
server keeps. Use it to answer privacy questions, fill in your privacy policy and understand why the numbers
look the way they do.
## What the script does
When a page loads, the script:
1. Stops right away if any of these is true: the tag has no `data-site`, the browser was excluded with
`?ax_ignore=true`, the browser is driven by automation software (`navigator.webdriver`, as in Playwright,
Puppeteer or Selenium), or the page is on a local host (`localhost`, `127.x.x.x`, `0.0.0.0`, `[::1]`,
`*.local`, or a `file:` page) without `data-allow-localhost`.
2. With `data-consent="required"`, waits until `analyticsx('consent', true)` is called before doing anything
else.
3. Reads or creates the visitor and session cookies, sends a pageview, and loads your click goals.
After that it sends:
- A **pageview** on every page load and every single-page-app route change (`history.pushState`,
`replaceState` and the back and forward buttons). A route change to the same path and query string as the
current page is not counted again.
- A **click** when a visitor clicks an element that matches one of your [click goals](https://supametrics.io/docs/goals).
- An **event** when your code calls `analyticsx('track', 'name')`.
- An **identify** when your code calls `analyticsx('identify', { ... })`.
- An **exit** when a visitor clicks (or middle-clicks) an `http` or `https` link to another website. Links to
your own domain and its subdomains are not exits.
Requests go to `https://app.supametrics.io/api/event` (or your `data-api` address) as a small `POST` without
cookies (`credentials: 'omit'`). Clicks, events, identify calls and exits use `sendBeacon` when the browser
supports it, so they arrive even when the click leaves the page.
## What each request contains
| Field | Contents |
|---|---|
| Site ID | Your public site ID from `data-site`. |
| Type | `pageview`, `click`, `event`, `identify` or `exit`. |
| Page URL | The current address, with personal query parameters removed (see below). |
| Referrer | The referring page, on the first pageview of a page load only. |
| Visitor ID and session ID | Random IDs from the cookies described below. |
| Screen size | Screen width and height in pixels. |
| Event ID | A random ID, so a retried request is stored only once. |
| Goal ID | For clicks: which click goal matched. |
| Event name | For `track`: the name, up to 64 characters. |
| Link | For exits: the link's origin and path, without query string, up to 1,000 characters. |
| User ID, email, name | For `identify` only, and only what your code passes (128 characters each, 254 for the email). |
The server also sees the request's `User-Agent` header and IP address, and Cloudflare adds the visitor's
approximate location.
### Personal data removed from URLs
Before anything is sent, the script deletes these query parameters from the page URL (any letter case):
`email`, `e-mail`, `name`, `phone`, `password`, `pass`, `token`, `access_token`, `id_token`, `auth`, `code`,
`secret`, `key`, `api_key`, `license_key` and `license`. A thank-you page at `/welcome?email=ana@example.com`
is sent as `/welcome`.
## What is stored
AnalyticsX keeps one record per **session** (visit) and one per **pageview** or **goal completion**.
For each session:
- The hostname, the entry page and the exit page.
- The referrer's host and path (without query string), when it is another website.
- The source and channel worked out from it (see [Sources and channels](#sources-and-channels)).
- UTM tags from the landing URL: `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, and
`ref` (or `via`).
- Country, region and city.
- Browser, operating system and device type.
- Screen width and height.
- Pageview and goal counts, start time and last activity.
For each pageview: the time and the page **path**. The query string is not stored; `/pricing?plan=pro` is
recorded as `/pricing`. Paths are stored decoded, without a trailing slash (`/blog/` becomes `/blog`), and up to
500 characters.
Clicks and custom events are stored only when they complete a goal. A custom event name that matches no goal is
remembered by name only, so the **Goals** screen can offer to turn it into a goal.
Exit links are stored as the link's host (without `www.`) and path, plus the page it was clicked on.
Identify calls store the user ID, email (lowercased) and name against the visitor ID. A later call fills in
fields that are missing and never clears earlier ones.
### What is not stored
- **IP addresses.** The IP is used for rate limiting and for your IP [exclusions](https://supametrics.io/docs/exclusions), then
discarded.
- **Full user agents.** Only the browser name, OS name and device type derived from it.
- **Query strings** of pages and exit links (UTM tags and `ref` are read from the landing URL first).
- **Names, emails or user IDs**, unless you send them with `identify`.
- **Precise location.** Location comes from the network, never from GPS.
## Cookies and browser storage
All cookies are first-party: they are set by the script on your own domain, not on an AnalyticsX domain.
| Name | Kind | Lifetime | Purpose |
|---|---|---|---|
| `ax_vid` | Cookie | 1 year, renewed on every request | Random visitor ID. |
| `ax_sid` | Cookie | 30 minutes, renewed on every request | Random session ID. |
| `ax_t` | Cookie | Removed immediately | Test cookie used once per page load to find your root domain, just before the visitor cookie is first written (so never before consent). Not set when the tag has `data-domain`. |
| `ax_ignore` | localStorage | Until `?ax_ignore=false` | Marks a browser you excluded with `?ax_ignore=true`. |
| `ax_consent` | localStorage | Until consent is withdrawn | Remembers consent given through `analyticsx('consent', true)`. |
| `ax_goals_` | sessionStorage | 1 minute cache, cleared with the tab | Your click goal selectors. |
Cookies use `SameSite=Lax`, `path=/`, and `Secure` on `https` pages. The script tries the shortest domain the
browser accepts a cookie on (for example `example.com` for a page on `app.example.com`), so all your subdomains
share one visitor. If that picks the wrong domain, set it with `data-domain="example.com"`.
With `data-consent="required"`, the script sets no cookie at all, not even the `ax_t` test cookie, until
consent is given. Withdrawing consent (`analyticsx('consent', false)`) deletes the visitor and session cookies.
Sites installed under the old name used `df_vid` and `df_sid`. The script moves them to `ax_vid` and `ax_sid` on
the first visit and deletes the old ones, so returning visitors keep their ID.
Cookieless tracking is not available yet; it shows as **Cookieless / privacy mode** with a **Soon** tag on the
install screen.
## Visitors and sessions
- A **visitor** is one browser on your domain, identified by the `ax_vid` cookie. The same person on another
device or browser, after clearing cookies, or on a domain that doesn't share the cookie (an additional domain
rather than a subdomain) counts as a new visitor. Calling `identify` in each browser the person signs in on
links each of those browsers to them (see [Visitors and visitor profiles](https://supametrics.io/docs/visitors)).
- A **session** (visit) is identified by the `ax_sid` cookie. It ends after 30 minutes without any request from
that browser; the next pageview starts a new session. There is no cut-off at midnight.
- A session's source, landing page, location and device are decided when it starts. Tagged links opened later in
the same session don't change its source.
## Sources and channels
Each session gets a **source** and one of seven **channels**: **Direct**, **Organic Search**,
**Organic Social**, **AI**, **Referral**, **Email** and **Paid**.
### Source
1. A tag in the landing URL wins over the referrer: `utm_source`, otherwise `ref` (or `via`).
2. If the tag or the referrer matches a known source, the source is its name (for example `t.co`, `x.com` or
`?ref=x` all become **X**).
3. Otherwise the source is the tag as written, or else the referrer's domain without `www.`.
4. With neither, the source is **Direct / None**.
Referrers from your own domain, its subdomains and your additional domains are navigation within your site and
are ignored. Links opened from Android apps (`android-app://...`) use the app's package name as the referrer.
Known sources include Google, Bing, DuckDuckGo, Yahoo, Yandex, Baidu, Ecosia and Brave Search (Organic Search);
ChatGPT, Claude, Perplexity, Gemini, Copilot, DeepSeek and Grok (AI); X, YouTube, LinkedIn, Reddit, Facebook,
Instagram, Threads, TikTok, Pinterest, Bluesky, Mastodon and Hacker News (Organic Social); Product Hunt, Medium,
Substack, Dev.to, Indie Hackers and GitHub (Referral); and Gmail, Outlook and `newsletter`, `email` or `mail`
tags (Email). Matching ignores letter case.
### Channel
The first rule that applies decides the channel:
| Rule | Channel |
|---|---|
| `utm_medium` is `cpc`, `ppc`, `cpm`, `paid`, `paid_social`, `paidsearch`, `ad`, `ads`, `display`, `retargeting` or `sponsored` | Paid |
| `utm_medium` is `email`, `e-mail` or `newsletter` | Email |
| The source is a known source | That source's channel |
| `utm_medium` is `social`, `social_media` or `sm` | Organic Social |
| Any other tag or referrer | Referral |
| Nothing | Direct |
Some apps (X, LinkedIn, many email clients) hide the referrer, so their visits arrive as Direct. Tag the links you
share, for example `?utm_source=x&utm_campaign=launch` or `?ref=launch`.
For how sources are used to credit payments, see [Revenue and attribution](https://supametrics.io/docs/revenue).
## Devices, browsers and locations
- **Device** is **Desktop**, **Mobile** or **Tablet**, from the user agent: iPads, tablets and Android devices
without "Mobile" are tablets; phones are mobile. A "desktop" browser reporting a screen narrower than 600 pixels
is counted as mobile.
- **Browser** is recognised for the common browsers (Chrome, Safari, Mobile Safari, Firefox, Edge, Opera, Samsung
Internet, Brave, Arc, Vivaldi, Yandex, DuckDuckGo) and for in-app browsers (Instagram, Facebook, Twitter,
LinkedIn, Threads, TikTok, Chrome WebView). Anything else is **Other**.
- **Operating system** is iOS, iPadOS, Android, Windows, Chrome OS, Mac OS, Linux or Other.
- **Location** (country, region, city) comes from Cloudflare's lookup of the request's network address. Behind your
own proxy, see [Serve the script from your domain](https://supametrics.io/docs/install-the-script#serve-the-script-from-your-domain).
## Bots and automated traffic
Bots never count as visitors, pageviews or events:
- The script does nothing in browsers controlled by automation tools (`navigator.webdriver`).
- The server drops requests with no user agent, and user agents of crawlers, link previewers, monitoring and
testing tools and HTTP libraries: for example Googlebot and other `bot`, `crawl` or `spider` agents, GPTBot,
ClaudeBot, ChatGPT-User, Perplexity, Bytespider, Ahrefs, Semrush, facebookexternalhit, WhatsApp, Telegram,
Discord, Lighthouse, Pingdom, uptime monitors, headless browsers, Puppeteer, Playwright, Selenium, curl, wget,
Python, axios, node-fetch, Go, Java and okhttp clients.
Dropped requests are answered as accepted, so nothing retries them. Crawlers that don't run JavaScript never reach
the script at all; to see them, forward their requests as described in [Bots and AI crawlers](https://supametrics.io/docs/bot-tracking).
## What the server rejects
The event endpoint accepts data only for your site's domain, its subdomains and your additional domains (or any
domain with **Allow all domains** on). Requests from other domains are refused, so nobody can add data to your
stats by copying your snippet. It also refuses malformed requests, bodies over 8 KB and unknown site IDs, and
rate-limits floods from one address. Events matching your [exclusions](https://supametrics.io/docs/exclusions) are accepted but never
stored. The response codes are listed in [Troubleshooting](https://supametrics.io/docs/troubleshooting#check-the-network-request).
## Data retention
Each plan keeps your full-detail history for a set time: 13 months on Starter and 25 months on Growth. Older
data is deleted automatically; see [Automatic deletion of old data](https://supametrics.io/docs/privacy-and-data#automatic-deletion-of-old-data)
and [Plans, billing and event limits](https://supametrics.io/docs/billing). To delete one person's data or a whole website, see
[Privacy and deleting data](https://supametrics.io/docs/privacy-and-data).
## What counts toward your plan
Pageviews, goal completions and payments count as events. Exit-link clicks, custom events and clicks that complete
no goal, identify calls, bots and excluded traffic don't. Details are in
[Plans, billing and event limits](https://supametrics.io/docs/billing).
---
# The site dashboard
> A tour of the dashboard for one website, covering the key figures, the main chart, the breakdown cards, the Goals card and the Bot traffic card.
Source: https://supametrics.io/docs/dashboard
The dashboard is the main screen for one website. It shows how many people visited, where they came from, what they did and how much revenue they brought, all for the period you pick. Open it from **Dashboard** in the left rail, or go to `https://app.supametrics.io/dashboard`. To switch websites, use the website switcher at the top of the rail.
Everyone on the website can open the dashboard: the owner, members and viewers. Viewers can read everything but can't add notes, save segments or change goals and bot settings. See [Team members and roles](https://supametrics.io/docs/team-and-roles).
## Before the first event
Until the tracking script has sent its first event, the dashboard shows **Waiting for your first event…** and an **Install the script** button. Install the snippet, open your site in a new tab, and the dashboard fills in. See [Install and verify the script](https://supametrics.io/docs/install-the-script).
## The header
- The website's icon, the label **Website** and its domain.
- **Share** opens the sharing options for the website (a public dashboard link). See [Share your dashboard](https://supametrics.io/docs/sharing).
- **Settings** opens Site settings. See [Site settings overview](https://supametrics.io/docs/site-settings).
## The toolbar
Under the header is the report toolbar, which every analytics screen shares:
- **Previous period** and **Next period** arrows step the range back or forward by its own length. Next is disabled when the range already ends now.
- The period button (for example **Last 30 days**) opens the period menu.
- **Compare** adds the previous period to the figures and the chart. When it's on, the button reads, for example, **vs Sep 18 – Oct 18**; click it to turn compare off.
- The granularity menu (**Hourly**, **Daily**, **Weekly**, **Monthly**) sets the size of each chart bucket.
- The filter button opens the filter menu: saved segments, every filterable dimension and suggested filters.
- **Refresh** reloads every number on the page.
- At the right, **Updated … · time zone** says how fresh the numbers are and which time zone they use (the website's time zone).
All of this, including filters, segments and notes, is explained in [Date ranges, filters, segments and notes](https://supametrics.io/docs/filters-and-date-ranges).
When filters are active, a **Filtered by** row appears under the toolbar with one chip per filter, **Save as segment** and **Clear all**.
## Key figures
The top of the main card is a row of key figures for the period:
| Figure | What it shows |
| --- | --- |
| **Visitors** | Unique visitors |
| **Revenue** | Revenue in the website's currency, net of refunds when you subtract them |
| **Conversion rate** | Paying visitors as a share of visitors |
| **Revenue/visitor** | Revenue divided by visitors |
| **Bounce rate** | Share of visits with at most one pageview |
| **Session time** | Average visit length |
| **Online** | Visitors active in the last 5 minutes |
Exact definitions are in the [Metrics glossary](https://supametrics.io/docs/metrics-glossary).
Under each figure is the change against the previous period, with an arrow. Green means better and red means worse; for **Bounce rate** a drop is green. The change reads **–** when the previous period has nothing to compare with. With **Compare** on, each figure also shows the previous period's value under it.
Revenue figures (**Revenue**, **Conversion rate**, **Revenue/visitor**) read **–** until Stripe is connected or revenue arrives. See [Connect Stripe](https://supametrics.io/docs/connect-stripe).
Hover or focus **Revenue** to see how it splits: **Renewal** and **New**, and when the period has refunds, **Refunds** and **Net** (New + Renewal − Refunds).
**Online** has a **Watch on the globe →** link to the real-time map. See [Real-time and the live map](https://supametrics.io/docs/realtime).
### Clicking a figure
Each figure is a button that changes the main chart:
- **Visitors** and **Revenue** show the combined chart (visitors as a line, revenue as bars).
- Click **Visitors** again to split visitors into **New visitors** and **Returning**. Click it once more to go back.
- **Conversion rate**, **Revenue/visitor**, **Bounce rate** and **Session time** each draw their own line. Click the same figure again to go back to the combined chart.
The selected figure is underlined, and the other figures fade while a single metric is on the chart.
### When your #1 KPI is a goal
If **Site settings › General › #1 KPI** is set to a goal (or you starred a goal with **Set as KPI** on the Goals card), that goal's completions replace **Revenue** in the key figures, and the chart's bars show its completions instead of revenue. See [General settings](https://supametrics.io/docs/settings-general).
## The main chart
The combined chart draws visitors as a line with a soft area (left axis) and revenue as stacked bars (right axis): **Revenue · New** and **Renewal**. The bars stay below the visitor line so both stay readable. Without Stripe and without revenue, only the visitor line shows. The colours of revenue and goal bars follow **Site settings › General › Colour scheme**.
- Hover a point for the tooltip: visitors with a new/returning split, and when the bucket has revenue, its revenue split, revenue per visitor and conversion rate. With compare on, the previous period's value is included.
- With compare on, the previous period is drawn as a dashed line, lined up by calendar position (today at 00:00 over yesterday at 00:00).
- On a daily chart, click a day to drill into it: the period changes to that single day, shown hourly.
- On a daily chart, hovering a day shows a dashed guide, how long ago the day was (for example "3 days ago"), and a small note button above the point that opens that day's notes. Owners and members see the note button; viewers don't.
- Days with notes get a marker at the top of the chart, unless **Show notes on chart** is off.
- The **Notes** button on the legend row lists this period's notes and lets you add one. See [Notes](https://supametrics.io/docs/filters-and-date-ranges#notes).
The split chart (**New visitors** and **Returning**) also draws dots along the top, sized by each bucket's pageviews. Its tooltip shows pageviews, pages per visitor, unique visitors split into new and returning, and the returning rate.
When **Revenue** is selected and the period has no revenue, the chart says **No revenue in this period**, with a **Connect Stripe** link if Stripe isn't connected.
If some revenue in the period couldn't be credited to a visit, a line under the chart says how much: "Breakdowns show attributed revenue. $X of $Y has no visit to credit and appears as Unattributed." See [Revenue and attribution](https://supametrics.io/docs/revenue).
### The Now period
With the period set to **Now**, the main chart is replaced by a live chart: new and returning visitors per minute over the last 30 minutes, refreshed every minute. Its legend shows the counts, for example **New visitors (5)** and **Returning (2)**. **Conversion rate** and **Revenue/visitor** read **–** in this period, since half an hour rarely has enough orders to make a rate worth reading. Changes compare with the 30 minutes before.
## Breakdown cards
Four cards break the period down by one dimension each. Every card has tabs, a **Visitors** / **Revenue** toggle, the top rows, and a **Details page** link at the bottom.
| Card | Tabs |
| --- | --- |
| **Sources** | Channel, Referrer, Campaign, Keyword |
| **Pages** | Hostname, Page, Entry page, Exit link |
| **Locations** | Map, Country, Region, City |
| **Devices & tech** | Browser, OS, Device |
Click a row to filter the whole dashboard by that value; click it again to remove the filter. The toggle ranks the card by visitors or by revenue; without Stripe it is disabled and says **Connect Stripe to sort by revenue**. The **Details page** link opens the full table, under the Revenue lens when the card is ranked by revenue and the Traffic lens otherwise.
Everything about these cards (the channel donut, scope menus, campaign links, exit links and the map) is in [Sources, pages, locations and devices](https://supametrics.io/docs/breakdowns).
## Goals card
The Goals card has four tabs:
- **Goal**: a line per goal over the period (up to 8 lines), and the goal list beside it with each goal's completions and the share of unique visitors who completed it. Search goals with **Search goals**. The sliders button (**Goal visibility**, owner and members only) chooses which goals show, and **+** (**Add goals**) explains how to add goals. Click a goal to open its detail: a summary sentence, completions by `utm_content`, and the actions **Edit**, **Hide**, **Set as KPI**, **Filter**, **Funnel** and **Journey**. Viewers only get **Filter** and **Journey**.
- **Funnel**: build and read funnels.
- **User**: the visitors in the period, with search. See [Visitors and visitor profiles](https://supametrics.io/docs/visitors#the-user-tab-on-the-dashboard).
- **Journey**: the paths visitors took to a goal, with a goal picker and search.
Goal completions on this card count only visits that match the dashboard's filters. For goals themselves see [Goals](https://supametrics.io/docs/goals); for the Funnel and Journey tabs see [Journeys and funnels](https://supametrics.io/docs/journeys-and-funnels).
When there are no goals yet, the card says **No goals yet** with a **Create a goal** link. When an event goal has never fired, the card shows the line of code it is waiting for.
## Bot traffic card
The last card shows crawlers (AI assistants, search engines and training crawlers) that your server reports. Bot hits never count as visitors. It has its own setup, settings and a **Hide card** option. See [Bots and AI crawlers](https://supametrics.io/docs/bot-tracking).
## When the dashboard is locked
On a paid plan, when your account reaches its monthly event limit, the dashboard of every website the account owns is locked until the billing cycle resets. Instead of the numbers you see a card that can't be dismissed:
- The owner sees **You've reached N events**, the date the lock ends, and whether tracking continues or is paused (it pauses only when **Pause tracking at limit** is on). The owner can use **Use my free pass** once per account, which unlocks the dashboard until the end of the current cycle, or **Raise my limit or upgrade**, which opens Billing.
- Members and viewers see **This dashboard is locked** and are asked to contact the owner.
The lock covers the dashboard, Insights, Details, the real-time map, Goals, Revenue and Visitors. Site settings, the websites list and your account stay open. A public share link that was already on keeps working, and so do the REST API and MCP. See [Plans, billing and event limits](https://supametrics.io/docs/billing).
## Common questions
**Why does the chart's visitor total not match the sum of the cards?** Cards count unique visitors per value. A visitor who came from two channels, or viewed two pages, counts once in each row but once in the total.
**Why is my revenue different on the Revenue cards?** The cards show attributed revenue. Revenue without a visit to credit appears as an **Unattributed** row at the end of the list.
**Which time zone are the numbers in?** The website's time zone, shown at the right of the toolbar. Change it in **Site settings › General**.
---
# Date ranges, filters, segments and notes
> How to pick a period, compare it with the one before, filter by any dimension, save filters as segments, add notes to days and share a view by its URL.
Source: https://supametrics.io/docs/filters-and-date-ranges
The dashboard and the Details pages share one report toolbar. It sets the period, the comparison, the chart granularity and the filters. Everything it sets is kept in the page URL, so you can bookmark a view, reload it or send the link to a teammate.
All dates and times are in the website's time zone, shown at the right of the toolbar (**Updated just now · Europe/Berlin**, for example). Change the time zone in **Site settings › General**. See [General settings](https://supametrics.io/docs/settings-general).
## Pick a period
Click the period button (it shows the current period, for example **Last 30 days**). The menu shows the **Current time** in the website's time zone, then your **Pinned** periods, then **More**, then **Custom range…**.
| Period | Covers | Granularity options |
| --- | --- | --- |
| **Now** | The last 30 minutes, minute by minute | (live chart) |
| **Today** | Midnight today until now | Hourly |
| **Yesterday** | All of yesterday | Hourly |
| **Last 24 hours** | The last 24 hours, rolling | Hourly |
| **Last 7 days** | Today and the 6 days before | Hourly, Daily |
| **Last 30 days** | Today and the 29 days before | Daily, Weekly |
| **Last 3 months** | From the same day 3 months ago | Weekly, Monthly |
| **Last 6 months** | From the same day 6 months ago | Weekly, Monthly |
| **Last 12 months** | Today and the 364 days before | Weekly, Monthly |
| **Week to date** | Monday this week until now | Hourly, Daily |
| **Month to date** | The 1st of this month until now | Daily, Weekly |
| **Year to date** | January 1 until now | Weekly, Monthly |
| **All time** | From the day the website was added | Weekly, Monthly |
**Last 30 days** is the default. Periods that include today run until the current moment. Weeks start on Monday.
### Shortcuts and pins
While the period menu is open, press **N** (Now), **T** (Today), **Y** (Yesterday), **D** (Last 24 hours), **W** (Last 7 days) or **3** (Last 30 days).
Click the pin icon next to a period to move it into **Pinned**, or the crossed-out pin to move it back to **More**. The default pins are Now, Today, Yesterday, Last 7 days, Last 30 days and Last 12 months. Pins are saved in your browser, so they apply to every website on this device.
### Custom range
Choose **Custom range…** to open a calendar with two months side by side (one month on phones). Click a start day, then an end day; the order doesn't matter, and a third click starts over. You can also type dates in **Start** and **End**. Future days can't be picked. **Clear** empties the selection and **Apply** sets the range. Both days are included.
A single custom day is shown hourly. Longer custom ranges can be shown **Daily**, **Weekly** or **Monthly**; hourly is offered only for a single day.
### Step through periods
The arrows on either side of the period button step the range back or forward by its own length, turning it into a custom range. For example, from **Last 7 days**, the left arrow shows the 7 days before. The right arrow is disabled when the range already ends now. Both arrows are off for **Now**.
You can also drill into a day by clicking it on a daily chart. See [The site dashboard](https://supametrics.io/docs/dashboard#the-main-chart).
## Granularity
The granularity menu (**Hourly**, **Daily**, **Weekly**, **Monthly**) sets how big each chart bucket is. It only offers the sizes that make sense for the period (see the table above), and is disabled when only one fits. It is hidden for **Now**. Weekly buckets start on Monday.
## Compare with the previous period
Click **Compare** to compare the period with the one before. The button then names the compared range, for example **vs Sep 18 – Oct 18**, and clicking it turns compare off.
- Calendar periods compare with the same stretch of the calendar just before: **Today** until 9:00 compares with yesterday until 9:00, and **Last 7 days** with the 7 days before.
- **Last 3 months**, **Last 6 months** and **Month to date** step back by whole months, and **Year to date** by a year.
- **Week to date** compares with the same weekdays of last week, up to the same time of day.
- **Now**, **Last 24 hours** and **All time** step back by their own length.
With compare on, the key figures show the previous period's value under each figure, the chart draws the previous period as a dashed line, and Details tables show the change on each row. The change against the previous period is shown on the key figures whether compare is on or off.
## Filters
Filters narrow every number on the page to the visits that match. Visitor and revenue numbers move together: a payment matches a filter when the visit it was credited to matches.
### Add a filter
There are three ways:
- Click a row on any breakdown card or Details table. Click it again to remove the filter.
- Click the filter button in the toolbar and pick a dimension. A dot on the button means filters are active, and a dot next to a dimension means it is in use.
- Click a suggestion under **Suggested filters** at the bottom of the filter menu. Suggestions are this period's top goal, top country and top page.
Picking a dimension opens **Filter by …**:
1. Choose how to match: **is**, **is not**, **contains** or **does not contain**.
2. For **is** and **is not**, pick a value from this period's values (searchable, with visitor counts). For **contains** and **does not contain**, type the text and click **Apply**, or press Enter.
### Dimensions you can filter by
| Group | Dimensions |
| --- | --- |
| Source | Channel, Referrer, Campaign, Keyword |
| URL | Hostname, Page, Entry page, Exit page, Exit link |
| Location | Country, Region, City |
| System | Browser, OS, Device |
| Visitor | Visit count |
| Custom | Goal |
A few dimensions match the visit as a whole rather than one value on it:
- **Page** keeps visits that viewed that page at least once. **Page is not** keeps visits that never viewed it.
- **Goal** keeps visits that completed that goal. Goals are matched by their current name, so renaming a goal keeps its history.
- **Exit link** keeps visits that clicked that outbound link.
- **Visit count** is the visit's number for its visitor (1 for their first visit). It takes a whole number with **at least**, **is**, **is not** or **at most**, with quick picks 1, 2, 3, 4, 5 and 10. For example, **Visit count at least 2** keeps returning visits and **Visit count is 1** keeps first visits.
Four more dimensions, **UTM source**, **UTM medium**, **UTM content** and **Ref**, don't appear in the menu. They are added when you click a row on the Campaign tab. See [Campaigns](https://supametrics.io/docs/breakdowns#campaigns).
Some visits have no value for a dimension (no region known, no campaign). That value reads **(none)**, or **Direct / None** for sources and channels, and you can filter on it like any other. **is not** and **does not contain** keep visits with no value.
### Edit and remove filters
Active filters appear as chips in a **Filtered by** row under the toolbar, for example **Country is United States**. Click a chip to edit it: the current value is shown at the top with a remove button. Click **×** on a chip to remove it, or **Clear all** to remove every filter.
All filters must match at once (they are combined with AND). A filter added from the filter menu or a suggestion replaces an existing filter with the same dimension and match type. Clicking a row on a card or table works the same way: clicking a second country replaces the first country filter, and clicking the same row again removes it. You can have up to 10 filters.
### What filters don't change
- Revenue that couldn't be credited to a visit (**Unattributed**) drops out as soon as any filter is on, since there is no visit to match.
- The **Online** figure, the [Bot traffic card](https://supametrics.io/docs/bot-tracking) and the [real-time map](https://supametrics.io/docs/realtime) ignore filters.
- [Insights](https://supametrics.io/docs/insights) has its own period selector and no filters.
## Segments
A segment is a saved set of filters with a name, so you can apply it again in one click.
To save one, add the filters you want, then click **Save as segment** in the **Filtered by** row. Name it (up to 60 characters, for example "Customers from USA"), check the filters shown, and click **Save segment**.
Saved segments appear under **Saved segments** at the top of the filter menu, with the number of filters in each. Picking a segment replaces the current filters with the segment's. Click the trash icon next to a segment to delete it.
- Segments are saved for the website and shared with everyone on it.
- A segment holds 1 to 10 filters, and a website can have up to 50 segments.
- The owner and members can save and delete segments; viewers can use them but don't see **Save as segment**.
## Notes
Notes mark what happened on a day, such as a launch, a campaign or an outage, so the chart explains itself later.
### Add a note
- Hover a day on a daily chart and click the note button above the point, or
- Click **Notes** on the chart's legend row, pick a day within the period and click **Add note…**.
Either way the day's window opens. Its title is the day, and it has three tabs:
- **Notes** lists the day's notes with the author's initials, name and when each was written (and "edited" if changed). Type in the box and click **Add note**, or press Cmd+Enter (Ctrl+Enter on Windows). A counter shows how many of the 500 characters you've used. Use the pencil to edit a note (then **Save note** or **Cancel**) and the trash icon to delete it.
- **Mentions (0)** and **Commits (0)** are coming soon. Tracking brand mentions and connecting a GitHub repository don't do anything yet.
### Show notes on chart
The **Show notes on chart** switch at the bottom of the day window turns note markers on the chart on or off for everyone on the website. Markers appear only on daily charts. The Notes button keeps listing the period's notes either way.
### Who can write notes
The owner and members can add, edit and delete notes and change **Show notes on chart**. Viewers can read notes; their day window says **You're a viewer here, so notes are read-only.**
## Share a view with its URL
The URL holds the whole view, so copying it from the address bar shares exactly what you see (the other person needs access to the website). The parameters are:
| Parameter | Meaning |
| --- | --- |
| `period` | `now`, `today`, `yesterday`, `24h`, `7d`, `30d`, `3m`, `6m`, `12m`, `wtd`, `mtd`, `ytd`, `all` or `custom` |
| `from`, `to` | First and last day of a custom range, as `YYYY-MM-DD` |
| `granularity` | `hour`, `day`, `week` or `month` |
| `compare` | `1` when compare is on |
| `filters` | The filters as JSON, a list of `{"d": dimension, "o": operator, "v": value}` |
| `goal` | On the Details Goals lens only, the goal the pages focus on |
Operators are `is`, `is_not`, `contains`, `not_contains`, and for Visit count also `gte` (at least) and `lte` (at most). An empty value `""` means "(none)". For example:
```bash
https://app.supametrics.io/dashboard?period=7d&compare=1&filters=[{"d":"country","o":"is","v":"US"},{"d":"channel","o":"is","v":"Organic Search"}]
```
Countries use two-letter codes (`US`, `DE`). A missing or unknown `period` falls back to **Last 30 days**, and a custom period without valid dates does too. Filters that can't be read are dropped.
To share a dashboard with people who don't have an account, use a public link instead. See [Share your dashboard](https://supametrics.io/docs/sharing).
---
# Sources, pages, locations and devices
> How the dashboard's Sources, Pages, Locations and Devices & tech cards work, how traffic sources and channels are classified, and how to rank by revenue.
Source: https://supametrics.io/docs/breakdowns
Four cards on the dashboard break the period down by one dimension each: **Sources**, **Pages**, **Locations** and **Devices & tech**. They follow the period and filters set in the toolbar. Each one shows the top rows and links to a full table on its Details page.
## How every card works
- **Tabs** across the top switch the dimension, for example **Channel**, **Referrer**, **Campaign** and **Keyword** on the Sources card.
- **Visitors / Revenue**: the toggle at the top right ranks the card by unique visitors or by revenue. Without Stripe connected (and no revenue in the period) it is disabled and says **Connect Stripe to sort by revenue**. See [Connect Stripe](https://supametrics.io/docs/connect-stripe).
- **Rows**: up to 10 rows (12 channels). Each row has a bar, its value and, ranked by visitors, a revenue bar that continues the visitor bar when the row earned money. Ranked by revenue, the bar and value are revenue.
- **Hover a row** for a tooltip with **Visitors** and **Revenue**, plus **Revenue/visitor** and **Conversion rate** when the row made money.
- **Click a row** to filter the whole dashboard by that value. Click it again to remove the filter. See [Filters](https://supametrics.io/docs/filters-and-date-ranges#filters).
- **Details page** at the bottom opens the full table for the tab, under the Revenue lens when the card is ranked by revenue and the Traffic lens otherwise. See [Details pages](https://supametrics.io/docs/details-pages).
Rows count unique visitors per value. One visitor can appear in several rows (two channels, several pages), so the rows can add up to more than the visitor total.
### The Unattributed row
When ranked by revenue, a last row named **Unattributed** may appear. It holds payments that have no visitor ID, so there is no visit to credit. It makes the revenue column add up to your total revenue, it shows **–** for visitors, and it can't be clicked. Any active filter removes it. See [Revenue and attribution](https://supametrics.io/docs/revenue).
### Revenue on page and goal rows
A payment is credited to its visit. On the **Page** tab, the payment counts for every page that visit viewed, and on goal rows for every goal it completed. These columns can therefore add up to more than total revenue. Other dimensions (channel, country, device…) credit each payment once.
## Sources
### Channel
The **Channel** tab shows channels as a donut with the unique visitor total in the middle (or the revenue total when ranked by revenue) and a list beside it with each channel's value and share.
Click a channel (slice or list row) to drill into its sources. The card then lists that channel's referrers, and **All channels** takes you back. While drilled in, clicking a source filters the dashboard by it.
The scope menu next to the toggle (for example **All (206)**) does the same drill-down from a menu: pick a channel to see its sources. It narrows this card only, not the dashboard.
### How channels are decided
Each visit gets one source and one channel when it starts, from its first page's referrer and link parameters. AnalyticsX checks, in order:
1. `utm_medium` is a paid medium (`cpc`, `ppc`, `cpm`, `paid`, `paid_social`, `paidsearch`, `ad`, `ads`, `display`, `retargeting`, `sponsored`): **Paid**.
2. `utm_medium` is `email`, `e-mail` or `newsletter`: **Email**.
3. The source is a known site or app (see below): that site's channel.
4. `utm_medium` is `social`, `social_media`, `social-media` or `sm`: **Organic Social**.
5. Any other referrer or tag: **Referral**.
6. Nothing at all: **Direct**.
The channels are **Direct**, **Organic Search**, **Organic Social**, **AI**, **Referral**, **Email** and **Paid**.
Known sources include:
| Channel | Sources |
| --- | --- |
| Organic Search | Google, Bing, DuckDuckGo, Yahoo, Yandex, Baidu, Ecosia, Brave Search |
| AI | ChatGPT, Claude, Perplexity, Gemini, Copilot, DeepSeek, Grok |
| Organic Social | X, YouTube, LinkedIn, Reddit, Facebook, Instagram, Threads, TikTok, Pinterest, Bluesky, Mastodon, Hacker News |
| Referral | Product Hunt, Medium, Substack, Dev.to, Indie Hackers, GitHub |
| Email | Gmail, Outlook, Newsletter |
### Referrer
The **Referrer** tab lists sources by name. A visit's source is:
- the known source matching `utm_source` or `?ref=` (or `?via=`), if any, so `?utm_source=twitter` reads **X**;
- otherwise the `utm_source` or `ref` value exactly as written, for example `launch-tweet`;
- otherwise the referring website's domain, without `www.`;
- otherwise **Direct / None**.
A tag in the link wins over the browser's referrer, which is how you label a specific post or newsletter. Navigation between your own pages, subdomains and additional domains is never counted as a referral.
**Direct / None** means the visitor arrived without a tracked source: a bookmark, a typed address, an app that hides the referrer, or private browsing. Tag the links you share to see more.
### Campaigns
The **Campaign** tab lists each tagged link as people clicked it, for example `?utm_source=newsletter&utm_medium=email&utm_campaign=autumn`. The parameters read are `utm_source`, `utm_medium`, `utm_campaign`, `utm_content`, `utm_term` and `ref` (which also holds `?via=`). Visits without any of them are left out of this tab.
To make tagged links, use the free [UTM builder](https://supametrics.io/tools/utm-builder). It shows the source and channel AnalyticsX will file a visit from the link under. Its optional campaign ID (`utm_id`) is for Google Analytics 4; AnalyticsX doesn't read it.
The scope menu (**All (…)** with **Tracking parameters** under it) narrows the tab to one parameter, such as `?utm_campaign=`, and then lists that parameter's values.
Clicking a link row filters the dashboard by each parameter in it. It also adds "(none)" filters for parameters that other links carry and this one doesn't, so `?utm_source=newsletter` doesn't also match `?utm_source=newsletter&utm_campaign=autumn`. Clicking the row again removes those filters and puts back any you had before. Those filters use the dimensions **UTM source**, **UTM medium**, **Campaign**, **UTM content**, **Keyword** and **Ref**.
With no tagged visits the tab says **No campaign links yet**. Add UTM parameters or `?ref=` to the links you share and each link shows up here.
### Keyword
Keywords from Google Search Console are coming soon: the tab shows **Keywords come from Google Search Console** with a **Soon** tag and a disabled **Connect Search Console** button. Until then it lists the `utm_term` values from your links, if any.
## Pages
| Tab | Shows |
| --- | --- |
| **Hostname** | The host each visit started on, without `www.` (useful with subdomains or several domains) |
| **Page** | Every page path viewed; a visit counts once per page it viewed |
| **Entry page** | The first page of each visit |
| **Exit link** | Links to other websites that visitors clicked |
Paths are stored without the query string, and a trailing slash is removed (`/pricing/` is `/pricing`).
On **Page** and **Entry page**, the scope menu narrows the card to one hostname. It changes this card only.
**Exit pages** (the last page of each visit) are on the Pages Details page under **Exit pages**, not on the dashboard card.
### Exit links
The **Exit link** tab lists outbound links, stored as host and path without `https://`, `www.`, query or fragment (for example `github.com/acme/repo`). Each row shows the clicks (**exits**) and the unique visitors who clicked. Click the row to filter the dashboard to visits that clicked the link, or the arrow beside it to open the link in a new tab.
Links to your own domain, its subdomains and the additional domains in **Site settings › General** are not exits. Exit links never earn revenue, so this tab has no Visitors / Revenue toggle. Clicks are not counted against your plan's event allowance.
## Locations
Locations come from the visitor's connection (their IP address is used to look up the place and is not stored). See [What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works).
| Tab | Shows |
| --- | --- |
| **Map** | A world map shaded by visitors or revenue |
| **Country** | Countries with flags |
| **Region** | States, provinces and regions |
| **City** | Cities |
On the map, a darker colour means more visitors (or more revenue when ranked by revenue). Hover a country for its figure and click it to filter by that country; click it again to remove the filter.
Region and city names repeat across countries (Paris, France and Paris, Texas), so each row's flag is the country seen most often under that name. A **(none)** row collects visits whose region or city couldn't be determined.
## Devices & tech
| Tab | Values |
| --- | --- |
| **Browser** | Chrome, Safari, Mobile Safari, Firefox, Edge, Opera, Samsung Internet, Brave, Arc, Vivaldi, Yandex, DuckDuckGo, Chrome WebView, in-app browsers (Instagram, Facebook, Twitter, LinkedIn, Threads, TikTok), and Other |
| **OS** | Windows, Mac OS, iOS, iPadOS, Android, Chrome OS, Linux, and Other |
| **Device** | Desktop, Mobile, Tablet |
Device type comes from the browser's user agent. A "desktop" browser on a screen narrower than 600 pixels counts as **Mobile**.
## Rank by revenue
With Stripe connected, switch any card to **Revenue** to see what makes money rather than what brings traffic: which channel, landing page, country or device earns the most. The card re-sorts by revenue and the **Details page** link opens the Revenue lens, which adds payments, customers, conversion rate, revenue per visitor, refunds and average order value. See [Revenue and attribution](https://supametrics.io/docs/revenue).
If nothing in the tab earned money, the card says **No revenue in this period**.
## Common questions
**Why is a visit from Google labelled Referral?** Only the hosts in the table above are recognised. A Google property not listed (for example a Google Docs link) counts as a referral from its domain.
**I tagged a link with `utm_source=Twitter`. Why does it say X?** Known names are matched case-insensitively and shown under one name, so `twitter`, `x` and `t.co` all read **X**.
**Can I change a visit's channel later?** No. Source and channel are fixed when the visit starts.
---
# Metrics glossary
> Exact definitions of every number AnalyticsX shows, from visitors and bounce rate to revenue, conversion rate and goal completions, and the time zone they use.
Source: https://supametrics.io/docs/metrics-glossary
This page defines each metric as AnalyticsX computes it. The same definitions apply on the dashboard, the Details pages, Insights, email reports, the REST API and MCP.
## Time zone and periods
- Every period, day, hour and chart bucket is in the website's time zone, set in **Site settings › General**. The toolbar shows it at the right. Daylight saving changes are handled, so each bucket is one local hour, day, week or month.
- Weeks start on Monday.
- Visit metrics (visitors, visits, pageviews, bounce rate, time) count visits that **started** in the period. A visit that starts at 23:50 and ends after midnight belongs to the day it started.
- Revenue counts payments by the time of the payment, and refunds by the time of the refund, not by when the visitor first came.
- Goal completions count by the time of the completion.
## How visitors and visits are identified
- A **visitor** is one browser. The tracking script gives each browser a random ID in a first-party cookie that lasts a year. The same person on a phone and a laptop is two visitors.
- A **visit** (also called a session) is a run of activity in one browser. It ends after 30 minutes without activity; the next pageview starts a new visit.
See [What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works) for what is and isn't stored.
## Traffic metrics
### Visitors (Unique visitors)
The number of distinct visitors with at least one visit that started in the period. A visitor with five visits counts once.
### Visits
The number of visits that started in the period. Shown on the Details Traffic lens.
### Pageviews
Pages viewed in the period's visits. In a single-page app, each route change counts as a pageview.
### Views per visit
Pageviews divided by visits.
### Bounce rate
The share of visits with at most one pageview: bounced visits divided by visits. A goal completion or an outbound click doesn't stop a one-page visit counting as a bounce. Lower is better, so a falling bounce rate shows in green.
### Session time (Avg. visit duration)
The average length of a visit: the time from the visit's first pageview to its last tracked activity (a pageview or a goal completion), averaged over all visits. A one-page visit counts as 0 seconds, which pulls the average down. Time spent reading the last page of a visit is not measured.
### New and returning visitors
Shown when you click **Visitors** twice on the dashboard. In each chart bucket, a visitor is **returning** if their first visit ever started in an earlier bucket, and **new** otherwise. The first visit is looked up across all time, before filters. **Returning rate** is returning visitors divided by visitors in the bucket.
On the **Now** chart, a visitor is returning if they had any earlier visit, and counts as returning for the whole 30 minutes.
### Pages / visitor
In chart tooltips: pageviews divided by visitors in that bucket.
### Online
Distinct visitors whose visit had activity in the last 5 minutes. It ignores the period and filters. The real-time map uses the same 5-minute rule.
### Exits
On the Exit link tab: the number of clicks on an outbound link. Visitors on the same row are the distinct visitors who clicked it.
## Revenue metrics
Revenue comes from Stripe. See [Connect Stripe](https://supametrics.io/docs/connect-stripe) and [Revenue and attribution](https://supametrics.io/docs/revenue).
### What counts as revenue
- Payments in the website's currency. Payments in other currencies are stored and listed on the Revenue screen, but not added to these numbers.
- Stripe test-mode payments count only until the website receives its first live payment, so a test checkout shows up during setup. After that they drop out of every number.
- Renewals count unless you turn off **Include renewal revenue** in **Site settings › Revenue**.
- Products you excluded in **Site settings › Revenue** don't count.
- When **Subtract refunds from revenue** is on, refunds are taken off on the day they were issued.
Amounts are shown in the website's currency.
### Revenue
New revenue plus renewal revenue, minus refunds (when you subtract them). This is the **Revenue** key figure and the total on the Revenue lens.
### New revenue and Renewals
**New** is revenue from one-time payments and the first paid invoice of each subscription. **Renewal** is revenue from a subscription's later invoices. On the dashboard chart they are the two colours of the revenue bars.
### Refunds
The amount refunded in the period, by refund date. Zero when you don't subtract refunds.
### Attributed and Unattributed revenue
Each payment is credited to the visit that led to it. **Attributed** revenue has a visit; **Unattributed** revenue has no visitor ID, so no visit to credit. Breakdowns show attributed revenue and add an **Unattributed** row so the column adds up to the total. Any filter removes unattributed revenue, since it can't match a visit.
### Payments
The number of payments in the period, not counting refunds.
### Customers (paying visitors)
The number of distinct visitors with at least one payment in the period.
### Conversion rate
Paying visitors divided by visitors, for the same period and filters. On the dashboard key figures and the Revenue lens this is a payment conversion rate. Goals have their own conversion rate (below).
### Revenue/visitor
Revenue divided by visitors.
### Avg. order value
Revenue divided by payments.
## Goal metrics
See [Goals](https://supametrics.io/docs/goals).
### Completions
The number of times goals were completed in the period. Only goals that still exist count; turned-off goals keep their past completions.
### Converting visitors (Unique conv.)
The number of distinct visitors who completed at least one goal (or the chosen goal) in the period.
### Goal conversion rate
Converting visitors divided by visitors. On the Goals card, the percentage next to each goal is that goal's converting visitors divided by visitors.
## Changes and comparisons
- The change under a figure is `(current − previous) ÷ previous`, shown as a percentage. It reads **–** when the previous period is zero.
- Green means better and red means worse. For bounce rate and refunds, a drop is better.
- What the previous period is depends on the period you picked. See [Compare with the previous period](https://supametrics.io/docs/filters-and-date-ranges#compare-with-the-previous-period).
## Breakdown rows
On cards and Details tables, each row's figures are computed over the visits with that value:
- **Visitors** on a row are the distinct visitors among those visits. One visitor can appear in several rows, so rows can add up to more than the total.
- **Page** rows count a visit once for each page it viewed. **Goal** rows count a visit once for each goal it completed.
- **Revenue** on a row is the revenue of payments credited to those visits. Page and goal rows credit a payment to every page or goal in its visit, so they can add up to more than total revenue.
- **Conversion rate** on a row is that row's paying visitors divided by its visitors.
## Real-time estimates
The real-time map shows two estimates, clearly labelled as such:
- **Buying signal**: **Hot** has paid before, **Warm** completed a goal in this visit, **Mild** viewed a pricing, plans, checkout, billing, upgrade, subscribe, cart, buy or purchase page in this visit, and **Cold** is browsing.
- **Estimated value**: your revenue per visitor over the last 30 days times a weight for the buying signal (Cold 0.5, Mild 1.5, Warm 3, Hot 5). The map's **est. value** is the sum for everyone online.
See [Real-time and the live map](https://supametrics.io/docs/realtime).
## Why numbers can differ between screens
- Different periods: Insights has its own period selector, and the Visitors screen offers only 7 or 30 days.
- Filters: the Online figure, the real-time map and the Bot traffic card ignore dashboard filters.
- Bots: crawler hits from the Bot traffic card never count as visitors, visits or pageviews.
- Excluded traffic (**Site settings › Exclusions**) is never stored, so it isn't in any number. See [Exclusions](https://supametrics.io/docs/exclusions).
---
# Insights
> The Insights screen explains what makes your website money, covering who buys, how many visits and days it takes, where buyers come from and when they convert.
Source: https://supametrics.io/docs/insights
Insights answers one question: what makes this site money. It reads your traffic together with your Stripe revenue and shows who buys, how they buy, where buyers come from and when they convert.
Open it from **Insights** in the left rail, press **I** anywhere in the app (when you're not typing), or go to `/insights`. The header reads **Insights · your-domain** and **What makes this site money**. Close it with **Close** or the Esc key, which takes you back to where you came from (the dashboard if you opened Insights directly).
Most sections need revenue. Connect Stripe first if you haven't. See [Connect Stripe](https://supametrics.io/docs/connect-stripe).
## Period
Pick **24 hours**, **7 days** or **30 days** at the top right. **30 days** is the default. Every section uses that period, and changes compare with the period just before it, the same way the dashboard's compare does.
Insights has no filters and doesn't follow the dashboard's period. The period you pick here isn't saved in the URL.
## Overview
Your headline numbers for the period:
| Figure | Meaning |
| --- | --- |
| **Revenue per visitor** | Revenue divided by unique visitors |
| **Conversion rate** | Paying visitors divided by visitors |
| **Avg. daily visitors** | Unique visitors divided by the number of days in the period |
| **Avg. daily revenue** | Revenue divided by the number of days in the period |
Each figure shows its change **vs previous period**. Definitions are in the [Metrics glossary](https://supametrics.io/docs/metrics-glossary).
**Revenue per visitor trend** charts revenue per visitor by week for 30 days, by day for 7 days, and by hour for 24 hours.
**Net revenue** splits the period's revenue into **New**, **Renewal** and **Refunds**, with **Net revenue** at the bottom (New + Renewal − Refunds). A note under it says whether revenue is net of refunds, which you set with **Subtract refunds from revenue** in **Site settings › Revenue**.
## Who buys
**Share of attributed revenue by device, operating system and browser.** Three panels, **Device**, **Operating system** and **Browser**, each lead with a sentence such as "62% of revenue from Mobile users", then a split bar and up to five values with their revenue and share. Shares are of attributed revenue only (revenue credited to a visit). A panel says **No attributed revenue yet** when there's nothing to split.
## How they buy
**How many visits and days it takes to become a customer.** This looks at each buyer's first payment in the period:
- **First-visit buyers**: the share of buyers who paid during their first visit.
- **Median time to purchase**: the median number of days from the buyer's first visit to that payment. Under a day shows as **<1**.
- **Visits to purchase**: how many buyers needed 1, 2, … 9, or 10+ visits, counting the visit they paid in.
- **Days to purchase**: buyers grouped into **Same day**, **1–3 days**, **4–7 days**, **1–2 weeks**, **2–4 weeks** and **1 month+**.
Only payments credited to a visitor count. With no buyers in the period, the section says **No buyers in this period**.
## Where buyers come from
**Top countries and referrers by revenue and by conversion rate.** Four ranked lists of up to four rows each:
- **Top revenue countries** and **Top revenue referrers**: by attributed revenue.
- **Top conversion countries** and **Top conversion referrers**: by conversion rate (paying visitors divided by visitors). Only countries and referrers with at least 5 visitors and at least one paying visitor are ranked, so a single lucky visit doesn't top the list.
A list says **Not enough data yet** when nothing qualifies. Referrers are the same sources as on the dashboard's Referrer tab. See [Sources, pages, locations and devices](https://supametrics.io/docs/breakdowns#referrer).
## When they buy
**Conversions by weekday and time of day, and the events that convert best.**
The **Conversion heatmap** has a row of days (Mon to Sun) and six 4-hour blocks (12am, 4am, 8am, 12pm, 4pm, 8pm), in the website's time zone. Darker cells had more conversions; the legend runs from **Fewer** to **More**. It counts payments when the period has any, and goal completions otherwise; its title says which (**Conversion heatmap · payments** or **· goal completions**). Hover a cell, or move through cells with the arrow keys, to read it (for example "Thursday, 4am – 8am (3 payments)"). With nothing hovered, the line under it names the peak cell.
**Top converting events** lists up to five goals with completions in the period, ranked by the share of visitors who completed them, with a bar for each. With no completed goals it says **No custom events configured**. **Manage goals →** opens the Goals screen. See [Goals](https://supametrics.io/docs/goals).
## The footnote
The line at the bottom states the period and how much of the revenue is attributed, for example "Based on the last 30 days · revenue = attributed revenue ($4,200.00 of $4,500.00)". The difference is revenue with no visit to credit. See [Revenue and attribution](https://supametrics.io/docs/revenue).
## Public Insights
If the website has a public dashboard, Insights can be shared read-only through that link. The public version has no **Manage goals** link. See [Share your dashboard](https://supametrics.io/docs/sharing).
## Common questions
**Why is Insights empty when the dashboard has visitors?** Most sections are built from revenue. Without payments in the period, Who buys, How they buy and Where buyers come from have nothing to show. The heatmap falls back to goal completions.
**Why don't the numbers match the dashboard?** Insights has its own period selector and ignores dashboard filters. Its **24 hours**, **7 days** and **30 days** cover the same time as the dashboard's **Last 24 hours**, **Last 7 days** and **Last 30 days**, so with the same period and no filters the visitor and revenue totals agree.
**Who can open Insights?** Everyone on the website: the owner, members and viewers.
---
# Details pages
> The Details pages give a full table for every breakdown under three lenses (Traffic, Goals and Revenue), with highlights, a row inspector and CSV export.
Source: https://supametrics.io/docs/details-pages
The Details pages are the full-size version of the dashboard cards. Where a card shows the top 10 rows, a Details page shows every row (up to 500) with all the figures for one lens, sortable columns, highlights, a side panel per row and a CSV export.
Open them from **Details** in the left rail (or press **D**), from the **Details page** link at the bottom of any dashboard card, or by URL. Under **Details** in the rail are three shortcuts: **Traffic**, **Goals** and **Revenue**.
## The URL
Every Details page has an address of the form `/details/{lens}/{page}/{tab}`, for example `/details/revenue/sources/referrer`. The period, compare and filters follow in the query string, as on the dashboard. See [Share a view with its URL](https://supametrics.io/docs/filters-and-date-ranges#share-a-view-with-its-url).
An unknown lens or page takes you to the lens's overview, and an unknown tab to the page's first tab.
## Lenses
The lens decides which figures you see. Switch it with the **Traffic** / **Goals** / **Revenue** buttons in the header; the page and tab stay the same.
| Lens | Main measure | Columns |
| --- | --- | --- |
| **Traffic** | Visitors | Visitors, Visits, Pageviews, Views / visit, Bounce rate, Avg. duration |
| **Goals** | Completions | Completions, Converting visitors, Visitors, Conversion rate |
| **Revenue** | Revenue | Revenue, Payments, Customers, Visitors, Conversion rate, Revenue / visitor, Refunds, Avg. order |
On the Goals lens, conversion rate is converting visitors divided by visitors. On the Revenue lens it is paying visitors divided by visitors. All figures are defined in the [Metrics glossary](https://supametrics.io/docs/metrics-glossary).
## Pages and tabs
| Page | URL slug | Tabs (slug) |
| --- | --- | --- |
| **Overview** | `overview` | none |
| **Pages** | `pages` | All pages (`page`), Entry pages (`entry`), Exit pages (`exit`), Exit links (`exit-link`), Hostnames (`hostname`) |
| **Sources** | `sources` | Channels (`channel`), Referrers (`referrer`), Campaigns (`campaign`), Keywords (`keyword`) |
| **Locations** | `locations` | Countries (`country`), Regions (`region`), Cities (`city`) |
| **Devices & tech** | `devices` | Devices (`device`), Browsers (`browser`), Operating systems (`os`) |
| **Goal conversions** | `conversions` | Goals lens only |
| **User journeys** | `journeys` | none |
**Exit links** is offered under Traffic and Goals only, since clicking a link to another website never earns revenue. **Goal conversions** exists only under the Goals lens.
Each page's title depends on the lens, for example **Sources**, **Sources that convert** or **Revenue by source**. A breadcrumb above it (**Dashboard / Details / Traffic / Sources**) takes you back up.
What each dimension means (channels, referrers, campaigns, exit links, locations, devices) is explained in [Sources, pages, locations and devices](https://supametrics.io/docs/breakdowns). **Exit pages** is the last page viewed in each visit.
## The header and toolbar
- **Lens** buttons switch between Traffic, Goals and Revenue.
- **Export** downloads what the page shows as a CSV file (see below).
- Under the title, one line describes the page.
- The report toolbar (period, compare, granularity, filters, refresh) works exactly as on the dashboard. See [Date ranges, filters, segments and notes](https://supametrics.io/docs/filters-and-date-ranges). Saved segments aren't listed in the Details filter menu; apply them on the dashboard and open Details from there to keep them.
### Goal focus (Goals lens)
The Goals lens adds a **Goal** selector, which reads **All goals** until you pick one. Pick a goal to focus every Goals page on it: the figures, chart, cards and tables then count only that goal's completions. Choose **All goals** to go back. The focus is kept in the URL as `?goal=` and is dropped when you switch to another lens.
## Key figures
Under the toolbar is a row of key figures for the lens, each with its change against the previous period:
- **Traffic**: Unique visitors, Visits, Pageviews, Views per visit, Bounce rate, Avg. visit duration.
- **Goals**: Completions, Converting visitors, Conversion rate, Visitors.
- **Revenue**: Revenue, New revenue, Renewals, Refunds, Customers, Conversion rate, Revenue / visitor, Avg. order value.
On **Overview**, clicking a figure puts it on the chart. On a table page, clicking a figure sorts the table by that column (figures with no matching column can't be clicked).
## Overview
Each lens's Overview has the chart of the selected figure, then summary cards:
- **Sources** (by channel), **Pages**, **Locations** (a world map; deeper colour means more) and **Devices & tech** (a device split bar and the top browsers). Each card has a link to its own Details page.
- Under the Goals lens, **Goal conversions**: completions per goal.
- **User journeys** (Traffic), **Goal journeys** (Goals) or **Revenue journeys** (Revenue): the top four paths, with a link to the full journeys page.
Under the Traffic lens the chart for **Unique visitors** is the dashboard's main chart, and under Revenue the **Revenue** chart keeps its new and renewal bars. Other figures draw a single line.
## Table pages
A table page has these parts, top to bottom:
### Highlights
Up to three cards above the table, each opening that row's side panel:
- **Top by …** the lens's main measure.
- **Rising fastest**: the row that grew most against the previous period (with at least 3 of the main measure).
- A lens highlight: **Highest bounce rate** or **Longest visits** (Traffic), **Best conversion rate**, **Most visitors, no conversions** or **Most converting visitors** (Goals), **Highest revenue per visitor** or **Most customers** (Revenue).
Rate highlights only consider rows with enough visitors to mean something (at least 3, and at least 4% of the top row's visitors). Under Revenue, with no revenue in the period, a note says **No revenue in this period** instead.
On the **Countries** tab, a **World map** sits above the highlights. Deeper colour means more of the main measure; click a country to filter by it.
### Tabs, search and sorting
- Tabs show how many rows each has, for example **All pages 21** (**500+** when there are more than the table loads).
- **Search** narrows the rows by name, with a count next to it.
- Click a column header to sort by it; click again to reverse. **Sorted by …** at the right says which column is in use.
- The main measure's column has a share bar under each name. With **Compare** on, the Traffic and Revenue lenses show its change on every row.
- The table shows 12 rows at first. **Load 12 more** adds more and **Show all** shows the rest. The footer reads **Showing X of Y**.
Under the Revenue lens, the **Unattributed** row stays last whatever the sort, so the revenue column adds up to the total. It can't be opened or filtered.
### Filter and inspect a row
- The filter icon at the end of a row filters the report by that value; click it again to remove the filter.
- Click the row (or its name) to open the side panel.
The side panel shows:
- The row's name and dimension, for example **Referrer** and **Google**.
- A **trend** sparkline of the lens's measure (visitors, completions or revenue) over the period, for this value only.
- All of the lens's figures for the row.
- **Top pages for this …** (or **Top sources** on page and hostname tabs): the report filtered to this value.
- **Filter by this** adds the filter on the Details page; **Open on dashboard** opens the dashboard with your filters plus this one. The dashboard opens on its default period.
## Goal conversions
Under the Goals lens, **Goal conversions** lists every goal of the website, including goals with no completions in the period, with **Completions**, **Unique conv.**, **Conv. rate**, **Revenue**, **Δ** (completions against the previous period, **–** when the previous period had none), a **Last 30 days** sparkline and its **Share** of all completions. Click a row to focus the Goals lens on that goal; click it again to go back to all goals. When an event goal has never fired, the page shows the code it is waiting for. See [Goals](https://supametrics.io/docs/goals).
## User journeys
**User journeys** lists the real paths visitors take: their source, the pages they viewed in order, and how the visit ended (a goal or leaving the site). Under Traffic they are ranked by visitors, under Goals by completions and under Revenue by revenue. Pick a journey to see it as a flow with drop-off between steps. Journeys are covered in [Journeys and funnels](https://supametrics.io/docs/journeys-and-funnels).
## Export
**Export** downloads a CSV file named after the website, lens, page and tab, for example `example.com-revenue-sources-referrer.csv`.
- On a table page it contains every row that matches your search (not just the rows on screen), in the current sort.
- On Overview it has one row per chart bucket and one column per key figure.
- Numbers are written raw so spreadsheets read them as numbers: money in major units (12.5, not $12.50), rates as percent (12.5 for 12.5%), durations in seconds. The unit is in the column header, for example **Revenue (USD)**, **Bounce rate (%)** or **Avg. duration (s)**.
- Text that a spreadsheet would run as a formula (starting with `=`, `+`, `-` or `@`) gets a leading apostrophe.
For scheduled or automated exports, use the [REST API](https://supametrics.io/docs/rest-api).
---
# Real-time and the live map
> The real-time map shows who is on your website right now on a 3D globe or flat map, with live events, an 8-hour replay, buying signals and a shareable public link.
Source: https://supametrics.io/docs/realtime
The real-time map shows everyone on your website right now as dots on a globe, with a feed of what they are doing. It fills the whole window.
Open it from **Real-time map** in the left rail, press **M** anywhere in the app (when you're not typing), click **Watch on the globe →** under the **Online** figure on the dashboard, or go to `/realtime`. Close it with **Close** or Esc, which takes you back to the dashboard. On a phone, use the **Close** button in the top-right corner.
For a live view inside the dashboard itself, pick the **Now** period instead: it charts visitors per minute over the last 30 minutes. See [The Now period](https://supametrics.io/docs/dashboard#the-now-period).
## Who is online
A visitor is online when their visit had activity (a pageview or a goal) in the last 5 minutes. Each online visitor is a dot placed near the centre of their country, spread a little so visitors from one country don't stack. Only the country is used for placement, so a dot doesn't show the visitor's exact location.
The map asks for fresh data every 12 seconds. New visitors appear on the next update. If an update fails, **Reconnecting… showing the last update.** appears until the connection is back.
The map shows up to 500 online visitors at once. It ignores the dashboard's period and filters.
With nobody online, the map says **No one on the site right now**.
## The left panel
The panel at the top left (**Live overview**) holds:
- **N visitors online**, your domain, and **live** or **replay**.
- **est. value**: the estimated value of everyone online (see [Buying signals and estimated value](#buying-signals-and-estimated-value)). It shows only when the website had revenue in the last 30 days. The info button explains it.
- **3D** / **2D**: a globe or a flat map.
- **Map style**: **Dark**, **Light**, **Outdoors** or **Satellite**. Your choice is remembered on this device.
- On the globe, the left and right arrows rotate it west and east, and you can drag it with the mouse or a finger.
- **Auto-pan** (globe only) turns the globe slowly and eases over to each new visitor as they arrive. Rotating by hand stops it.
- **Replay** (see below).
- **Countries**, **Referrers** and **Devices**: the top six of each among the people online, with counts. Click one to show only those visitors on the map; click it again to show everyone. Choices in different lists combine.
- **Buying signal (estimate)**: the legend from **Cold** to **Hot**.
In fullscreen the panel keeps only the visitor count and the map controls.
## Visitor details
Click a dot to open its card:
| Row | Meaning |
| --- | --- |
| Name | The name your site sent with identify, or a made-up nickname such as "jade marmot" that stays the same for that visitor |
| **Location** | City, region and country when known |
| **Current URL** | The last page they viewed |
| **Session time** | How long this visit has lasted |
| **Total visits** | Their visits to your site, all time |
| **Conversion likelihood** | How their buying signal compares with your average visitor, for example **3× avg** |
| **Source** | Where this visit came from |
| **Buying signal** | Cold, Mild, Warm or Hot, with the reason |
| **Paid so far** | What they've paid, all time (when they have) |
| **Estimated value** | Revenue per visitor times their signal's weight (when the site has revenue) |
Close the card with its **×** or Esc. To attach real names and emails to visitors, see [Tracker JavaScript API](https://supametrics.io/docs/tracker-javascript-api).
## Live events
The **Live events** panel on the right lists the last 30 minutes, newest first, up to 40 events:
- *name* **arrived from** *source* (a new visit from anywhere but Direct)
- *name* **viewed** *page*
- *name* **completed** *goal*
- *name* **paid** *amount* (with "renewal" for subscription renewals)
Each line has the visitor's avatar, ringed in the event's colour, and how long ago it happened (**now**, **3m**, **1h**). Before anything happens it reads **Waiting for the next visitor…**.
## Replay
**Replay** plays back the last 8 hours in 15-minute steps, then returns to live. Drag the slider to jump to a moment; the label under it reads, for example, **2 h 15 min ago**, or **Live now** at the end. **Pause** stops playback.
During replay the map shows how many visitors were active in each step by country, the count at the top shows that step's visitors, and the Referrers and Devices lists, visitor cards and estimated value are hidden.
## Buying signals and estimated value
Every online visitor gets a buying signal from what they actually did. It is an estimate, not a prediction model:
| Signal | When | Weight |
| --- | --- | --- |
| **Hot** | Has paid before | 5× |
| **Warm** | Completed a goal in this visit | 3× |
| **Mild** | Viewed a pricing or checkout-like page in this visit (a path segment named pricing, plan, plans, checkout, billing, upgrade, subscribe, cart, buy or purchase) | 1.5× |
| **Cold** | Just browsing | 0.5× |
Dots are coloured by signal, and Warm and Hot dots are drawn larger.
A visitor's **Estimated value** is your revenue per visitor over the last 30 days times their signal's weight. The panel's **est. value** adds these up for everyone online. Without revenue in the last 30 days, no values are shown.
## Toolbar buttons
At the top right:
- **Radio** plays ambient music generated on your device, with four stations: Lo-fi beats, Deep space, Jazz lounge and Warehouse. The player has previous and next station, play/pause (Space also works while it's open), mute, a playlist and volume. The button doesn't appear in browsers that can't play it.
- **Fullscreen** (or F) hides the filters, replay and buttons for a clean map. **Exit fullscreen**, F or Esc bring them back.
- **Change avatar style**: **Initials**, **Shapes**, **Rings**, **Pixel** or **Bauhaus**, for the avatars on the map and in the feed. Remembered on this device.
- **Share** opens **Share the live map** (see below).
- **Subscription metrics** (or S) opens your subscription figures. See [Subscription metrics](https://supametrics.io/docs/subscription-metrics).
- **Close** (or Esc) returns to the dashboard.
## Share the live map
**Share** gives you a public, read-only link to the live map, for a screen in the office or a launch-day stream. The live map is part of the website's public dashboard, so it shares that switch:
- The owner sees **Anyone with the link can view**. Turning it on asks **Make the live map public?** and turns on the public dashboard for the whole website. Turning it off asks **Turn off the public dashboard?**; the dashboard link stops working too, and turning it back on makes a new link.
- Once it's on, the link appears with a **Copy** button. Members see the link but can't change the switch. Viewers don't see the **Share** button.
- How long the link stays public is set in **Site settings › General**.
People with the link see the live globe and counts, marked **Read-only**, with a **Dashboard** button to the public dashboard. Names, emails, revenue, estimated values, subscription metrics and the avatar picker are left out, and visitors get made-up nicknames.
More about public links in [Share your dashboard](https://supametrics.io/docs/sharing).
## Keyboard shortcuts
| Key | Action |
| --- | --- |
| Esc | Close a visitor card, then leave fullscreen, then close the map |
| F | Fullscreen on or off |
| S | Open subscription metrics |
| Space | Play or pause the radio (while the player is open) |
## If the map doesn't load
If the map can't be drawn you'll see **Map visualization unavailable**. This is usually a network problem and your analytics aren't affected. Use **Try again**, or **Back to dashboard**.
---
# Visitors and visitor profiles
> Find individual visitors, see where they came from, which goals they completed and what they paid, read their activity timeline, and erase a person on request.
Source: https://supametrics.io/docs/visitors
AnalyticsX keeps a profile for each visitor: where they came from, what they browse on, the goals they completed and what they paid. There are two places to look people up:
- The **Visitors** screen at `/visitors`: a searchable list with a details panel and **Erase a person**.
- The **User** tab on the dashboard's Goals card: the same visitors for the dashboard's period and filters, each opening a full profile with an activity timeline.
A visitor is one browser, identified by a random ID in a first-party cookie. See [What AnalyticsX collects](https://supametrics.io/docs/how-tracking-works).
## Anonymous and identified visitors
By default visitors are anonymous. Lists show them as **Anonymous visitor** (Visitors screen) or with a made-up nickname such as "cobalt heron" that stays the same for that visitor (User tab), so you can recognise someone without knowing who they are.
When your site calls `identify` after a sign-up or login, AnalyticsX attaches your own user ID, email and name to the visitor:
```js
window.analyticsx?.('identify', {
id: 'user_123',
email: 'ada@example.com',
name: 'Ada Lovelace',
});
```
The name (or email, or user ID) then replaces the anonymous label everywhere, and the person can be found by email or user ID. Details are in [Tracker JavaScript API](https://supametrics.io/docs/tracker-javascript-api).
## The Visitors screen
Click **Visitors** in the left rail, or go to `https://app.supametrics.io/visitors`. It lists **Everyone seen on your-domain, most recent first**.
### Controls
- **Last 7 days** / **Last 30 days**: the period. 30 days is the default. Only visitors with a visit in the period are listed.
- **Search by visitor ID, email or name**: matches the start of a visitor ID, or a user ID exactly, or part of an email or name. Results update as you type.
- **Paying visitors only**: lists only visitors with a payment (the heading changes to **Paying visitors**).
- **Erase a person**: see [Erase a person](#erase-a-person).
The period, search, switch and page are kept in the URL (`?period=7d&converted=1&q=…&page=…`).
### The list
| Column | Shows |
| --- | --- |
| **Visitor** | Name, email or user ID if identified, else **Anonymous visitor**, with the first 8 characters of the visitor ID |
| **Source** | The most recent referral that brought them (a later direct visit doesn't hide it), or **Direct/None** |
| **Country, device** | From their latest visit |
| **Goals** | Goals they have completed (two shown, then **+N**) |
| **First seen** | The date of their first visit |
| **Last seen** | How long ago they were last active |
| **Paid** | What they've paid, all time, in the website's currency |
The list shows 50 visitors per page. Use **Newer** and **Older** to move between pages. On phones the rows are stacked, and tapping the short visitor ID copies the full one.
### The details panel
Click a visitor to show them in the panel on the right (on wide screens). It shows their name and email, a **Paying** badge if they paid, the full visitor ID with a copy button, **Paid**, the number of **Goals** and **Source**, their **Country, device**, **First seen** and **Last seen**, the goals they completed, and **Erase this person**.
Copying the visitor ID is useful for finding the same person in Stripe metadata or support tools.
## The User tab on the dashboard
On the dashboard, the Goals card's **User** tab lists visitors for the dashboard's current period and filters, most recently active first. Search with **Search visitors**.
| Column | Shows |
| --- | --- |
| **Visitor** | Name, email or nickname, a **Customer** badge if they paid, and their country, device, OS and browser |
| **Source** | Their most recent referral |
| **Spent** | What they've paid, all time |
| **Last seen** | For example "Today at 4:31 PM", with seven dots for the last seven days (filled on days with a visit) |
**Load more** adds the next 50. Click a visitor to open their profile.
## Visitor profiles
A profile opens as a panel from the bottom of the screen.
### Profile
On the left:
- Initials, the name (identified name, email or nickname), a **Customer** badge if they have payments, and their email.
- Country and city, device (with screen size, for example 1440×900), OS and browser, from their latest visit.
- A table of parameters: `visitor_id`, `user_id` (if identified), `visits` (all time), `spent` and `first_seen`.
- For anonymous visitors, **+ Add parameters** shows the `identify` call to attach your own user ID, email and name. They appear on the visitor's next event.
### Activity timeline
On the right, everything the visitor did, grouped by day:
- **Found the site via** *source*, at the start of each visit
- **Viewed page** *path*, with "(3) times" when they viewed it several times in a row
- **Goal** *name*
- **Left via** *link* (an outbound link click)
- **Paid**, **Renewed** or **Refunded** *amount*, highlighted
Use **Newest first** / **Oldest first** to flip the order, and **Copy** to copy the timeline as text. The timeline loads 100 events at a time; **Show next 100 events** loads more.
If the visitor's data has been erased or has expired, the profile says **This visitor's data is gone (erased or expired).**
## Erase a person
Use this to answer a deletion request (for example under GDPR). Only the website's owner can erase.
1. On the Visitors screen, click **Erase a person**, or **Erase this person** in the details panel (which fills in their email or visitor ID).
2. Enter an **Email, user ID or visitor ID**. Matching is exact. Email and user ID only work for visitors your site identified.
3. Click **Find**. AnalyticsX says how many visitor IDs (and payments) match, or **Nobody matches that.**
4. Click **Erase** to delete. This can't be undone.
Erasing deletes the person's visits, pageviews, goal completions and identity, across all time, for every visitor ID that matches (one person can have a visitor ID per browser, linked by `identify`). Their payments stay in your revenue, since they are your financial records, but lose the link to the person; the payment's source and campaign are kept.
More about data retention and deleting data in [Privacy and deleting data](https://supametrics.io/docs/privacy-and-data).
## Who can see visitors
The owner, members and viewers can all see the Visitors screen and profiles. Only the owner can erase a person, so members and viewers don't see **Erase a person** or **Erase this person**. See [Team members and roles](https://supametrics.io/docs/team-and-roles).
## Common questions
**Why does the same person appear twice?** Each browser has its own visitor ID. Call `identify` on login so the person can be found by email or user ID across browsers; they are still listed once per browser.
**Why is a paying customer anonymous?** The payment was linked to the visitor, but your site never called `identify` for them. The visitor ID is still shown, so you can match it with Stripe.
**Why doesn't the Visitors screen follow my dashboard filters?** It has its own period (7 or 30 days) and no filters. Use the Goals card's **User** tab for the dashboard's period and filters.
---
# Bots and AI crawlers
> See when AI assistants, search engines and model-training crawlers request your pages, by forwarding crawler requests from your server to AnalyticsX.
Source: https://supametrics.io/docs/bot-tracking
See when AI assistants (ChatGPT, Claude, Perplexity), search engines (Googlebot, Bingbot) and model-training crawlers (GPTBot, ClaudeBot, CCBot) request your pages.
Crawlers fetch raw HTML and never run JavaScript, so the tracking script can't see them. Your server has to forward their requests to AnalyticsX. The dashboard's **Bot traffic** card then shows them, kept apart from your human analytics: bot hits never count as visitors, visits or pageviews.
## Crawler categories
| Tab | Means | Examples |
| --- | --- | --- |
| **AI answers** | An assistant opened your page because someone asked it a question | ChatGPT-User, Claude-User, Perplexity-User, Gemini-Deep-Research, MistralAI-User, DuckAssistBot |
| **Indexing** | Search and answer-engine indexes | Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot, Amazonbot, DuckDuckBot, YandexBot, Baiduspider |
| **Training** | Collecting public pages for model training | GPTBot, ClaudeBot, CCBot, Bytespider, Google-Extended, Applebot-Extended, Meta-ExternalAgent |
| **Other** | SEO tools, link previews and other known crawlers | AhrefsBot, SemrushBot, facebookexternalhit, BingPreview, GoogleOther |
The **Other** tab appears only when such crawlers show up. Requests from anything that isn't a known crawler are dropped.
## Set it up
On the dashboard, the Bot traffic card shows **No bot traffic detected yet** until the first hit arrives. Click **Set up bot tracking** to open the setup dialog. It shows your **Ingest URL** and a ready-made snippet for **Node / Express**, **Next.js**, **Cloudflare Worker** and **curl**, with your URL already filled in. The same snippets are below.
Each snippet skips ordinary visitors with a coarse pattern before sending anything, sends the crawler's request after your page has been served, and ignores failures, so it never slows your site down.
## The API
```bash
POST https://app.supametrics.io/api/bots/
Content-Type: application/json
{ "userAgent": "...", "href": "https://yoursite.com/pricing", "statusCode": 200 }
```
- The public id is the same one as in your tracking snippet (`data-site="…"`). The **Set up bot tracking** dialog shows the full URL.
- Send one hit, or an array of up to 50. The body can be at most 16 KB.
- `statusCode` is optional (100–599). `ip` is optional: the crawler's IP, used only to verify it and never stored.
- AnalyticsX classifies the user agent. Anything that isn't a known crawler is dropped, and so is any `href` that isn't on your website's domain, a subdomain or one of its additional domains (any host when **Allow all domains** is on). Only the path is stored, without the query string.
- Responses: `202 {accepted, ignored, rejected}`, `400` for a malformed body, `401` for a missing or wrong bot token (see [Request authentication](#request-authentication)), `403` when a single hit's URL is on another domain (in a batch it's counted as rejected), `404` for an unknown site, `413` over 16 KB, `429` when rate limited.
`ignored` counts hits that aren't known crawlers, crawlers you switched off, unverified hits while **Verified crawlers only** is on, and hits over your plan's bot allowance. `rejected` counts URLs that aren't on your website.
Never wait for the response: send it after your page is served and ignore failures.
### Bot allowance
Bot requests don't count against your plan's event limit. They have their own allowance per billing cycle, shared by all your websites, and an add-on adds more. Hits over the allowance are answered `202` and counted as ignored, not stored. See [Plans, billing and event limits](https://supametrics.io/docs/billing).
## Node / Express
```js
// Forward crawler requests to AnalyticsX after the response is sent.
const AX_BOTS = 'https://app.supametrics.io/api/bots/';
const CRAWLER = /bot|crawl|spider|preview|chatgpt|claude|anthropic|perplexity|gemini|google-|googleother|meta-external|facebookexternalhit|mistralai|cohere/i;
app.use((req, res, next) => {
const ua = req.get('user-agent') || '';
if (CRAWLER.test(ua)) {
res.on('finish', () => {
fetch(AX_BOTS, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
userAgent: ua,
href: `${req.protocol}://${req.get('host')}${req.originalUrl}`,
statusCode: res.statusCode,
ip: req.ip, // lets AnalyticsX verify the crawler; never stored
}),
signal: AbortSignal.timeout(2000),
}).catch(() => {});
});
}
next();
});
```
Behind a proxy, set `app.set('trust proxy', true)` so `req.protocol` is `https` and `req.ip` is the crawler's address.
## Next.js (middleware.ts)
```ts
import { NextResponse, type NextFetchEvent, type NextRequest } from 'next/server';
const AX_BOTS = 'https://app.supametrics.io/api/bots/';
const CRAWLER = /bot|crawl|spider|preview|chatgpt|claude|anthropic|perplexity|gemini|google-|googleother|meta-external|facebookexternalhit|mistralai|cohere/i;
export function middleware(req: NextRequest, event: NextFetchEvent) {
const ua = req.headers.get('user-agent') ?? '';
if (CRAWLER.test(ua)) {
event.waitUntil(
fetch(AX_BOTS, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ userAgent: ua, href: req.url, ip: req.headers.get('x-forwarded-for')?.split(',')[0]?.trim() }),
signal: AbortSignal.timeout(2000),
}).catch(() => {}),
);
}
return NextResponse.next();
}
export const config = { matcher: ['/((?!_next/|api/|favicon.ico).*)'] };
```
Middleware runs before the page, so it can't report the status code.
## Cloudflare Worker
```js
const AX_BOTS = 'https://app.supametrics.io/api/bots/';
const CRAWLER = /bot|crawl|spider|preview|chatgpt|claude|anthropic|perplexity|gemini|google-|googleother|meta-external|facebookexternalhit|mistralai|cohere/i;
export default {
async fetch(request, env, ctx) {
const response = await fetch(request);
const ua = request.headers.get('user-agent') || '';
if (CRAWLER.test(ua)) {
ctx.waitUntil(
fetch(AX_BOTS, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
userAgent: ua,
href: request.url,
statusCode: response.status,
ip: request.headers.get('cf-connecting-ip') ?? undefined,
}),
}).catch(() => {}),
);
}
return response;
},
};
```
## Any other backend (curl)
Send the same JSON from PHP, Python, Go or Rails. To check the setup, send one test hit:
```bash
curl -X POST 'https://app.supametrics.io/api/bots/' \
-H 'content-type: application/json' \
-d '{"userAgent":"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)","href":"https://yoursite.com/pricing","statusCode":200}'
```
The answer should be `202 {"accepted":1,"ignored":0,"rejected":0}`, and GPTBot appears under **Training** on the dashboard.
## The Bot traffic card
The card is titled **Bot traffic**, with "crawler requests to your pages · not counted as visitors". It follows the dashboard's period; dashboard filters (country, page, source…) apply to human visits only and don't change it.
- **Tabs**: **AI answers**, **Indexing**, **Training** (and **Other** when present), each with its number of requests. The card opens on the first tab with traffic.
- **Chart**: requests over the period, one line per crawler (up to 8). Hover for each crawler's count per bucket.
- **N crawlers**: a menu of the tab's crawlers with their request counts. Untick crawlers to take them off the chart; **Select all** puts them back. This changes the chart only, not what is stored.
- **Crawler chips** under the chart: click one to show its details in the side panel.
- **Group by pages** (the layers button): switches the chart to one line per page, for the 8 most requested pages in the tab. Click it again to group by crawlers.
- **Side panel**: the selected crawler, with "N crawls · period · tab" and its most requested pages (up to 20), searchable with **Filter pages**. Grouped by pages, it lists the top pages instead, and selecting a page names the crawlers that requested it.
- **Crawler files**: requests for `robots.txt`, `llms.txt`, `llms-full.txt` and sitemaps.
- **Settings** opens the settings (see below), and **Hide card** hides the card.
The line under the card says how crawlers were identified: by user agent only, how many requests were IP-verified, or that **Verified crawlers only** is on.
If crawlers have visited before but not in the selected period, the card says **No bot traffic in this period**.
### Preview and hiding
- **Preview with sample data** shows the full card with made-up numbers, under a banner saying **Sample data — not your website's traffic.**, with **Set up bot tracking** and **Exit preview**.
- **Hide this card** (or **Hide card**, or **Hide bot traffic card** in settings) hides the card for everyone on the website. A line at the bottom of the dashboard then says **Bot traffic card hidden.** with **Show it again**. The same switch is in **Site settings › Dashboard › Bot traffic card**. See [Dashboard settings](https://supametrics.io/docs/settings-dashboard).
- Viewers can't change website settings, so when a viewer hides the card it is hidden on their device only.
## Bot traffic settings
Click the sliders button (or **Settings**) on the card to open **Bot traffic settings**. Every switch saves at once, for everyone on the website. The owner and members can change them; viewers see them read-only.
### Verified crawlers only
User agents are easy to fake. When a hit carries `ip`, AnalyticsX checks it the way the crawler's operator documents: reverse DNS plus a forward lookup for Google, Microsoft (Bing), Apple, Amazon, Yandex, Baidu and Huawei, and the published IP ranges for OpenAI and Perplexity. Other crawlers can't be verified.
With **Verified crawlers only** on, only hits whose IP checks out are stored. Your integration must send each crawler's `ip`, and crawlers that can't be verified are not stored while it's on.
### Crawler ingestion
A list of crawler companies (OpenAI, Anthropic, Google, Microsoft, Perplexity…), with a badge saying how many are off. Switch a company off to stop storing all its crawlers, or expand it to switch single agents. Each agent shows its kind (**AI assistant**, **Search index**, **AI training** or **Web crawler**), a one-line description and **IP-verifiable** where it can be verified. Requests from switched-off crawlers are answered but not stored.
### Request authentication
Anyone who knows your public id could send fake bot hits. A private token stops that:
1. Click **Create token**. The token (starting `axbot_`) is shown once: copy it then.
2. Store it on your server, for example in an environment variable `AX_BOT_TOKEN`, never in client code.
3. Send it with each request as `Authorization: Bearer ` (or `X-AnalyticsX-Token: `). With a token, the setup dialog's snippets already include this header.
4. Turn on **Reject unauthenticated requests** to refuse requests that don't send a token.
A wrong or old token is always refused with `401`. **Rotate** makes a new token and stops the old one at once. **Delete** removes the token; requests without a token are accepted again, and requests still sending the old one are refused.
### Install guide and hiding
**Install guide** opens the setup dialog with the snippets. **Hide bot traffic card** hides the card (see above).
## Common questions
**Why don't crawlers show up in my visitor numbers?** They're kept separate on purpose. Crawlers that do run JavaScript are filtered out of normal tracking too.
**I sent a hit and got `ignored: 1`.** The user agent isn't a known crawler, the crawler is switched off, **Verified crawlers only** is on and the IP didn't verify, or your account has used its bot allowance for this cycle.
**Is the crawler's IP address stored?** No. It's used only for verification.
---
# Goals
> Create goals for the actions you care about, test them, and read their completions on the Goals screen and the dashboard.
Source: https://supametrics.io/docs/goals
A goal is a conversion you care about: reaching a thank-you page, clicking a pricing button, finishing a
signup. AnalyticsX checks every visit against your goals as it arrives and records a **completion** each
time a goal's rule matches.
Goals count **from the moment you create or turn them on**. Earlier visits are never counted
retroactively, and a goal that is turned off counts nothing until you turn it back on.
## Where to manage goals
- The **Goals** screen at `/goals` (for example https://app.supametrics.io/goals): **Manage goals** in the left
rail. You can also open it from the dashboard's Goals card (**+** › **Open the Goals page**, or **Create a
goal**), or from a goal waiting for its first completion (**Set up this goal**).
- **Site settings › Dashboard**, which lists the same goals with the same **New goal** dialog.
Owners and members can create, edit, turn off and delete goals. Viewers see the goals read-only: the
switches are disabled and there is no **New goal**, edit or delete button. See
[Team members and roles](https://supametrics.io/docs/team-and-roles).
## Goal types
When you create a goal you pick what completes it under **Completes when**.
### URL path
Completes when a visitor views exactly that path.
- Enter the path only, starting with `/`, for example `/thank-you`. A path that doesn't start with `/` is
rejected.
- The query string is ignored (`/thank-you?plan=pro` counts) and so is a trailing slash (`/thank-you/`
counts).
- It's an exact, case-sensitive match: `/thank-you` does not match `/thank-you/team` or `/Thank-You`.
- In single-page apps, route changes count like page loads.
To count a group of pages (everything under `/docs/`, say), use a funnel page step with **Starts with** or
**Wildcard pattern** instead: see [Journeys and funnels](https://supametrics.io/docs/journeys-and-funnels).
### Element click
Completes when a visitor clicks an element matching a CSS selector, or anything inside it.
- Give the element an id or class you control, for example `