Measure referral quality, not just invites

Track invite sent, invite accepted, activation, and retention so product teams know whether referrals create valuable users.

Published

difficulty intermediate · time to value 5 minutes

Start from this

Analyze referral quality: invites sent, accepted, activated, and retained users by inviter cohort and channel.

Why this matters

Referral programs can inflate signup volume without producing retained users. Quality matters more than invite count.

What you get

  • Invite send and acceptance rates
  • Activation and retention of referred users
  • Best inviter cohorts and channels
  • Whether referral rewards are attracting quality users

Walk through it

You

Are referrals bringing good users?

Agent

I’ll follow referred users from invite to activation.

POST /v1/projects/:project_id/analytics/query {
  project_id: "default",
  hogql: "SELECT properties.channel AS channel, countIf(event = 'referral_invite_sent') AS sent, countIf(event = 'referral_invite_accepted') AS accepted, countIf(event = 'activated') AS activated FROM events WHERE event IN ('referral_invite_sent','referral_invite_accepted','activated') AND timestamp > now() - INTERVAL 60 DAY GROUP BY channel ORDER BY accepted DESC"
}

The output

The agent returns referral channels and inviter cohorts ranked by activation quality.

Setting it up

Emit referral lifecycle events with stable inviter and invitee identifiers. Preserve referral source onto activation.

Variations

  • “Show referrals by power-user cohort.”
  • “Find inviters whose referrals activate above average.”
  • “Publish referral quality by channel.”

Try this recipe in your own agent.

Ask your agent to adapt the starter prompt to your saved signal map and live events, then run it against your data.

Install agentry.sh/install.md for me
Agent will onboard itself and then your app