Observability
In one line: Five layers, each answering a different question, all on free
tiers at ₹0/month — Sentry (errors), BetterStack (uptime + status + jobs +
logs), PostHog (product analytics), Microsoft Clarity (heatmaps + replay), and
Checkly (synthetic monitoring).
Royal Glow uses five distinct observability layers, each answering a different question. Total monthly cost: ₹0.
The five layers
Tab Title
Tab Title
Tab Title
Tab Title
Tab Title
Layer 1 — Error Monitoring. Free tier: 5,000 errors/month — more than sufficient at launch.Sentry captures errors from both Cloudflare Workers (edge) and Render (Node.js/Payload CMS). Source maps are uploaded during build so errors point to original TypeScript lines, not minified output.What Sentry captures:
- Unhandled API route exceptions
- Client-side React errors (via Error Boundaries)
- Edge Worker errors (Cloudflare)
- Performance traces (slow DB queries, slow API responses)
Alert rules:What is NOT sent to Sentry:
- Business rule violations (4xx errors) — these are expected
- Validation errors (400) — these are expected
- Rate limit exceeded (429) — these are expected
Layer 2 — Uptime, Status Page, Logs & Job Monitoring. BetterStack replaces three separate tools (UptimeRobot + Cronitor + a log tool) in one platform.Uptime Monitors (10 of 10 free slots)
Check interval: 3 minutes (free tier). Average detection time ~1.5 minutes.Heartbeat Monitors for Scheduled Jobs
Scheduled work pings a BetterStack heartbeat URL on successful completion. If BetterStack doesn’t receive the ping within the expected window, it fires an alert.Status Page
Public status page at status.theroyalglow.in — customers can check during outages. Free, custom domain supported. Layer 3 — Product Analytics. Free tier: 1 million events/month.PostHog covers the full funnel: page views → service browsing → booking → conversion. It also provides feature flags for A/B testing offers without deploying new code.Key Events
Funnels to Build
- Organic → Homepage → Book Now → Dialog → Booking submitted → Confirmed
- GMB →
/?book=1&utm_source=gmb → Dialog auto-opened → Booking submitted
- In-store QR →
/?book=1&utm_source=walkin → Sign in → Booking submitted
- Meta ad →
/book lead form → Homepage dialog → Lead converted to booking
Why Not Google Analytics
Google Analytics sends data to Google — a concern under India’s DPDP Act 2023. PostHog is self-hostable and DPDP-compliant. Layer 4 — Heatmaps & Session Replay. Free tier: Completely free, no event caps, no session limits.Clarity complements PostHog — it’s better at visual heatmaps, PostHog is better at funnel analytics.What Clarity reveals:
- Are users clicking the booking CTA or ignoring it?
- How far do users scroll on the services page?
- Where do users get confused on the booking form?
- Which parts of the homepage get the most attention?
- Rage clicks and dead clicks
Layer 5 — Synthetic Monitoring. Free tier: 5 checks, 10,000 check runs/month.BetterStack answers “Is the server responding?” Checkly answers “Does the app actually work?” — it runs real Playwright scripts against production on a schedule.RGSS Checkly Checks
Complete Stack Summary
Upgrade Path
All upgrades are triggered by growth — not required at launch.
Consent Gating
All third-party browser scripts (PostHog, Clarity, Meta Pixel) load only after explicit cookie consent and only when their keys are configured. The cookie consent banner is a custom two-tier implementation — no paid consent management tool needed.