Expert Guide: Mobile Referral and Viral Loop Tracking
A referral programme only works if you can follow one invite from the moment it is created to the moment the new user does something valuable. That means six events, one link between the invite and the install, and a handful of ratios. This guide shows what to log, how to calculate the viral coefficient (K-factor) and the return on the rewards you pay, and where referral tracking usually breaks.
The referral chain
Think of referrals as a funnel with a person at each end. Each step needs its own event, so you can see where the invites are lost.
| Step | Event | Key properties |
|---|---|---|
| 1. Link created | referral_link_created |
referrer_id, campaign, placement |
| 2. Shared | referral_link_shared |
referrer_id, channel (message, email, social, copy link) |
| 3. Clicked | referral_link_clicked |
referral_code, platform, has_app_installed |
| 4. Installed | referral_install |
referral_code, attribution_method |
| 5. Activated | referred_user_first_action |
referral_code, action, days_since_install |
| 6. Rewarded | referrer_reward_granted |
referrer_id, reward_type, referral_code |
The referral_code on steps 3 to 6 is the thread that ties the chain together. If it is lost between the click and the install, you cannot tell which invite produced which user. Deferred deep links solve this for people who do not have the app yet; see deep link and deferred deep link tracking.
A minimal event sent to the cc:analytics ingest endpoint:
{
"app_id": "my-app",
"events": [
{
"type": "referral_install",
"timestamp": "2026-11-20T09:00:00Z",
"payload": {
"referral_code": "R7K2Q",
"attribution_method": "deferred_deep_link",
"platform": "ios",
"app_version": "4.2.0"
}
}
]
}
The metrics to calculate
| Metric | How to calculate it |
|---|---|
| Invite rate | Users who shared at least one invite ÷ active users |
| Invites per referrer | Shares ÷ referrers |
| Click-through rate | Clicks ÷ shares |
| Install rate | Attributed installs ÷ clicks |
| Activation rate | Referred users who reach the first valuable action ÷ referred installs |
| K-factor | Invites sent per user × conversion rate of an invite to an activated user |
| Cycle time | Median time from a user’s activation to their referrals’ activation |
| Referral ROI | (Value of referred users − reward cost) ÷ reward cost |
A K-factor above 1.0 means each user brings in more than one new user, so the product can grow itself. Many apps sit below that. A programme can still be worth running at a K-factor under 1.0 if referred users cost less than paid installs and stay longer. To check this, compare their retention and revenue with users from other channels (see organic vs paid install tracking).
Find where the chain breaks
Compare each step’s rate with the one before:
- Low invite rate: people do not know the programme exists, or the reward is not worth the effort. Test the placement and the offer.
- Good shares, low clicks: the message is weak, or it is sent through a channel where links are ignored. Compare channels.
- Good clicks, low installs: a landing page or store-handoff problem, not a sharing problem. A 40% click rate with a 5% install rate points here.
- Good installs, low activation: the new user is dropped on the generic onboarding. Take them to what the friend shared. See onboarding completion tracking.
- Rewards paid, no value gained: rewards are granted too early. Pay on a meaningful action, not on the install.
Protecting the numbers
- Self-referrals and fraud. Flag referrer and referred users that share a device, payment method or network pattern, and hold the reward until the referred user has done something real.
- Double counting. Count a reward once per referred user, and make
referrer_reward_grantedidempotent. - Attribution gaps. Some installs arrive without a code. Record
attribution_method, so you can see the share that is guesswork. - Privacy. Referral data links people to each other. Collect only what you need, tell people what you collect, and respect consent and platform rules for identifiers.
Frequently asked questions
What is a good K-factor? Above 1.0 is self-sustaining growth, but few apps reach it for long. Compare against your own paid and organic channels instead: what matters is the cost and quality of the users you get.
Should I reward the referrer, the new user, or both? Test it. Two-sided rewards can convert better, but they cost more, so track referral ROI for each variant.
How do I track referrals when the friend has not installed the app? Use a link that survives the store visit, a deferred deep link, and record how each install was attributed.
How long does it take to see results? At least one full cycle from invite to activation, which is the cycle time you measure. For some apps that is days, for others weeks.
Related resources
- Mobile attribution tracking
- Deep link and deferred deep link tracking
- Mobile conversion funnel tracking
- Mobile retention rate tracking
- Product Analytics for Web & Mobile
- cc:analytics API Docs
Last updated: November 2026