Analytics
In one line: PostHog is the primary product-analytics platform (funnels,
flags, replay) and Microsoft Clarity adds heatmaps. Meta Pixel + CAPI handle ad
attribution, UTM params drive
acquisition_source, and every script loads
only after explicit cookie consent — all on free, DPDP-compliant tiers.All analytics scripts load only after explicit cookie consent from the user. The cookie consent banner is a custom two-tier implementation — no paid consent management tool needed.
Analytics platforms
- Tab Title
- Tab Title
Free tier: 1 million events/month — won’t hit this limit for a very long time at salon scale.PostHog covers the full funnel: page views → service browsing → booking → conversion. It also provides:
- Session replay — watch exactly what a user did before dropping off
- Feature flags — A/B test offers without deploying new code
- Funnels — identify drop-off in the booking flow
- Cohort analysis — customers by acquisition source (Meta / GMB / organic / walk-in)
Event Taxonomy
Funnels
Feature Flags
PostHog feature flags are used to:- A/B test homepage hero copy
- Gradually roll out new features (e.g., favourite services)
- Enable/disable offers for specific customer cohorts
- Test new booking flow steps without full deployment
Meta Attribution
- Tab Title
- Tab Title
Fires on key events:
PageView— every pageViewContent— service detail pagesLead—/bookform submissionCompleteRegistration— onboarding completionPurchase— booking completion with invoice
UTM Attribution
All booking entry points carry UTM parameters that are persisted through the OAuth redirect viasessionStorage:
The
acquisition_source is stored on the customer_profile row at onboarding and on every booking row — enabling lifetime value analysis by acquisition channel.
Consent Management
Analytics scripts are gated behind the cookie consent banner:
Consent preference is stored in
localStorage (rgss_cookie_consent) for 365 days.
Monitoring AI Search Performance
Track whether Royal Glow appears in Google AI Overviews:1
Google Search Console
“AI Overview” impressions appear in the Performance report.2
Manual search audits
Weekly: search target queries in incognito, check AI answer inclusion.3
PostHog referrer tracking
Track visits wherereferrer contains google.com.- “best salon in Bengaluru”
- “luxury spa near me” (from your city)
- “[service name] price in Bengaluru”
- “Royal Glow Salon”