analytics/examples/funnel-tracking
2026-01-29 08:20:58 -08:00
..
funnel-tracker.ts docs(examples): 📝 Refactor example configurations to align with latest best practices, adding clearer workflows and feature demonstrations 2026-01-29 08:20:58 -08:00
README.md docs(examples): 📝 Refactor example configurations to align with latest best practices, adding clearer workflows and feature demonstrations 2026-01-29 08:20:58 -08:00
SignupFlow.tsx docs(examples): 📝 Refactor example configurations to align with latest best practices, adding clearer workflows and feature demonstrations 2026-01-29 08:20:58 -08:00
use-checkout-funnel.ts docs(examples): 📝 Refactor example configurations to align with latest best practices, adding clearer workflows and feature demonstrations 2026-01-29 08:20:58 -08:00
use-signup-funnel.ts docs(examples): 📝 Refactor example configurations to align with latest best practices, adding clearer workflows and feature demonstrations 2026-01-29 08:20:58 -08:00

Funnel Tracking Example

Track multi-step conversion funnels like signups, checkouts, or onboarding flows.

Key Concepts

1. Session-Scoped Funnel

Since analytics are consent-free (in-memory only), funnels are tracked within a single SPA session. If the user refreshes or returns later, the funnel resets.

2. Entry Attribution

Capture the referrer and UTM parameters when the user enters the funnel. This attribution is carried through to conversion.

3. Step Tracking

Track each step with timing data to identify where users drop off.

Files

  • funnel-tracker.ts - Core funnel tracking utilities
  • use-signup-funnel.ts - Example: Multi-step signup flow
  • use-checkout-funnel.ts - Example: E-commerce checkout
  • SignupFlow.tsx - Example component implementation

Metrics You Get

  • Step completion rates
  • Drop-off points
  • Time spent per step
  • Entry source attribution
  • Device/browser breakdown