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