Telemetry
SQL recipe collection

Product analytics SQL recipes

Build funnels, retention cohorts, active-user metrics, activation timing, feature adoption, churn, and upgrade analysis with SQL.

Intermediateproduct_events

Build a Signup-to-Activation Funnel in SQL

Calculate unique-user conversion through signup, onboarding, integration, and first-value milestones.

See SQL and result
Advancedproduct_events

Calculate Weekly Cohort Retention

Group users by first activity week and measure the percentage returning in later weeks.

See SQL and result
Advancedproduct_events

Find Features Used Before Upgrade

Join feature events to upgrade events and rank behaviors that occur before paid conversion.

See SQL and result
Advancedproduct_events

Calculate DAU, WAU, and Product Stickiness

Measure daily and weekly active users together and calculate DAU-to-WAU stickiness from a consistent activity definition.

See SQL and result
Intermediateproduct_events

Compare Funnel Conversion by Acquisition Source

Measure signup-to-activation conversion by acquisition source while deduplicating repeated milestone events.

See SQL and result
Advancedproduct_events

Measure Time to Activation

Calculate the distribution of elapsed time between signup and a user’s first meaningful product action.

See SQL and result
Advancedproduct_events

Measure Churn and Reactivation by Cohort

Classify accounts as retained, churned, or reactivated from recurring meaningful product activity.

See SQL and result

Adapt the event contract before the threshold

Keep the analysis pattern, but validate table names, field types, business definitions, time windows, and minimum-volume rules against your own events.

SQL reference