Analytics: queued events, once-per-order revenue, heatmap on product pages #17

Merged
libretech merged 1 commits from feat/umami-revenue-heatmap into main 2026-10-15 04:18:10 +02:00
Owner
  • trackEvent queues until Umami loads (events in onMounted were lost)
  • purchase-completed with revenue + EUR, once per order
  • Do Not Track honoured; recorder.js only on /details/*

Tests: bun test utils/trackEvent.test.ts (4 pass); nuxt build passes. Part of libretech/netcup#115.

🤖 Generated with Claude Code

- trackEvent queues until Umami loads (events in onMounted were lost) - purchase-completed with revenue + EUR, once per order - Do Not Track honoured; recorder.js only on /details/* Tests: bun test utils/trackEvent.test.ts (4 pass); nuxt build passes. Part of https://git.librete.ch/libretech/netcup/issues/115. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
libretech added 1 commit 2026-10-15 04:16:45 +02:00
trackEvent queues events until the deferred Umami script exists (they
were dropped when fired in onMounted) and drops them silently after 10 s.
The result page sends purchase-completed with revenue/currency once per
order (localStorage guard, set only after sending). The plugin honours
Do Not Track and loads recorder.js only on /details/* for Umami heatmaps.
bun test utils/trackEvent.test.ts: 4 pass. Netcup #115.
libretech merged commit d5dd109c63 into main 2026-10-15 04:18:10 +02:00
libretech deleted branch feat/umami-revenue-heatmap 2026-10-15 04:18:10 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: libreshop/shop#17