Measuring a Notification Rollout in a Social Trip-Planning App
Statistics & ExperimentsModel answerLast updated
Pick a primary metric and guardrails for a new notification feature, then design a randomized experiment that stays valid when users' shared itineraries leak effects between groups.
Context
You work on a mobile app for planning trips. Users browse destinations, save places, and build itineraries, and many itineraries are shared or co-edited with friends and family. The team wants to launch a new push-notification feature and has asked you to define how its impact will be judged.
Questions
- Success metrics. Which metrics would you use to decide whether the feature works? Name a single primary metric and explain why it beats simpler options such as tap rate.
- Guardrail metrics. Which metrics would you watch to make sure the feature is not causing hidden harm (for example, users switching notifications off or removing the app)? How would you set thresholds?
- Experiment design. Because users share and co-edit itineraries, one person's treatment can change another person's behavior. How would you run the A/B test so this does not distort the result? State the unit of randomization and justify it.
What a strong answer covers
- A clear goal, and a primary metric that measures incremental value.
- Guardrails covering channel health, churn, cannibalization, and the experience of non-targeted users.
- Why standard user-level randomization breaks down with sharing.
- The statistical price of your fix, and how you would analyze the data and mitigate that price.
Hints
Hint 1
Ask what the notification is for before choosing metrics. Is it meant to cause taps, or to cause more real trip-planning? A metric that exists only for the treated group cannot show incremental impact.
Hint 2
Notification damage is slow and often irreversible. Think of opt-outs, uninstalls, and total (not just push-driven) sessions, and consider a long-running holdout to catch effects that appear late.
Hint 3
If a treated user edits a shared trip and a control user sees the update, control is contaminated. Think about grouping users by how connected they are and assigning whole groups to one arm, then ask what that does to variance and sample size.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
State the goal first: the notification should bring people back to plan trips, not simply produce taps. I would also ask which notification type is under test (price drop, destination suggestion, or friend activity). Social notifications trigger far more interference than personal ones, so this changes the design.
1. Success metrics
Pick one primary metric (OEC) and support it with secondary and diagnostic ones.
- Primary: active planning days per user over a 28-day window, where a planning day includes a search, save, itinerary edit, or booking click. It counts activity from all entry points, so it measures incremental engagement rather than push-attributed activity, and it moves fast enough to read in a few weeks.
- Secondary: D7/D28 retention, itineraries created or saved per user, itinerary shares per user (the growth loop), and bookings or affiliate revenue per user. Revenue is the real business outcome but is lagging and noisy, so it should not be the OEC.
- Diagnostic only: delivery rate, open rate, time to open, post-open session depth. These explain why an effect happened but never define success.
Open or tap rate is a poor primary metric. It is defined only for treated users, and it counts sessions that would have happened anyway. Compare all users in treatment against all users in control on total activity.
2. Guardrails
Guardrails must not degrade beyond a pre-registered non-inferiority margin (for example, 0.5% relative on retention). Set margins from historical variance and business tolerance, and make sure the test is powered to detect a breach.
- Channel health: OS-level push opt-out rate, in-app unsubscribe rate, and dismiss-without-open rate. Opt-outs are close to permanent, so weight them heavily.
- Churn: uninstall rate and D28 retention.
- Cannibalization: organic (non-push) sessions and total sessions. If push only moves the time of opening, total activity is flat.
- Quality: post-open bounce rate, app-store rating, spam reports, and support tickets.
- Ecosystem: engagement of users who were not targeted but are connected to treated users, for example collaborators receiving shared updates.
- System: crash rate, latency, and push delivery failures.
Quantify the opt-out cost. Suppose planning days rise 2% but opt-outs rise 1 percentage point. Those users lose all future push value, so the long-term net effect may be negative. A long-term holdout (for example 5% of users who never receive the new notification) captures slow effects such as fatigue and decay.
3. Why user-level randomization fails
Sharing violates SUTVA (no interference between units):
- A treated user receives a notification and edits a shared trip.
- Their control-group collaborator sees the change and becomes active.
- Control activity is inflated, so the measured effect is biased toward zero. Notifications triggered by friends' actions can bias it in other directions.
A user-level test therefore estimates neither "everyone gets it" nor "nobody gets it", and the launch decision depends on the global effect.
4. Unit of randomization: graph clusters
Randomize clusters of users in the sharing graph.
- Build a graph where edges represent co-membership in itineraries, shares, and follows, weighted by recent interaction (say, 90 days).
- Partition with community detection (Louvain or Leiden) or balanced graph partitioning, so most edges fall within a cluster. Report the fraction of cut edges; under roughly 10-20% is a reasonable target.
- Assign whole clusters to treatment or control and have each user inherit the cluster's arm.
Most interactions are now between users in the same arm, so the comparison approximates a full rollout versus no rollout.
Alternatives:
- Itinerary/trip-group level: intuitive, but users belong to several trips, causing overlap conflicts.
- Geo level (city or country): clean for global effects but gives very few units and is confounded by seasonality. Better for market-level tests.
5. The cost and how to handle it
Cluster randomization inflates variance by the design effect:
DE = 1 + (m - 1) * ICC
With average cluster size m = 10 and ICC = 0.05, DE is about 1.45, so you need roughly 45% more users for the same power.
Mitigations:
- Stratify clusters by size, region, and past engagement before assignment. Split or cap giant clusters so no single one dominates an arm.
- CUPED (or similar covariate adjustment) using pre-period planning days.
- Correct inference: analyze cluster-level means (size-weighted), or use cluster-robust standard errors or a cluster bootstrap. Naive user-level t-tests understate variance and give false positives.
6. Measuring the interference itself
Run a two-level design: split the population into a cluster-randomized half and a user-randomized half, then compare the two effect estimates. A significant gap proves network effects matter and quantifies the bias of a plain user-level test. Within the cluster arm you can also model effects by exposure, the share of a user's neighbors who are treated.
7. Practical details
- Eligibility and triggering: analyze users who can receive push (installed, permission granted) but keep assignment at the cluster level. If a permission prompt is part of the feature, randomize before it.
- Duration: at least 2-4 weeks to cover weekly cycles and novelty decay; avoid or stratify peak booking seasons.
- Frequency caps: keep identical global caps in both arms so you test the notification, not the volume. Optional extra arms for frequency (for example 1 vs 3 per week) give a dose-response curve.
- Decision rule (pre-registered): launch if the OEC improves with a confidence interval above zero, no guardrail breaches its margin, and the long-term holdout stays healthy.
Common mistakes
- Using CTR or open rate as the success metric.
- Treating opt-outs as just another metric instead of a near-irreversible cost.
- Randomizing by user and ignoring spillover, or randomizing by cluster but analyzing by user.
- Ignoring the design effect when sizing the test.
- Letting one giant cluster land in a single arm.
- Running too short to see novelty fade or fatigue appear.