berrypod/lib/berrypod_web
jamey 162a5bfe9a
All checks were successful
deploy / deploy (push) Successful in 1m13s
replace analytics double-count prevention with buffer supersede
The Plug records a pageview with a known ID (plug_ref) into the ETS
buffer. When JS connects, the LiveView hook supersedes that event by
ID and records its own with full data (screen_size from connect params).
If JS never connects, the Plug's event flushes normally after 10s.

Also fixes: admin browsing no longer leaks product_view events — the
Plug now sets no analytics session data for admins, so all downstream
visitor_hash guards naturally filter them out.

Replaces the previous time-based skip logic which was brittle and
race-prone. The supersede approach is deterministic and handles both
the ETS buffer and already-flushed DB cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 14:48:50 +00:00
..
components add privacy-first analytics with progressive event collection 2026-02-22 12:50:55 +00:00
controllers include browser/os/screen_size in e-commerce analytics events 2026-02-22 21:13:47 +00:00
live add dashboard filtering to analytics 2026-02-23 13:46:34 +00:00
plugs replace analytics double-count prevention with buffer supersede 2026-02-23 14:48:50 +00:00
admin_layout_hook.ex auto-confirm admin during setup, skip email verification 2026-02-21 10:24:26 +00:00
analytics_hook.ex replace analytics double-count prevention with buffer supersede 2026-02-23 14:48:50 +00:00
cart_hook.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
endpoint.ex only enable gzip static file serving in prod 2026-02-21 08:56:51 +00:00
gettext.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
router.ex add privacy-first analytics with progressive event collection 2026-02-22 12:50:55 +00:00
search_hook.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
telemetry.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
theme_hook.ex fix admin font loading and theme CSS cache miss bug 2026-02-20 18:39:41 +00:00
user_auth.ex add setup onboarding page, dashboard launch checklist, provider registry 2026-02-20 00:34:06 +00:00