berrypod/lib/berrypod_web/controllers
jamey f91b47f0c3
All checks were successful
deploy / deploy (push) Successful in 1m37s
include browser/os/screen_size in e-commerce analytics events
Event call sites (product_view, add_to_cart, checkout_start, purchase)
were only passing visitor_hash and pathname, leaving browser, OS, screen
size and country nil. Add AnalyticsHook.attrs/1 helper to extract common
analytics fields from socket assigns, and use it in all LiveView event
call sites. Checkout controller reads the same fields from the session.

Also fix plug analytics test to clear stale events before assertions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:13:47 +00:00
..
page_html rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
admin_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
cart_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
checkout_controller.ex include browser/os/screen_size in e-commerce analytics events 2026-02-22 21:13:47 +00:00
error_html.ex improve error pages: minimal version when site not live 2026-02-20 22:19:21 +00:00
error_json.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
error_preview_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
health_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
image_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
page_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
page_html.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
setup_controller.ex fix recovery login crash for users with password set 2026-02-21 22:52:46 +00:00
stripe_webhook_controller.ex fix Stripe webhook crash on struct access 2026-02-21 23:36:21 +00:00
user_session_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00
webhook_controller.ex rename project from SimpleshopTheme to Berrypod 2026-02-18 21:23:15 +00:00