From 8407d7725037392ec8435536e18c72bfb93234af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20R=C3=B6hrs?= Date: Wed, 25 Nov 2026 10:57:02 +0000 Subject: [PATCH 1/5] docs: cover backend 2026.11.17-11.19 and frontend 2026.11.7-11.8, add Shopware plugin guide Co-Authored-By: Claude Opus 5.5 --- content/docs/analytics.de.mdx | 12 +- content/docs/analytics.mdx | 12 +- content/docs/changelog/index.de.mdx | 44 ++++++ content/docs/changelog/index.mdx | 44 ++++++ content/docs/guides/server-timing.de.mdx | 6 +- content/docs/guides/server-timing.mdx | 4 +- content/docs/install/index.de.mdx | 1 + content/docs/install/index.mdx | 1 + content/docs/install/meta.de.json | 2 +- content/docs/install/meta.json | 2 +- content/docs/install/shopware.de.mdx | 164 +++++++++++++++++++++++ content/docs/install/shopware.mdx | 164 +++++++++++++++++++++++ content/docs/web-vitals/ttfb.de.mdx | 2 +- content/docs/web-vitals/ttfb.mdx | 2 +- scripts/changelog-sources.json | 4 +- 15 files changed, 443 insertions(+), 21 deletions(-) create mode 100644 content/docs/install/shopware.de.mdx create mode 100644 content/docs/install/shopware.mdx diff --git a/content/docs/analytics.de.mdx b/content/docs/analytics.de.mdx index e2dd2af..7d7ad4b 100644 --- a/content/docs/analytics.de.mdx +++ b/content/docs/analytics.de.mdx @@ -33,7 +33,7 @@ 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** quer klappt ein Wisch nach oben Safaris Leiste ein, und die Fläche 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. @@ -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. Der Zeitraum bleibt, wenn du 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. @@ -78,11 +78,13 @@ 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“ öffnet eine kurze Liste: zuletzt genutzte Felder, die gängigen, die zur Seite passenden und alle übrigen nach Gruppe. Die Suche findet auch Werte, „Chrome“ eingetippt legt den Filter in einem Schritt an. + +Die fünf UTM-Felder sind ein Eintrag, „Campaign (UTM)“, das 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. @@ -90,7 +92,7 @@ Filter stehen in der URL und wandern über Views und geteilte Links mit. Mehrere **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 zeigt eine Leiste den Zeitraum, „Filter“ mit der Anzahl und die Darstellungseinstellungen. Darunter steht ein Chip für jeden Filter und jede geänderte Einstellung, sein x setzt sie zurück. ### Spärliche Daten und Tageszeit [#sparse-data] diff --git a/content/docs/analytics.mdx b/content/docs/analytics.mdx index 5d4ab69..fdae1b9 100644 --- a/content/docs/analytics.mdx +++ b/content/docs/analytics.mdx @@ -33,7 +33,7 @@ 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. @@ -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. @@ -78,11 +78,13 @@ 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. @@ -90,7 +92,7 @@ Filters live in the URL and carry across views and shared links. Chips combine w **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] diff --git a/content/docs/changelog/index.de.mdx b/content/docs/changelog/index.de.mdx index 6e0161d..604375c 100644 --- a/content/docs/changelog/index.de.mdx +++ b/content/docs/changelog/index.de.mdx @@ -17,6 +17,50 @@ Wir beschreiben die Änderungen, die du kennen solltest, nicht jede interne Anpa + + +Das Filter-Pop-up startet kürzer, und auf dem Handy gibt es nur noch eine ruhige Leiste. + +- **„Filter hinzufügen“** zeigt zuerst deine zuletzt genutzten Felder, die gängigen und die, die zur Seite passen. Alle anderen liegen in Gruppen, die du aufklappst. +- **Die Suche findet Werte.** Tippst du „Chrome“ oder ein Land, bietet sie den Wert direkt an und legt den Filter in einem Schritt an. +- **UTM** ist ein Eintrag, „Campaign (UTM)“. Ein Umschalter wählt Quelle, Medium, Kampagne, Begriff oder Inhalt. +- **Auf dem Handy** zeigt die Leiste den Zeitraum, „Filter“ mit der Anzahl und die Darstellungseinstellungen. Darunter steht ein Chip pro Änderung, sein x setzt sie zurück. +- **Perzentil und Traffic** stellst du in den Darstellungseinstellungen ein. + +Doku: [Analytics → Filtern](/de/analytics#filtering). + + + + + +Die Ansicht „Phases“ im TTFB-Verlauf zeichnet jede Phase als Linie auf einer gemeinsamen Achse. Ein Klick auf die Legende blendet eine Linie aus, mit Cmd- oder Strg-Klick siehst du eine Phase allein. Die Ansicht mit einer Zeile pro Phase heißt jetzt „Parts“. + +Doku: [TTFB → TTFB in fastmon](/de/web-vitals/ttfb#how-to-see-ttfb-in-fastmon). + + + + + +Der Verlauf auf den Seiten Server cache und Browser cache ist jetzt das übliche Trenddiagramm, mit Zoom per Ziehen, Release-Markern und ausblendbaren Legendeneinträgen. Statt „Kopie“ heißt es Cache-Treffer und Cache-Eintrag. Eine Schicht, die nie aus ihrem Cache ausliefert, taucht nicht mehr auf. + + + + + +Wechselst du Organisation, Applikation oder Site im Header oder per Cmd+K, bleiben Zeitraum, Vergleich, Perzentil und Darstellung erhalten. Beim Wechsel in eine andere Organisation fallen die Filter der alten weg. + +Doku: [Analytics → Zeitraum](/de/analytics#time-range). + + + + + +Die Trefferquote steht hinter einem Origin ohne Cache nicht mehr bei 100 %. Ein CDN-`MISS` vor einem Origin-`BYPASS` zählt jetzt als CDN-Miss. Seitenaufrufe vom 15.11.2026 ab 20:49 UTC bis zum Fix am selben Abend behalten ihre alten Werte. + +Doku: [Server-Timing → Ein Server-Cache pro Seitenaufruf](/de/guides/server-timing#served-cache). + + + Die veröffentlichte API hat jetzt einen Stabilitätsvertrag. Jede Operation sagt in `x-stability-level`, was sie zusagt. diff --git a/content/docs/changelog/index.mdx b/content/docs/changelog/index.mdx index 03b0cab..71f5620 100644 --- a/content/docs/changelog/index.mdx +++ b/content/docs/changelog/index.mdx @@ -12,6 +12,50 @@ We cover the changes you should know about, not every internal tweak. The except + + +The filter pop-up opens shorter, and the phone gets one calm bar. + +- **"Add filter"** opens on the fields you used last, the common ones, and those that fit the page. Every other field sits in a group you open. +- **The search finds values.** Typing "Chrome" or a country offers the value itself and adds the filter in one step. +- **UTM** is one entry, "Campaign (UTM)", with a switch for source, medium, campaign, term, or content. +- **On a phone** the bar shows the time range, "Filter" with its count, and the display settings. A chip below it lists each change, and its x resets it. +- **Percentile and traffic** are set in the display settings. + +Docs: [Analytics → Filtering](/en/analytics#filtering). + + + + + +The "Phases" view of the TTFB history draws one line per phase on a shared axis. A click on a legend entry hides its line, and Cmd or Ctrl click shows one phase alone. The view with one row per phase is now "Parts". + +Docs: [TTFB → How to see TTFB in fastmon](/en/web-vitals/ttfb#how-to-see-ttfb-in-fastmon). + + + + + +The history on the Server cache and Browser cache pages is the standard trend chart, with drag to zoom, release markers, and legend toggles. The pages say cache hit and cache entry in place of "copy". A layer that never serves from its cache is no longer listed. + + + + + +Picking another organization, application, or site in the header or in Cmd+K keeps the period, the comparison, the percentile, and the view settings. A switch to another organization drops the old one's filters. + +Docs: [Analytics → Time range](/en/analytics#time-range). + + + + + +The served rate no longer reads 100 % behind an origin that does not cache. A CDN miss in front of an origin `BYPASS` now counts as a CDN miss. Pageviews from 2026-11-15, 20:49 UTC, until the fix that evening keep their old values. + +Docs: [Server-Timing → One server cache per pageview](/en/guides/server-timing#served-cache). + + + The published API now has a stability contract. Every operation says in `x-stability-level` what it promises. diff --git a/content/docs/guides/server-timing.de.mdx b/content/docs/guides/server-timing.de.mdx index 1ac032e..14568c2 100644 --- a/content/docs/guides/server-timing.de.mdx +++ b/content/docs/guides/server-timing.de.mdx @@ -120,10 +120,10 @@ Ein Besucher bekommt die Seite von genau einem Cache. fastmon speichert ihn als | --------------------------------------------------------------- | -------------------- | -------------- | | CDN-Status ist `HIT`, `STALE`, `UPDATING` oder `REVALIDATED` | `cdn` | dieser Status | | sonst ist der Origin-Status einer davon | `origin` | dieser Status | -| sonst die innerste Schicht, die gemeldet hat | diese Schicht | ihr Status | +| sonst die innerste Schicht, die cachen wollte | diese Schicht | ihr Status | | keine Schicht hat gemeldet | leer | leer | -Cloudflare `DYNAMIC` vor einem `HIT` des Full-Page-Cache zählt also als Origin-Treffer. `cache_served_rate` ist der Anteil der cachebaren Seitenaufrufe, die aus einer Kopie kamen: die vier Status oben, geteilt durch alle Status außer `BYPASS`, `DYNAMIC`, `NONE` und `PASS`. Eine Site ohne Cache-Status liefert `null`. +Cloudflare `DYNAMIC` vor einem `HIT` des Full-Page-Cache zählt also als Origin-Treffer, ein CDN-`MISS` vor einem Origin-`BYPASS` als CDN-Miss. `cache_served_rate` ist der Anteil der cachebaren Seitenaufrufe, die aus einer Kopie kamen: die vier Status oben, geteilt durch alle Status außer `BYPASS`, `DYNAMIC`, `NONE` und `PASS`. Eine Site ohne Cache-Status liefert `null`. ## Cache-Alter [#cache-age] @@ -158,7 +158,7 @@ Die TTL ist die Frische, die dem Objekt bei der Auslieferung noch blieb, in Seku Für den Wert gelten die Regeln des Alters. `cache_ttl` ist die TTL der Schicht, die ausgeliefert hat, ohne Treffer leer. Die Server-Cache-Seite zeigt Alter und TTL pro Seitentyp und im Zeitverlauf: Ein Purge fällt dort als Alter auf, das auf null springt. -Beide sind Metriken mit den üblichen avg und p50 bis p99 und [Metrik-Filter](/de/analytics#filtern) in Sekunden. Ein Pageview ohne den Key trifft einen solchen Filter nie. Du findest sie außerdem auf den Beacon-Zeilen, im Pageview-Detail, in Benachrichtigungsregeln, in der Besucher-Journey und in `get_server_timing` des MCP-Servers. +Beide sind Metriken mit den üblichen avg und p50 bis p99 und [Metrik-Filter](/de/analytics#filtering) in Sekunden. Ein Pageview ohne den Key trifft einen solchen Filter nie. Du findest sie außerdem auf den Beacon-Zeilen, im Pageview-Detail, in Benachrichtigungsregeln, in der Besucher-Journey und in `get_server_timing` des MCP-Servers. ## Seitentyp [#page-type] diff --git a/content/docs/guides/server-timing.mdx b/content/docs/guides/server-timing.mdx index caf0758..d9d7c39 100644 --- a/content/docs/guides/server-timing.mdx +++ b/content/docs/guides/server-timing.mdx @@ -120,10 +120,10 @@ A visitor gets the page from one cache. fastmon stores that one as `cache_layer` | -------------------------------------------------------------- | -------------------- | -------------- | | CDN status is `HIT`, `STALE`, `UPDATING`, or `REVALIDATED` | `cdn` | that status | | otherwise the origin status is one of those | `origin` | that status | -| otherwise the innermost layer that reported | that layer | its status | +| otherwise the innermost layer that tried to cache | that layer | its status | | no layer reported | empty | empty | -So Cloudflare `DYNAMIC` in front of a full-page cache `HIT` counts as an origin hit. `cache_served_rate` is the share of cacheable pageviews served from a copy: the four statuses above, out of every status but `BYPASS`, `DYNAMIC`, `NONE`, and `PASS`. A site without a cache status reads `null`. +So Cloudflare `DYNAMIC` in front of a full-page cache `HIT` counts as an origin hit, and a CDN `MISS` in front of an origin `BYPASS` as a CDN miss. `cache_served_rate` is the share of cacheable pageviews served from a copy: the four statuses above, out of every status but `BYPASS`, `DYNAMIC`, `NONE`, and `PASS`. A site without a cache status reads `null`. ## Cache age [#cache-age] diff --git a/content/docs/install/index.de.mdx b/content/docs/install/index.de.mdx index 18a6231..659e591 100644 --- a/content/docs/install/index.de.mdx +++ b/content/docs/install/index.de.mdx @@ -12,6 +12,7 @@ statisches HTML, Next.js, WordPress, Hugo oder über einen Tag-Manager. + diff --git a/content/docs/install/index.mdx b/content/docs/install/index.mdx index a6523f1..e5e7e57 100644 --- a/content/docs/install/index.mdx +++ b/content/docs/install/index.mdx @@ -12,6 +12,7 @@ Next.js, WordPress, Hugo, or via a tag manager. + diff --git a/content/docs/install/meta.de.json b/content/docs/install/meta.de.json index ed994c8..74b9a05 100644 --- a/content/docs/install/meta.de.json +++ b/content/docs/install/meta.de.json @@ -1,4 +1,4 @@ { "title": "Implementierung", - "pages": ["index", "html", "verify"] + "pages": ["index", "html", "shopware", "verify"] } diff --git a/content/docs/install/meta.json b/content/docs/install/meta.json index bf27502..10ed4b6 100644 --- a/content/docs/install/meta.json +++ b/content/docs/install/meta.json @@ -1,4 +1,4 @@ { "title": "Implementation", - "pages": ["index", "html", "verify"] + "pages": ["index", "html", "shopware", "verify"] } diff --git a/content/docs/install/shopware.de.mdx b/content/docs/install/shopware.de.mdx new file mode 100644 index 0000000..555965f --- /dev/null +++ b/content/docs/install/shopware.de.mdx @@ -0,0 +1,164 @@ +--- +title: Shopware-Plugin installieren +description: So verbindest du einen Shopware-6-Shop mit dem Plugin mit fastmon, von der Installation über den ersten Seitenaufruf bis zu Server-Timing und First-Party-Collector. +--- + +import { Callout } from 'fumadocs-ui/components/callout'; + +Das fastmon-Plugin für Shopware 6 bindet den Tracker ein, sendet einen `Server-Timing`-Header und legt die Applikation für dich an. Hier findest du Installation, Verbindung und jede Einstellung, die das Plugin mitbringt. + +## Voraussetzungen [#requirements] + +| | | +| --- | --- | +| **Shopware** | 6.6 oder 6.7 | +| **PHP** | 8.2 oder neuer | +| **fastmon** | Eine [freigegebene](/de/concepts/organizations#plans) Organisation und die Rolle Owner oder Member | +| **Mehrere App-Server** | Ein gemeinsamer Lock-Store in `LOCK_DSN`, siehe [Verbindung am Leben halten](#renewal) | +| **Backend-Zeiten pro Schicht** | Optional: die PHP-Extension von Tideways ab 5.23 | + +Das Plugin steht unter MIT-Lizenz. Fehler im Plugin meldest du als Issue auf [GitHub](https://github.com/fastmon-dev/shopware6). + +## Installieren [#install] + +### Mit Composer [#composer] + +```bash +composer require fastmon/shopware-collector +bin/console plugin:refresh +bin/console plugin:install --activate FastmonCollector + +shopware-cli project admin-build . --only-extensions FastmonCollector + +bin/console cache:clear +``` + +Den Admin-Build darfst du nicht weglassen. Das Paket enthält keine gebauten Administration-Assets, ohne sie bleibt die Konfigurationsseite leer. + +Ohne [shopware-cli](https://developer.shopware.com/docs/products/tools/cli/) führst du `bin/console bundle:dump` aus, dann `bin/build-administration.sh` (unter 6.7 `composer run build:js`) und zuletzt `bin/console assets:install`. + +### Als ZIP [#zip] + +1. Lade `FastmonCollector-X.Y.Z.zip` unter [Releases](https://github.com/fastmon-dev/shopware6/releases) herunter. +2. Lade es unter **Erweiterungen → Meine Erweiterungen → Erweiterung hochladen** hoch. +3. Führe wie oben `plugin:refresh`, `plugin:install --activate FastmonCollector` und `cache:clear` aus. + +Die ZIP enthält die fertig gebaute Administration, ein Build ist nicht nötig. + +## Mit fastmon verbinden [#connect] + +1. Öffne **Erweiterungen → Meine Erweiterungen → fastmon.eu → Konfigurieren**. +2. Klick auf **Mit fastmon verbinden**. +3. Wähl auf der Zustimmungsseite von fastmon die Organisation und bestätige. + +Danach landest du wieder in der Administration, und der Shop hat seine eigenen Zugangsdaten. Du tippst nichts ab, und im Plugin steckt kein Secret. + +Das Plugin fragt `org:read`, `app:read`, `app:write` und `site:read` an. Auf der Zustimmungsseite kannst du die Liste einschränken. Das Panel zeigt dann an, welche Berechtigung fehlt, bevor ein Schreibzugriff daran scheitert. + + + Verbinden klappt sofort, aber fastmon prüft neue Organisationen, bevor sie Daten erfassen. Bis dahin zeigt das Panel einen Wartezustand. Du musst nichts wiederholen: Es geht weiter, sobald die Organisation [freigegeben](/de/concepts/organizations#plans) ist. + + +Läuft die Administration über reines `http`, funktioniert die Verbindung nicht. Das Panel bietet dann **Stattdessen mit einem API-Key verbinden** an, mit einem Key aus dem Dashboard. Ein Key läuft nicht ab und erneuert sich nicht selbst. + +### Verbindung am Leben halten [#renewal] + +- **Ein Worker oder der Cron für Scheduled Tasks muss laufen.** Der wöchentliche Task `fastmon_collector.renew_connection` erneuert die Verbindung. Läuft keins von beiden, endet sie nach 60 Tagen. +- **Ab zwei Nodes brauchst du `LOCK_DSN`.** Zeig damit auf Redis oder die Datenbank, einen Store, den jeder Node erreicht. Sonst erneuern zwei Nodes gleichzeitig, und fastmon beendet die Verbindung. + +Die Verbindung gehört der Organisation. Sie funktioniert also weiter, wenn die Person geht, die sie bestätigt hat. + +## Applikation wählen [#application] + +Nach dem Verbinden kannst du im Panel eine bestehende Applikation verknüpfen oder eine neue anlegen. Eine Applikation deckt den ganzen Shop ab. Jede Domain eines Verkaufskanals wird beim ersten Seitenaufruf zur Site. + +Eine neue Applikation bekommt diese Einstellungen: + +| Einstellung | Wert | +| --- | --- | +| [`site_policy`](/de/tracker#site-policy) | `auto`: eine neue Domain wird beim ersten Beacon zur Site | +| [`pagetype_ruleset`](/de/tracker#pagetype-ruleset) | `shopware6` | +| [`environment`](/de/tracker#environment) | Wählst du selbst. `dev` wird nicht abgerechnet | +| Datenumfang ([Preset](/de/tracker#presets)) | `minimal`, `standard` (Default) oder `full` | + +Jedes Mal, wenn du das Panel öffnest, prüft es die Verbindung und die verknüpfte Applikation. Wurde die Applikation gelöscht oder wurden ihre Hashes rotiert, sagt das Panel das und bietet eine andere an. + +## Storefront-Einstellungen [#storefront-settings] + +Alle Einstellungen gelten pro Verkaufskanal. + +| Einstellung | Default | Wirkung | +| --- | --- | --- | +| `active` | an | Bindet fastmon in diesem Verkaufskanal ein | +| `enableErrorBootstrap` | an | Fängt JavaScript-Fehler ab, die vor dem Tracker auftreten | +| `enablePixel` | an | Ergänzt das No-JS-Pixel für Clients ohne JavaScript | +| `sourceHash` / `collectorHash` | leer | Wird gesetzt, wenn du eine Applikation verknüpfst | + +Ohne verknüpfte Applikation rendert die Storefront kein Snippet. + +## Server-Timing-Header [#server-timing] + +Das Plugin hängt an jede Storefront-Antwort einen `Server-Timing`-Header. Dafür braucht es keine Verbindung zu fastmon, und es sendet nichts nach außen. + +```http +Server-Timing: fm-origin-cache;desc=hit, fm-origin-age;desc=312, fm-backend;dur=3.1 +Server-Timing: fm-origin-cache;desc=miss, fm-backend;dur=128.4, rdbms;dur=42.5, redis;dur=6.0 +``` + +| Eintrag | Was er meldet | +| --- | --- | +| `fm-origin-cache` | Das Urteil des HTTP-Cache: `hit`, `miss` oder `bypass` | +| `fm-origin-age` | Alter des ausgelieferten Cache-Eintrags in Sekunden, bei einem Treffer | +| `fm-backend` | Gesamte PHP-Zeit | +| `fm-render` | Renderzeit der Templates | +| `fm-pagetype` | Seitentyp aus der Route | +| `fm-host` | Der Server, der geantwortet hat, wenn `serverTimingHost` an ist | +| `fm-loggedin` | Ob ein Kunde eingeloggt war, wenn `serverTimingLoggedIn` an ist | + +`bypass` steht für eine Antwort, die der Cache nie ausliefert, etwa bei eingeloggtem Kunden, gefülltem Warenkorb oder einem POST. Mit der Tideways-Extension kommen Datenbank, Cache, Suche und ausgehende HTTP-Calls dazu. Die Konfigurationsseite zeigt, ob Tideways misst, zu alt ist oder fehlt. + +| Einstellung | Default | Wirkung | +| --- | --- | --- | +| `serverTiming` | an | Sendet den Header | +| `serverTimingHost` | aus | Ergänzt `fm-host`: das erste Label des Hostnamens oder `FASTMON_SERVER_NAME` | +| `serverTimingLoggedIn` | aus | Ergänzt `fm-loggedin` | + +Was fastmon aus den Einträgen macht, steht unter [Server-Timing](/de/guides/server-timing). + +## First-Party-Collector [#collector] + +Eine Karte in der Konfiguration legt fest, von wo Tracker und Beacons laden. + +| Modus | Lädt von | Voraussetzung | +| --- | --- | --- | +| **fastmons Collector** | `fastmon.site` | Keine | +| **Eigene Domain** | Ein Host, etwa `metrics.example.com` | Der Host leitet `/s/` und `/c/` an fastmon weiter | +| **Gleiche Domain wie die Storefront** | Die eigene Domain jeder Storefront | Jede Storefront-Domain leitet `/s/` und `/c/` an fastmon weiter | + +Das Plugin leitet diese Pfade nicht selbst weiter. Richte den Proxy in deinem Webserver oder CDN nach dem [First-Party-Proxy-Guide](/de/guides/first-party-proxy) ein und stell dann um: + +1. Wähl den Modus und klick auf **Einrichtung prüfen**. Das Plugin fragt jede Domain ab, die der Modus nutzt. +2. Klick auf **Übernehmen**, sobald jede Prüfung eine Antwort bekommt. Vorher bleibt der Button gesperrt. +3. Klick auf **Proxy-Secret erzeugen** und lass deinen Proxy das Secret in `FM-Proxy-Key` mitschicken. Leite außerdem den `User-Agent` des Besuchers weiter. +4. Schau ein paar Minuten später im Dashboard auf die Länder. Mit falschem Secret stehen alle Besucher im Land deines Servers. + +Ein neu erzeugtes Secret lässt das vorherige gültig, du kannst den Proxy also ohne Lücke umstellen. Zurück zu fastmons Collector geht jederzeit. + +## Trennen und deinstallieren [#disconnect] + +- **Verbindung trennen** entzieht dem Shop den Zugriff bei fastmon, und der Eintrag verschwindet unter **Organisationseinstellungen → Zugriff**. Einen eingefügten API-Key vergisst nur der Shop. Widerrufen musst du ihn im Dashboard. +- **Deinstallieren** meldet sich nicht bei fastmon. Ohne *Benutzerdaten behalten* löscht es die gespeicherten Zugangsdaten. + +## Umgebungsvariablen [#environment] + +| Variable | Wofür | +| --- | --- | +| `LOCK_DSN` | Der Lock-Store von Shopware. Ab zwei Nodes Pflicht | +| `FASTMON_SERVER_NAME` | Der Name, den `fm-host` meldet, wenn sich der Hostname bei jedem Deploy ändert | +| `FASTMON_OAUTH_REDIRECT_URI` | Wohin fastmon nach der Zustimmungsseite zurückleitet, wenn die Administration nicht unter `APP_URL` liegt | + +## Wie geht es weiter [#next] + +- [Prüfen, ob alles läuft](/de/install/verify). +- [Den Checkout-Funnel verfolgen](/de/checkout-funnel). +- [Releases vergleichen](/de/guides/compare-releases). diff --git a/content/docs/install/shopware.mdx b/content/docs/install/shopware.mdx new file mode 100644 index 0000000..a28ce54 --- /dev/null +++ b/content/docs/install/shopware.mdx @@ -0,0 +1,164 @@ +--- +title: Install the Shopware plugin +description: Connect a Shopware 6 shop to fastmon with the plugin, from installation to the first pageview, Server-Timing, and first-party collection. +--- + +import { Callout } from 'fumadocs-ui/components/callout'; + +The fastmon plugin for Shopware 6 embeds the tracker, sends a `Server-Timing` header, and creates the application for you. This page covers installation, the connection, and every setting the plugin adds. + +## Requirements [#requirements] + +| | | +| --- | --- | +| **Shopware** | 6.6 or 6.7 | +| **PHP** | 8.2 or newer | +| **fastmon** | An [approved](/en/concepts/organizations#plans) organization, and the role owner or member | +| **Several app servers** | A shared lock store in `LOCK_DSN`, see [Keep the connection alive](#renewal) | +| **Per-layer backend timings** | Optional: the Tideways PHP extension 5.23 or newer | + +The plugin is MIT-licensed. Report plugin bugs as an issue on [GitHub](https://github.com/fastmon-dev/shopware6). + +## Install [#install] + +### With Composer [#composer] + +```bash +composer require fastmon/shopware-collector +bin/console plugin:refresh +bin/console plugin:install --activate FastmonCollector + +shopware-cli project admin-build . --only-extensions FastmonCollector + +bin/console cache:clear +``` + +Do not skip the admin build. The package ships no built administration assets, and without them the configuration page stays empty. + +Without [shopware-cli](https://developer.shopware.com/docs/products/tools/cli/), run `bin/console bundle:dump`, then `bin/build-administration.sh` (`composer run build:js` on 6.7), then `bin/console assets:install`. + +### As a zip [#zip] + +1. Download `FastmonCollector-X.Y.Z.zip` from the [releases](https://github.com/fastmon-dev/shopware6/releases). +2. Upload it under **Extensions → My extensions → Upload extension**. +3. Run `plugin:refresh`, `plugin:install --activate FastmonCollector`, and `cache:clear` as above. + +The zip contains the built administration, so there is no build step. + +## Connect to fastmon [#connect] + +1. Open **Extensions → My extensions → fastmon.eu → Configure**. +2. Click **Connect to fastmon**. +3. On fastmon's consent screen, pick the organization and approve. + +You land back in the administration, and the shop holds its own credentials. You type nothing in, and the plugin contains no secret. + +The plugin asks for `org:read`, `app:read`, `app:write`, and `site:read`. You can narrow that list on the consent screen. The panel then shows which permission is missing before a write fails on it. + + + Connecting works at once, but fastmon reviews new organizations before they collect data. Until then the panel shows a waiting state. There is nothing to retry: it continues once the organization is [approved](/en/concepts/organizations#plans). + + +If the administration runs on plain `http`, the connection cannot work. The panel then offers **Connect with an API key instead**, with a key from the dashboard. A key does not expire and does not renew itself. + +### Keep the connection alive [#renewal] + +- **Run a worker or the scheduled-task cron.** The weekly task `fastmon_collector.renew_connection` renews the connection. Without either, it ends after 60 days. +- **Set `LOCK_DSN` on more than one node.** Point it at Redis or the database, a store every node reaches. Otherwise two nodes renew at the same moment, and fastmon ends the connection. + +The connection belongs to the organization, so it keeps working when the person who approved it leaves. + +## Choose an application [#application] + +Once connected, the panel offers to link an existing application or to create one. One application covers the whole shop. Every sales-channel domain becomes a site on its first pageview. + +A new application gets these settings: + +| Setting | Value | +| --- | --- | +| [`site_policy`](/en/tracker#site-policy) | `auto`: a new domain becomes a site on its first beacon | +| [`pagetype_ruleset`](/en/tracker#pagetype-ruleset) | `shopware6` | +| [`environment`](/en/tracker#environment) | Your choice. `dev` is not billed | +| Data scope ([preset](/en/tracker#presets)) | `minimal`, `standard` (default), or `full` | + +The panel checks the connection and the linked application each time you open it. If the application was deleted or its hashes rotated, the panel says so and offers another one. + +## Storefront settings [#storefront-settings] + +Every setting applies per sales channel. + +| Setting | Default | What it does | +| --- | --- | --- | +| `active` | on | Embeds fastmon in this sales channel | +| `enableErrorBootstrap` | on | Catches JavaScript errors thrown before the tracker loads | +| `enablePixel` | on | Adds the no-JS pixel for clients without JavaScript | +| `sourceHash` / `collectorHash` | not set | Written when you link an application | + +Without a linked application, the storefront renders no snippet. + +## Server-Timing header [#server-timing] + +The plugin adds a `Server-Timing` header to every storefront response. It needs no fastmon connection and sends nothing anywhere. + +```http +Server-Timing: fm-origin-cache;desc=hit, fm-origin-age;desc=312, fm-backend;dur=3.1 +Server-Timing: fm-origin-cache;desc=miss, fm-backend;dur=128.4, rdbms;dur=42.5, redis;dur=6.0 +``` + +| Entry | What it reports | +| --- | --- | +| `fm-origin-cache` | The HTTP cache verdict: `hit`, `miss`, or `bypass` | +| `fm-origin-age` | Age of the served cache entry in seconds, on a hit | +| `fm-backend` | Total PHP time | +| `fm-render` | Template render time | +| `fm-pagetype` | Page type from the route | +| `fm-host` | The server that answered, if `serverTimingHost` is on | +| `fm-loggedin` | Whether a customer was logged in, if `serverTimingLoggedIn` is on | + +`bypass` marks a response the cache never serves, such as a logged-in customer, a filled cart, or a POST. With the Tideways extension the header adds database, cache, search, and outbound HTTP time. The configuration page shows whether Tideways is measuring, too old, or missing. + +| Setting | Default | What it does | +| --- | --- | --- | +| `serverTiming` | on | Sends the header | +| `serverTimingHost` | off | Adds `fm-host`: the first label of the hostname, or `FASTMON_SERVER_NAME` | +| `serverTimingLoggedIn` | off | Adds `fm-loggedin` | + +What fastmon makes of each entry: [Server-Timing](/en/guides/server-timing). + +## First-party collection [#collector] + +A card in the configuration picks where the tracker and the beacons load from. + +| Mode | Loads from | Needs | +| --- | --- | --- | +| **fastmon's collector** | `fastmon.site` | Nothing | +| **Your own domain** | One host, such as `metrics.example.com` | That host proxies `/s/` and `/c/` to fastmon | +| **Same domain as the storefront** | Each storefront's own domain | Every storefront domain proxies `/s/` and `/c/` to fastmon | + +The plugin does not forward these paths itself. Set up the proxy in your web server or CDN with the [First-party proxy guide](/en/guides/first-party-proxy), then switch: + +1. Pick the mode and click **Check setup**. The plugin probes every origin the mode uses. +2. Click **Apply** once every probe answers. The button stays disabled until then. +3. Click **Generate proxy secret** and send it from your proxy in `FM-Proxy-Key`. Also forward the visitor's `User-Agent`. +4. Check the countries on the dashboard a few minutes later. A wrong secret shows every visitor in your server's country. + +Generating a new secret leaves the previous one valid, so you can update the proxy without a gap. Switching back to fastmon's collector works at any time. + +## Disconnect and uninstall [#disconnect] + +- **Disconnect** revokes the shop's access in fastmon, and the entry leaves **Organization settings → Access**. A pasted API key is only forgotten in the shop. Revoke it in the dashboard. +- **Uninstall** does not contact fastmon. Without *keep user data* it deletes the stored credentials. + +## Environment variables [#environment] + +| Variable | What it is for | +| --- | --- | +| `LOCK_DSN` | Shopware's lock store. Required on more than one node | +| `FASTMON_SERVER_NAME` | The name `fm-host` reports, for setups where the hostname changes on every deploy | +| `FASTMON_OAUTH_REDIRECT_URI` | Where fastmon returns after the consent screen, if the administration is not at `APP_URL` | + +## What's next [#next] + +- [Verify it works](/en/install/verify). +- [Track the checkout funnel](/en/checkout-funnel). +- [Compare releases](/en/guides/compare-releases). diff --git a/content/docs/web-vitals/ttfb.de.mdx b/content/docs/web-vitals/ttfb.de.mdx index 06deb2d..fffadd1 100644 --- a/content/docs/web-vitals/ttfb.de.mdx +++ b/content/docs/web-vitals/ttfb.de.mdx @@ -72,7 +72,7 @@ Die TTFB-Seite findest du unter **Performance → TTFB**. Oben stehen der Wert m - **Wohin die Zeit geht**: Redirects, Verbindung, Server, der Weg dazwischen und bei Seitenaufrufen ohne Server-Timing die ungemessene Wartezeit. Je ein Balken für alle Seitenaufrufe und für die, die CDN, Origin-Cache oder keins von beiden beantwortet hat. - **Server-Aufteilung**: was [Server-Timing](/de/guides/server-timing) meldet, also Edge, Origin, Datenbank, Cache, Suche, HTTP-Calls, eigener Code und Templates. Ohne den Header siehst du einen Block und einen Link zur Einrichtung. -- **Verlauf**: das gewählte Perzentil vor den Bewertungszonen, eine Linie pro Phase oder eine Linie pro Seitentyp, daneben die Verteilung. Das Maximieren-Icon zeigt das Diagramm im ganzen Fenster. +- **Verlauf**: das gewählte Perzentil vor den Bewertungszonen, pro Seitentyp oder pro Phase, daneben die Verteilung. „Phases“ zeichnet jede Phase als Linie auf einer gemeinsamen Achse, „Parts“ jede in eigener Zeile. Das Maximieren-Icon zeigt das Diagramm im ganzen Fenster. - **Wo der TTFB langsam ist**: Seitentypen, Seiten, CDN-Status, Login-Status, Origin-Hosts und mehr, nach langsamen Seitenaufrufen sortiert, jede Zeile mit Aufteilung. - **Cache und Origin**: der [Server-Cache](/de/guides/server-timing#served-cache) mit und ohne Treffer, seine Auslieferungsrate und die Backend-Zeit pro Origin-Host. Ein Host, der aus der Reihe fällt, wird hervorgehoben. - **Ein Seitenaufruf**: Das Pageview-Detail zeigt den TLS-Handshake innerhalb des Verbindungsaufbaus und den Start des Service Workers. diff --git a/content/docs/web-vitals/ttfb.mdx b/content/docs/web-vitals/ttfb.mdx index e23136f..6157407 100644 --- a/content/docs/web-vitals/ttfb.mdx +++ b/content/docs/web-vitals/ttfb.mdx @@ -72,7 +72,7 @@ The TTFB page sits under **Performance → TTFB**. On top are the value with its - **Where the time goes**: redirects, connection, server, the way in between, and the unmeasured wait of pageviews without Server-Timing. One bar each for all pageviews and for those answered by the CDN, the origin cache, or neither. - **Server split**: what [Server-Timing](/en/guides/server-timing) reports, as edge, origin, database, cache, search, HTTP calls, own code, and templates. Without the header you see one block and a link to the setup guide. -- **History**: the selected percentile against the rating zones, one line per phase, or one line per page type, beside the distribution. The maximize icon fills the window with the chart. +- **History**: the selected percentile against the rating zones, per page type, or per phase, beside the distribution. "Phases" draws one line per phase on a shared axis, "Parts" one row per phase. The maximize icon fills the window with the chart. - **Where the TTFB is slow**: page types, pages, CDN status, login state, origin hosts, and more, ranked by slow pageviews with the split in every row. - **Cache and origin**: the [server cache](/en/guides/server-timing#served-cache) with and without a hit, its served rate, and the backend time per origin host. A host unlike its peers is called out. - **One pageview**: the pageview detail shows the TLS handshake inside the connection and the service worker start. diff --git a/scripts/changelog-sources.json b/scripts/changelog-sources.json index c3bf512..19c5a7a 100644 --- a/scripts/changelog-sources.json +++ b/scripts/changelog-sources.json @@ -1,11 +1,11 @@ { "backend": { "repo": "../backend", - "since": "2026.11.16" + "since": "2026.11.19" }, "frontend": { "repo": "../frontend", - "since": "2026.11.6" + "since": "2026.11.8" }, "tracker": { "paths": [ From aca62a1bca58f0bae4032b9d9fbc29870b7822c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20R=C3=B6hrs?= Date: Wed, 25 Nov 2026 10:59:27 +0000 Subject: [PATCH 2/5] docs: the tracker is no longer obfuscated Co-Authored-By: Claude Opus 5.5 --- content/docs/changelog/index.de.mdx | 8 ++++++++ content/docs/changelog/index.mdx | 8 ++++++++ content/docs/concepts/beacon.de.mdx | 2 +- content/docs/concepts/beacon.mdx | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/content/docs/changelog/index.de.mdx b/content/docs/changelog/index.de.mdx index 604375c..38c4fde 100644 --- a/content/docs/changelog/index.de.mdx +++ b/content/docs/changelog/index.de.mdx @@ -17,6 +17,14 @@ Wir beschreiben die Änderungen, die du kennen solltest, nicht jede interne Anpa + + +Das Tracker-Script ist nicht mehr obfuskiert, nur noch minifiziert. In den DevTools siehst du, was es misst und sendet. + +Doku: [Beacon](/de/concepts/beacon). + + + Das Filter-Pop-up startet kürzer, und auf dem Handy gibt es nur noch eine ruhige Leiste. diff --git a/content/docs/changelog/index.mdx b/content/docs/changelog/index.mdx index 71f5620..08cc8f6 100644 --- a/content/docs/changelog/index.mdx +++ b/content/docs/changelog/index.mdx @@ -12,6 +12,14 @@ We cover the changes you should know about, not every internal tweak. The except + + +The tracker script is no longer obfuscated, only minified. You can read in DevTools what it measures and sends. + +Docs: [Beacon](/en/concepts/beacon). + + + The filter pop-up opens shorter, and the phone gets one calm bar. diff --git a/content/docs/concepts/beacon.de.mdx b/content/docs/concepts/beacon.de.mdx index c1ea6ac..8303378 100644 --- a/content/docs/concepts/beacon.de.mdx +++ b/content/docs/concepts/beacon.de.mdx @@ -24,7 +24,7 @@ Du wählst den Build nicht im `