Visitor Analytics & Live Alerts
First-party visitor analytics built into the CMS — anonymous session and page-view tracking, a live traffic dashboard, and real-time Slack/email alerts when someone visits or converts.
- Category
- cms_web
- Tech stack
- Next.js, MySQL, Slack webhooks, Nodemailer
- Metrics
- Zero third-party trackers, Real-time Slack + email alerts
- Role
- Design + build
Content
A tracking beacon in the public layout writes anonymous sessions, page views and conversion events to the CMS database (migration 0014). The Traffic tab on the analytics dashboard shows live visitors, uniques, views, bounce rate, and breakdowns by device, browser, country, referrer and top pages. A notification layer pushes new-visitor and conversion alerts to Slack (incoming webhooks) and email, with per-channel enable flags and graceful failure handling.
Problem
Third-party analytics are blocked by ad-blockers, over-collect data, and live outside the CMS. I wanted to know who is on the site right now and get pinged when it matters — without shipping visitor data to anyone else.
Outcome
Full visibility of site traffic with zero third-party trackers, plus real-time Slack pings on visits and conversions.