Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
/content/docs/api/org-trackers/
/content/docs/api/releases/
/content/docs/api/analytics/
/content/docs/api/performance/
/content/docs/api/visitors/
/content/docs/api/sales/
/content/docs/api/error-tracking/
/content/docs/api/api-keys/
/content/docs/api/connections/
/content/docs/api/search/
Expand Down
22 changes: 12 additions & 10 deletions content/docs/analytics.de.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Der Shopfloor unter Analytics (`/shopfloor`) zeigt deinen Shop live von oben.
- **Ein Klick oder Tipp auf eine Zone** zoomt hinein: ihre Seitentypen und ihre Top 10 URLs der letzten 30 Minuten mit Pageviews und LCP.
- **Für einen Wandbildschirm** setzt `?window=60&sound=1&kiosk=1` Zeitfenster, Kassenklingeln pro Bestellung und Kiosk-Modus. Ton ist per Default aus, und im Kiosk-Modus verschwinden Mauszeiger und Buttons nach drei Sekunden ohne Bewegung.
- **Auf dem Handy** zeigt der Shopfloor hochkant seine Zahlen und bittet ums Drehen. Quer füllt die Fläche den ganzen Bildschirm.
- **Auf dem iPhone** bekommst du Vollbild, indem du fastmon zum Home-Bildschirm hinzufügst. Es öffnet sich dann als App ohne Browserleisten, im Shopfloor, wenn du es von dort hinzugefügt hast.
- **Auf dem iPhone** hältst du das Gerät quer und wischst nach oben. Safari blendet dann seine Leiste aus, und der Shopfloor füllt den Bildschirm.
- **Filtern** kannst du nach Land, Gerät, Seitentyp und Traffic. Ein Filter von einer anderen Seite bleibt als blasser Chip mit dem Hinweis, dass er hier nicht greift.
- **Er braucht [`store_stitch`](/de/tracker#store-stitch).** Eine Site ohne zeigt niemanden und sagt das auch.

Die API dazu: [`POST /analytics/live`](/de/api/analytics/queryAnalyticsLive) und [`POST /analytics/live-summary`](/de/api/analytics/queryAnalyticsLiveSummary).
Die API dazu: [`POST /analytics/live`](/de/api/visitors/queryAnalyticsLive) und [`POST /analytics/live-summary`](/de/api/visitors/queryAnalyticsLiveSummary).

### Partnerfloor [#partnerfloor]

Expand All @@ -53,7 +53,7 @@ Die API ist `POST /organizations/{org_id}/partner/live`, abgefragt im Takt von `

## Zeitraum [#time-range]

Die Zeitraum-Pille im Header legt das Fenster für alle Charts der Seite fest.
Die Zeitraum-Pille im Header legt das Fenster für alle Charts der Seite fest. Das Fenster bleibt, wenn du die Organisation, Applikation oder Site wechselst.

- **Zoom**: Minus verdoppelt das Fenster, Plus halbiert es, auch mit den Tasten `-` und `+`. Ein Live-Fenster bleibt mit seinem Ende bei jetzt.
- **Zieh über ein Trend-Chart**, um in diesen Abschnitt zu zoomen. Die Charts laden in der Auflösung neu, die dazu passt.
Expand All @@ -78,19 +78,21 @@ Picker und Befehlsmenü bieten jede Bucket-Breite mit der Zahl der Buckets an, d

Buckets ab 6 Stunden beginnen nach deiner Uhr: 6-Stunden-Buckets um 00, 06, 12 und 18 Uhr Ortszeit, ein Tag um Mitternacht, eine Woche am Montag. Über eine Zeitumstellung hat ein Tag 23 oder 25 Stunden.

## Filtern
## Filtern [#filtering]

Neben dem Zeitraum-Picker sitzt auf jeder Analytics-Seite eine Filterleiste. Tipp eine Dimension und einen Wert, etwa `country = DE`, und drück Enter für einen Filter-Chip. Das Wertefeld schlägt die echten Werte des Zeitraums mit ihren Pageviews vor.

Die Dimensionsauswahl listet zuerst Seite, Land und Gerät, dann Browser, Betriebssystem, Verbindung, Viewport, Referrer, UTM-Felder, Click-ID-Label, Domain, Navigationstyp, Protokoll und die [Checkout-Stufe](/de/checkout-funnel). Leere Werte wie „Direkt / keine" lassen sich noch nicht filtern.
„Filter hinzufügen“ zeigt zuerst eine kurze Auswahl: deine zuletzt genutzten Felder, die gängigen und die, die zur Seite passen. Alle anderen stehen darunter, nach Gruppen sortiert. Die Suche kennt auch Werte: Gibst du „Chrome“ ein, setzt du den Filter in einem Schritt.

Die fünf UTM-Felder sind unter „Kampagne (UTM)“ zusammengefasst, das einzelne Feld wählst du per Umschalter. Leere Werte wie „Direkt / keine“ lassen sich noch nicht filtern.

Filter stehen in der URL und wandern über Views und geteilte Links mit. Mehrere Chips werden mit UND verknüpft, ein Komma in einem Wert bedeutet „eines von". Ein Klick auf einen Chip bearbeitet ihn, das X entfernt ihn, und der „Filter"-Button zählt die aktiven.

**Jede Seite startet ohne Bot-Traffic.** Die Traffic-Auswahl im Filtermenü wechselt zwischen Keine Bots, Nur Bots und Alle, und der Seitenkopf nennt die Wahl neben dem Zeitraum. Der gewählte Bereich zählt nicht als Filter und überlebt „Alle entfernen".

**Jeder Chip hat einen Ein/Aus-Schalter.** Ausgeschaltet bleibt der Chip durchgestrichen an seinem Platz, und weder die Abfrage noch der Zähler berücksichtigen ihn. Ein Klick auf dasselbe Land in der Karte schaltet ihn wieder ein, und ein geteilter Link behält den Zustand.

Auf dem Handy ersetzt eine Reihe Chips über der Seite die Filter-Pille und das Seitenpanel, und der Zeitraum öffnet sich als Sheet von unten.
Auf dem Handy stehen Zeitraum, „Filter“ mit der Zahl aktiver Filter und die Darstellung in einer Leiste. Darunter siehst du jeden Filter und jede geänderte Einstellung als Chip, das x setzt sie zurück.

### Spärliche Daten und Tageszeit [#sparse-data]

Expand Down Expand Up @@ -149,15 +151,15 @@ Fehler liegt in der Seitenleiste unter Monitoring, mit vier Seiten: JavaScript-F
- Mehrere aufeinanderfolgende Frames aus demselben Vendor-Bundle klappen zu einer Zeile zusammen, die die Library nennt. Sind alle Frames Library, sagt das Panel das: Der Aufruf, der den Fehler gemacht hat, wurde bei fünf Frames abgeschnitten.
- Ein Frame, der den Fehler nur weiterreicht, ist als Rethrow markiert, die Ursache sitzt dann weiter unten.
- Ein Frame, der sich nicht lesen lässt, sagt warum: kein Pfad gespeichert, die Datei liegt auf fremdem Host, die Datei ist der fastmon-Tracker, oder du hast unter demselben Dateinamen neu deployt und die Position ist weg.
- Der Endpunkt ist [`POST /analytics/error-types/symbolicate`](/de/api/analytics/queryAnalyticsErrorSymbolication). Dasselbe Panel steckt in der Zeilen-Detailansicht des Explorers: Pageview öffnen, Fehler aufklappen, und der Stack löst sich auch dort auf.
- Der Endpunkt ist [`POST /analytics/error-types/symbolicate`](/de/api/error-tracking/queryAnalyticsErrorSymbolication). Dasselbe Panel steckt in der Zeilen-Detailansicht des Explorers: Pageview öffnen, Fehler aufklappen, und der Stack löst sich auch dort auf.

**„Wo es auftritt" ist das Aufschlüsselungs-Raster der Metrikseiten**: Seite, Seitentyp, Domain, Land, Gerät, Browser, Betriebssystem, Verbindung, Navigation, Caches, Bots und Netzwerk.

**Ein Fehler ohne Message und Stack sagt, warum**: Messages oder Frames abgeschaltet, ein Drittanbieter-Skript ohne CORS-Opt-in, oder es kam nichts an. Chart und Aufschlüsselung funktionieren trotzdem.

**„AI-Prompt" übergibt den ganzen Fall an einen Assistenten**: was kaputt ist, die Zahlen, der aufgelöste Stack mit dem Code an der Wurfstelle, wo es auftritt, und Beispiel-Vorkommen. Er schreibt dazu, was deine Site nicht erfasst.

**Welche API-Calls daneben fehlschlagen.** [`POST /analytics/error-types/correlated-requests`](/de/api/analytics/queryAnalyticsErrorCorrelatedRequests) sortiert die fetch/XHR-Endpunkte, die in denselben Pageviews scheitern, jeweils gegen ihre Fehlerquote in Pageviews ohne diesen Fehler.
**Welche API-Calls daneben fehlschlagen.** [`POST /analytics/error-types/correlated-requests`](/de/api/error-tracking/queryAnalyticsErrorCorrelatedRequests) sortiert die fetch/XHR-Endpunkte, die in denselben Pageviews scheitern, jeweils gegen ihre Fehlerquote in Pageviews ohne diesen Fehler.

**Eine Fehlersignatur ist ein Filter wie jeder andere.** Jede Fehlerzeile führt in den Explorer, eingegrenzt auf die Pageviews, die sie getragen haben, und „Fehlersignatur" steht in der Filterliste. `filters.error_fingerprint_kind` sagt, aus welcher Liste der Key stammt (`error` oder `failed_resource`).

Expand All @@ -178,15 +180,15 @@ Für die Zuordnung gilt die Regel der registrierbaren Domain von oben. **Die Lis

**Ein ausgeblendeter Host** fehlt auch in den Summen: `host` und `exclude_hosts` grenzen sie ein, `ownership` nicht.

**Eine geöffnete Ressource lässt sich aufschlüsseln** wie eine geöffnete Fehlersignatur: die Datei, eine Zeitreihe, Breakdowns nach Seite, Browser, Gerät, Betriebssystem und Land, betroffene Besucher und Beispiel-Beacons. Übergib den `fingerprint` der Zeile an [`POST /analytics/failed-resources/detail`](/de/api/analytics/queryAnalyticsFailedResourceDetail). Die Fehler-Detailansicht weist einen Ressourcen-Key ab.
**Eine geöffnete Ressource lässt sich aufschlüsseln** wie eine geöffnete Fehlersignatur: die Datei, eine Zeitreihe, Breakdowns nach Seite, Browser, Gerät, Betriebssystem und Land, betroffene Besucher und Beispiel-Beacons. Übergib den `fingerprint` der Zeile an [`POST /analytics/failed-resources/detail`](/de/api/error-tracking/queryAnalyticsFailedResourceDetail). Die Fehler-Detailansicht weist einen Ressourcen-Key ab.

`Fehlgeschlagene Ressourcen` ist ein eigener Filter und eine eigene Metrik: `>= 1` grenzt jede Ansicht auf Pageviews ein, bei denen etwas nicht geladen hat. In der Pageview-Detailansicht haben die fehlgeschlagenen Ladevorgänge einen eigenen Block, getrennt von den JavaScript-Fehlern.

Der Pfad braucht [`collect_error_frames`](/de/tracker#collect-error-frames).

Ad-geblockte Requests an bekannte Tracker-Hosts zählen als `blocked_count`, eine Teilmenge des fremden Buckets und keine Fehler.

Der Listen-Endpunkt ist [`POST /analytics/failed-resources`](/de/api/analytics/queryAnalyticsFailedResources). Der Fehlertypen-Endpoint weist `error_type: ["ResourceLoadError"]` mit einem 400 ab, der hierher verweist.
Der Listen-Endpunkt ist [`POST /analytics/failed-resources`](/de/api/error-tracking/queryAnalyticsFailedResources). Der Fehlertypen-Endpoint weist `error_type: ["ResourceLoadError"]` mit einem 400 ab, der hierher verweist.

## Besucher [#visitors]

Expand Down
22 changes: 12 additions & 10 deletions content/docs/analytics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ The Shopfloor, under Analytics at `/shopfloor`, draws your shop from above as it
- **A click or tap on a zone** zooms into it: its page types, and its top 10 URLs of the last 30 minutes with Pageviews and LCP.
- **For a wall screen**, `?window=60&sound=1&kiosk=1` sets the window, the ka-ching per order, and kiosk mode. Sound is off by default, and in kiosk mode the pointer and buttons hide after three seconds without a move.
- **On a phone** held upright the Shopfloor shows its figures and asks to be turned. Turned sideways, the floor fills the whole screen.
- **On an iPhone**, add fastmon to the Home Screen for a full screen. It then opens as an app without the browser's bars, on the Shopfloor if added from there.
- **On an iPhone** held sideways, a swipe up folds Safari's bar and the floor fills the screen.
- **Filters** are country, device, page type, and traffic. A filter from another page stays as a muted chip marked "not applied here".
- **It needs [`store_stitch`](/en/tracker#store-stitch).** A site without it shows nobody and says so.

The API is [`POST /analytics/live`](/en/api/analytics/queryAnalyticsLive) and [`POST /analytics/live-summary`](/en/api/analytics/queryAnalyticsLiveSummary).
The API is [`POST /analytics/live`](/en/api/visitors/queryAnalyticsLive) and [`POST /analytics/live-summary`](/en/api/visitors/queryAnalyticsLiveSummary).

### Partnerfloor [#partnerfloor]

Expand All @@ -53,7 +53,7 @@ The API is `POST /organizations/{org_id}/partner/live`, polled at `meta.next_pol

## Time range [#time-range]

The range pill in the header sets the window for every chart on the page.
The range pill in the header sets the window for every chart on the page. It stays when you switch organization, application, or site.

- **Zoom**: minus doubles the window, plus halves it, also on the `-` and `+` keys. A live window keeps its end at now.
- **Drag across a trend chart** to zoom into that stretch. The charts reload at the resolution it gets.
Expand All @@ -78,19 +78,21 @@ The picker and the command palette offer each bucket width with the number of bu

Buckets of 6 hours and longer start on your clock: 6-hour buckets at 00, 06, 12, and 18 local time, a day at midnight, a week on Monday. A day across a clock change is 23 or 25 hours long.

## Filtering
## Filtering [#filtering]

A filter bar sits next to the time picker on every analytics page. Type a dimension and value, for example `country = DE`, and press Enter to add a filter chip. The value field suggests the real values of the time range with their pageviews.

The dimension picker lists Page, Country, and Device first, then browser, OS, connection, viewport, referrer, UTM fields, click-ID label, domain, navigation type, protocol, and the [checkout stage](/en/checkout-funnel). Empty values such as "Direct / none" cannot be filtered yet.
"Add filter" opens on a short list: the fields you used last, the common ones, those that fit the page, and every other field by group. The search finds values too, so typing "Chrome" adds that filter in one step.

The five UTM fields are one entry, "Campaign (UTM)", with a switch for the field. Empty values such as "Direct / none" cannot be filtered yet.

Filters live in the URL and carry across views and shared links. Chips combine with AND, and a comma inside one value means "any of". Click a chip to edit it, its X removes it, and the "Filter" button counts the active ones.

**Every page starts without bot traffic.** The filter menu's Traffic control switches between No bots, Bots only, and All, and the header names the choice next to the period. The scope is not counted as a filter and survives "Clear all".

**Every chip has an on/off switch.** A switched-off chip stays in place, struck through, and neither the query nor the count includes it. Clicking the same country on the map switches it back on, and a shared link keeps the state.

On a phone, a row of chips above the page replaces the filter pill and the side panel, and the time range opens as a bottom sheet.
On a phone, one bar shows the time range, "Filter" with its count, and the display settings. Below it, a chip for each filter or changed setting goes back to the default with its x.

### Sparse data and time of day [#sparse-data]

Expand Down Expand Up @@ -149,15 +151,15 @@ Errors sits under Monitoring in the sidebar, with four pages: JavaScript errors,
- A run of frames in the same vendor bundle folds into one row naming the library. When every frame is a library, the panel says so: the call that made the mistake was cut off at five frames.
- A frame that only passes the error on is marked as a rethrow, and the cause sits further down.
- A frame that cannot be read says why: no path was stored, the file sits on somebody else's host, the file is the fastmon tracker, or you deployed again under the same name and the position is gone.
- The endpoint is [`POST /analytics/error-types/symbolicate`](/en/api/analytics/queryAnalyticsErrorSymbolication). The same panel sits in the Explorer's row drawer: open a pageview, expand its errors, and the stack resolves there too.
- The endpoint is [`POST /analytics/error-types/symbolicate`](/en/api/error-tracking/queryAnalyticsErrorSymbolication). The same panel sits in the Explorer's row drawer: open a pageview, expand its errors, and the stack resolves there too.

**"Where it happens" is the breakdown grid the metric pages carry**: page, page type, domain, country, device, browser, OS, connection, navigation, caches, bots, and network.

**An error without message or stack says why**: messages or frames switched off, a third-party script without the CORS opt-in, or nothing sent. The chart and the breakdown work either way.

**"AI prompt" hands the whole case to an assistant**: what broke, the numbers, the resolved stack with the code at the throw site, where it happens, and sample occurrences. It also says what your site does not collect.

**Which API calls fail alongside it.** [`POST /analytics/error-types/correlated-requests`](/en/api/analytics/queryAnalyticsErrorCorrelatedRequests) ranks the fetch/XHR endpoints that fail in the same pageviews, each against its failure share in pageviews without that error.
**Which API calls fail alongside it.** [`POST /analytics/error-types/correlated-requests`](/en/api/error-tracking/queryAnalyticsErrorCorrelatedRequests) ranks the fetch/XHR endpoints that fail in the same pageviews, each against its failure share in pageviews without that error.

**An error signature is a filter like any other.** Every error row links into the Explorer scoped to the pageviews that carried it, and "Error signature" is in the filter list. `filters.error_fingerprint_kind` says which list the key came from (`error` or `failed_resource`).

Expand All @@ -178,15 +180,15 @@ Ownership is the registrable-domain rule above. **The list groups by host**, eac

**Hiding a host** narrows the totals too: `host` and `exclude_hosts` do, `ownership` does not.

**Opening a resource drills into it** the way opening an error signature does: the file, a time series, breakdowns over page, browser, device, OS, and country, the visitors affected, and sample beacons. Pass the row's `fingerprint` to [`POST /analytics/failed-resources/detail`](/en/api/analytics/queryAnalyticsFailedResourceDetail). The error drill-down refuses a resource key.
**Opening a resource drills into it** the way opening an error signature does: the file, a time series, breakdowns over page, browser, device, OS, and country, the visitors affected, and sample beacons. Pass the row's `fingerprint` to [`POST /analytics/failed-resources/detail`](/en/api/error-tracking/queryAnalyticsFailedResourceDetail). The error drill-down refuses a resource key.

`Failed resources` is a filter and a metric of its own, so `>= 1` scopes any view to pageviews where something did not load. In the pageview drill-down the failed loads have their own block, separate from the JavaScript errors.

The path needs [`collect_error_frames`](/en/tracker#collect-error-frames).

Ad-blocked requests to known tracker hosts count as `blocked_count`, a subset of the foreign bucket and not failures.

The list endpoint is [`POST /analytics/failed-resources`](/en/api/analytics/queryAnalyticsFailedResources). The error-types endpoint refuses `error_type: ["ResourceLoadError"]` with a 400 pointing here.
The list endpoint is [`POST /analytics/failed-resources`](/en/api/error-tracking/queryAnalyticsFailedResources). The error-types endpoint refuses `error_type: ["ResourceLoadError"]` with a 400 pointing here.

## Visitors [#visitors]

Expand Down
3 changes: 2 additions & 1 deletion content/docs/api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Every operation carries `x-stability-level` in the schema.

- **Extensible enums**: a response enum under `x-extensible-enum` can gain values without notice. Treat an unknown value as an open string and never fail on it.
- **Closed requests**: a request enum takes the closed copy `<Enum>Request`, and a body refuses any field it does not declare with `422`.
- **Provisional fields**: a stable operation can mark one optional field `x-stability-level: alpha`, with a description starting "Provisional". It may change or go in any release, so your client has to work without it.
- **Deprecated** operations and fields carry `deprecated: true` and keep answering until the changelog announces their removal.

## Cross-cutting topics
Expand All @@ -31,7 +32,7 @@ Every operation carries `x-stability-level` in the schema.

## Endpoints

Pages are auto-generated per OpenAPI tag. Each operation has its own page with split-layout schema, language tabs (curl, JS, Python, Go, Java, C#), and a Try-it playground.
Pages are auto-generated per OpenAPI tag. The analytics readers sit in five groups: Analytics, Performance, Visitors, Sales, and Error tracking (tag `errors`). Each operation has its own page with split-layout schema, language tabs (curl, JS, Python, Go, Java, C#), and a Try-it playground.

<Cards>
<Card title="Organizations" href="/en/api/organizations/listOrganizations" description="Top-level account container: members, plans, billing." />
Expand Down
4 changes: 4 additions & 0 deletions content/docs/api/meta.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"sites",
"releases",
"analytics",
"performance",
"visitors",
"sales",
"error-tracking",
"synthetic",
"notifications",
"partners",
Expand Down
Loading