PhoenixKitWebAnalytics.Web.EventsLive (PhoenixKitWebAnalytics v0.5.0)

Copy Markdown View Source

What visitors do — interactions (LiveView events, and the client script's clicks), custom events, and the live hit feed.

The feed polls every 10 seconds while the page is open — it's the one view where "what's happening right now" is the point, and one indexed ORDER BY inserted_at DESC LIMIT 50 is cheap enough to repeat. Every row links to its session, the whole visit in order.