From 442ddccceb27ea68a036516aa8113721200d7ec8 Mon Sep 17 00:00:00 2001 From: elpatron Date: Sat, 30 May 2026 11:54:30 +0200 Subject: [PATCH] =?UTF-8?q?feat(analytics):=20Plausible-Event=20f=C3=BCr?= =?UTF-8?q?=20Footer-Link-Klick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trackt „Footer Link Clicked“ beim Klick auf den Autoren-Link im App-Footer. Co-authored-by: Cursor --- client/src/components/AppFooter.tsx | 9 ++++++++- client/src/services/analytics.ts | 3 ++- docs/plausible-events.md | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/components/AppFooter.tsx b/client/src/components/AppFooter.tsx index 437b2c0..d90fea4 100644 --- a/client/src/components/AppFooter.tsx +++ b/client/src/components/AppFooter.tsx @@ -1,3 +1,5 @@ +import { PlausibleEvents, trackPlausibleEvent } from '../services/analytics.js' + const APP_VERSION = typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : 'dev' export default function AppFooter() { @@ -9,7 +11,12 @@ export default function AppFooter() { © 2026 KnorrLabs/ - Markus F.J. Busche + trackPlausibleEvent(PlausibleEvents.FOOTER_LINK_CLICKED)} + > + Markus F.J. Busche + ) diff --git a/client/src/services/analytics.ts b/client/src/services/analytics.ts index 10525d7..ae0ac90 100644 --- a/client/src/services/analytics.ts +++ b/client/src/services/analytics.ts @@ -22,7 +22,8 @@ export const PlausibleEvents = { BACKUP_RESTORED: 'Backup Restored', DEMO_OPENED: 'Demo Opened', PUSH_ENABLED: 'Push Enabled', - PUSH_DISABLED: 'Push Disabled' + PUSH_DISABLED: 'Push Disabled', + FOOTER_LINK_CLICKED: 'Footer Link Clicked' } as const export type PlausibleEventName = (typeof PlausibleEvents)[keyof typeof PlausibleEvents] diff --git a/docs/plausible-events.md b/docs/plausible-events.md index f504476..2e32a08 100644 --- a/docs/plausible-events.md +++ b/docs/plausible-events.md @@ -37,6 +37,7 @@ Kapteins Daagbok nutzt [Plausible Analytics](https://plausible.io/) mit dem Scri | Backup Restored | Backup wiederhergestellt (`LogbookBackupPanel.tsx`) | `entries`, `photos`, `mode`: `same_id` \| `overwrite` \| `new_id` | | Push Enabled | Crew-Änderungs-Push aktiviert (`PushNotificationSettings.tsx`) | — | | Push Disabled | Crew-Änderungs-Push deaktiviert (`PushNotificationSettings.tsx`) | — | +| Footer Link Clicked | Klick auf Autoren-Link im App-Footer (`AppFooter.tsx`) | — | ## Bewusst nicht getrackt