DEV Community

Cover image for How Product Analytics Shapes User Experience: Funnels, Retention, and Experiments
Mujtaba Tirmizi
Mujtaba Tirmizi

Posted on

How Product Analytics Shapes User Experience: Funnels, Retention, and Experiments

TL;DR

  • Funnels help you see where users succeed (and fail) in their journey.
  • Retention curves are the real test of product-market fit.
  • Experimentation validates what’s signal vs noise.
  • Communicating insights clearly is what turns data into impact.

👋 Hi, I’m Mujtaba. I’ve spent the last several years as a Data Scientist and Manager at Meta, working on user growth, engagement, and large-scale experimentation. In this post, I want to share some of the frameworks that shaped how we approached product analytics — lessons that apply no matter the size of your product.


When I first started working with product analytics, I thought the hardest part would be the math. It turned out the math was the easy part. The real challenge was figuring out which metrics actually matter and then convincing a room full of PMs and engineers what to do about them.

In this post, I’ll break down three of the most important tools I’ve seen for shaping user experience: funnels, retention curves, and experimentation pipelines. And then I’ll close with the underrated skill that makes all of it matter — communication.


1. Funnels: Diagnosing the User Journey in Analytics

Funnels are one of the best ways to understand where users succeed and where they drop off. Your product’s funnel will look different from mine, but the idea is the same: map the journey from discovery → value → repeat use.

A long-term funnel might include:

  • Acquisition (DAU@1): Are people finding the product?
  • New user retention (WAU or DAU@14): Do new users come back shortly after first use?
  • Long-term retention (MAU@365): Do they stick around a year later?

👉 Visual: Acquisition & Retention Funnel

Daily health metrics, on the other hand, are best tracked side by side: MAU, WAU, DAU, sessions per DAU, and time spent per session.

👉 Visual: Daily Engagement Metrics

📌 Tip: Don’t obsess over exact metrics. Your product may need different checkpoints — what matters is having a way to measure acquisition, retention, and daily engagement meaningfully.


2. Retention Curves: The Best Metric for Product-Market Fit

Funnels show you where you are today. Retention curves show you whether your product has a future.

👉 Visual: Retention Curves (Healthy vs Unhealthy)

Why is this so important? A DAU chart can look great for months while acquisition drives growth. But if your cohort retention curves show steep drop-offs, the product doesn’t actually have product-market fit.

👉 Visual: DAU Trend vs Cohort Retention

📊 How to prepare your data for a retention curve

The key is to get your activity data into the right format. At minimum you need:

  • user_id
  • signup_date
  • activity_date

From there, you can calculate what percent of a signup cohort is still active on Day N.

Here’s a simple example in Python with pandas:

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

# Example dataset: 5 users active across different days
data = pd.DataFrame({
    "user_id": np.repeat(np.arange(1, 6), 10),
    "signup_date": pd.to_datetime(np.repeat("2024-01-01", 50)),
    "activity_date": pd.date_range("2024-01-01", periods=10, freq="D").tolist() * 5
})

# Simulate churn by dropping later activity for some users
data = data[data.groupby("user_id").cumcount() < np.random.randint(3, 10)]

# Calculate "days since signup"
data["days_since_signup"] = (data["activity_date"] - data["signup_date"]).dt.days

# Retention: percent of users active on each day
cohort_size = data["user_id"].nunique()
retention = data.groupby("days_since_signup")["user_id"].nunique() / cohort_size

# Plot retention curve
plt.plot(retention.index, retention.values * 100, marker="o")
plt.xlabel("Days Since Signup")
plt.ylabel("% Active Users")
plt.title("Retention Curve Example")
plt.show()
Enter fullscreen mode Exit fullscreen mode

This produces a retention curve showing how quickly your cohort drops off. Replace the dummy dataset with your own user activity logs and you can generate this view directly.

When I was working on large-scale products, I was always surprised how long topline metrics could look “healthy” before retention curves revealed cracks.


3. Experimentation Pipelines: Why A/B Tests Beat Correlations

Funnels and retention curves tell you where to look, but they’re observational. They can show correlations, not causation. That’s where experimentation comes in.

👉 Visual: Control vs Treatment with error bars

A great example is notifications:

  • Observational data: Users with more notifications look more engaged.
  • Experiment: Randomly sending extra notifications doesn’t improve engagement. The correlation was just that more active users naturally generate more notifications.

👉 Visual: Before/After (Notifications Example)

This is why experimentation is exciting but also essential. Observational data helps you prioritize, but experiments tell you what’s real.


4. Communicating Insights: From Data to Decisions

Even the best analysis won’t matter if it isn’t communicated clearly. Translating findings into plain recommendations is one of the most valuable skills in analytics.

I’ve seen too many great analyses get ignored because the results were presented as “p=0.12, CI = [-0.5, 5.1]” instead of “No significant effect. Keep current approach.” The difference may seem small, but it’s what drives product decisions.


Closing Thoughts

Product analytics isn’t about copying someone else’s funnel or retention metric. It’s about:

  • Mapping your user journey in a way that makes sense for your product.
  • Measuring whether you actually have product-market fit.
  • Using experimentation to separate signal from noise.
  • Communicating insights clearly so they drive real action.

When I look back, the biggest lesson for me was this: analytics only matters when it changes what a team does next.

💡 I’d love to hear from you: What funnels or retention metrics do you track in your product? Drop an example in the comments — I’m curious how others measure user value.

Top comments (0)