Page views, visitor checks, and program stats do less work on each request. Browsing still records the same session, and new visits still store an English country name.
Highlights
- A page view no longer fires a separate sign-in check or an immediate analytics post.
- Visitor context is reused for the rest of the browser tab.
- New visits take country and city from the edge and store the country as an English name.
- Program view and download totals are counted in the database instead of loading every session event.
Analytics
- Page views join the 4 second batch and send when you leave the page.
- An open session only compares the last two events when skipping a near-duplicate.
- A visitor already active in the last 30 minutes is not written again on every page.
Admin
- The program stats job sums views and downloads per bundle instead of pulling the full event list.
