Sites
A site is a website you track with amabledata’s web analytics. Each site has its own tracking snippet, its own analytics database and its own settings. Funnels, goals, alerts, share links, tracking domains, ad connections and site API keys all belong to a site.
Overview
Section titled “Overview”- Sites are managed in the analytics settings (
/t/<workspace>/analytics/settings), tab Sites. - Every analytics page has a Site selector at the top to choose which site you are looking at.
- A workspace can have any number of sites. Use one site per website or brand; use several hostnames on one site when the same business runs on several domains or subdomains you want counted together.
How it works
Section titled “How it works”Where the data lives
Section titled “Where the data lives”Each site has its own analytics database (a Durable Object of the edge Worker in your Cloudflare account) with its visitors, sessions, events, goals, funnels and attribution. Raw rows older than the site’s retention are archived to R2 and purged from the live database.
Which events are accepted
Section titled “Which events are accepted”The edge Worker only accepts events for a site from its Hostnames. Each hostname also covers its subdomains: example.com accepts www.example.com and shop.example.com. Events from localhost are refused unless Allow localhost is on.
Time zone and currency of a site
Section titled “Time zone and currency of a site”- The site Time zone defines where a day starts and ends in the analytics dashboards and the hour of day in the insights (for example Purchases by weekday and hour (site time)).
- The site Currency is the currency in which the analytics dashboards show revenue.
- They are independent of the workspace time zone and currency. See Money, dates and time zones.
Attribution model
Section titled “Attribution model”The site’s Attribution setting is the default model of its dashboards: how revenue is credited to the sources of each customer’s visits. You can switch the model on the dashboard at any time.
| Model | Label |
|---|---|
first_touch |
First touch |
last_touch |
Last touch |
last_non_direct (default) |
Last non-direct |
linear |
Linear |
position_based |
Position based (40/20/40) |
Cookie and cookieless mode
Section titled “Cookie and cookieless mode”- Cookie mode (default): the tracker stores a first-party visitor identifier, so returning visitors and multi-session journeys are recognised.
- Cookieless: No identifier is stored in the browser; visitors are counted with a daily rotating hash. Visitors cannot be recognised across days.
The site secret
Section titled “The site secret”Each site has a secret used as a Bearer token by your servers to send server-side events (goals, payments, identify calls, server-side page views and crawler hits). It is shown once, when you create the site or roll it. The site list shows No secret when none is set.
Site keys
Section titled “Site keys”Separately from the secret, the Keys tab of the analytics settings creates site API keys that let other systems read the site’s reports or send events through the public API. See Analytics settings.
Step by step
Section titled “Step by step”Add a site
Section titled “Add a site”-
Open the analytics settings and the Sites tab, then select New site. In a workspace without sites, Analytics › Overview shows Track your first website with Add a site.
-
Fill in the Add a site dialog (Events are accepted only from these hostnames (and their subdomains).): see the fields in Reference.
-
Select Create site.
-
The dialog
<name>is ready (Save the site secret for server-side events, then add the snippet to every page.) shows the secret (Copy it now: it will not be shown again.) and the Tracking snippet. Copy both. -
Install the snippet: see Install the tracker.
Edit a site
Section titled “Edit a site”-
In Sites, select Edit on the site.
-
Change the fields in Edit site and select Save. You see Site saved.
Changing the time zone or currency affects how dashboards group and show data from now on; stored events are not rewritten.
Roll the secret
Section titled “Roll the secret”-
In Sites, select Roll secret on the site.
-
Confirm Roll the secret of “
<name>”? (The current secret stops working immediately: update your server integrations with the new one.). -
Copy the secret shown in New secret for
<name>(Use it as Bearer token for server-side events.).
Delete a site
Section titled “Delete a site”-
In Sites, select Delete on the site.
-
Confirm Delete the site “
<name>”? (Its analytics data, funnels, alerts and share links are deleted. This cannot be undone.). You see Site deleted.
Ingest stops immediately. Tracking domains of the deleted site are cleaned up by the background job.
Reference
Section titled “Reference”Site fields
Section titled “Site fields”| Field | Type | Required | Default | Rules |
|---|---|---|---|---|
| Name | Text | Yes | — | 1 to 100 characters |
| Hostnames | List of hostnames | Yes | — | 1 to 20; type one and press Enter (or a comma); pasted URLs are reduced to their hostname; each covers its subdomains |
| Time zone | IANA time zone | Yes | Your browser’s time zone (API default UTC) |
Any valid IANA name |
| Currency | ISO 4217 code | Yes | EUR |
Three letters; suggestions: EUR, USD, GBP, CHF, JPY, CAD, AUD, SEK, NOK, DKK, PLN, CZK, BRL, MXN, INR |
| Retention (days) | Number | Yes | 395 | 0 keeps raw data forever, otherwise 30 to 3650 |
| Attribution | Model | Yes | Last non-direct | See the models above |
| Cookieless | Switch | — | Off | — |
| Allow localhost | Switch | — | Off | Accept events from localhost while you develop. |
Site list
Section titled “Site list”Each row shows the name, a Cookieless badge when it applies, No secret when the site has none, and a summary line: time zone · currency · retention (forever or <n> days) · attribution model · creation date. Actions: Roll secret, Edit, Delete.
What belongs to a site
Section titled “What belongs to a site”| Item | Page |
|---|---|
| Tracking snippet and installation check | Install the tracker |
| Goals and funnels | Goals and funnels |
| Alerts | Alerts |
| Public share links | Sharing |
| Tracking domains | Tracking domains |
| Ad accounts | Ad accounts |
Limits and permissions
Section titled “Limits and permissions”| Action | Permission | Roles |
|---|---|---|
| See sites and analytics | analytics:read |
Owner, Admin, Marketer, Analyst, Viewer |
| Create, edit, delete sites; roll the secret | analytics:configure |
Owner, Admin, Marketer |
Members without analytics:configure see the settings read-only (You can view these settings; changing them needs the analytics configuration permission.) and, in an empty workspace, Ask an admin of the workspace to add a site.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| Create site stays disabled | Name empty, no valid hostname, currency not three letters, or retention out of range | Fill the name, add at least one hostname, use a 3-letter code, retention 0 or 30–3650. |
| invalid hostname | The value is not a hostname | Enter example.com, not a path or an email. |
| unknown IANA time zone | Invalid time zone | Pick one from the list. |
| No events arrive | Snippet missing, or the page’s hostname is not in Hostnames | Add the hostname; check the snippet. |
| Events from your laptop are ignored | Localhost is refused by default | Turn on Allow localhost while developing. |
| Server events are rejected | The site secret was rolled | Update your servers with the new secret. |

