In this article
  1. Before you start
  2. Why interviewers ask this
  3. Measuring a UI feature's engagement from first principles
  4. The Staff-level answer
  5. The rubric
  6. Three variants of this question
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

You can read this page with no statistics background; each term is explained where it first appears.

The same logic applies when you are evaluating large language model (LLM) features, and an A/B test is one kind of online evaluation.

Why interviewers ask this

The question separates candidates who can turn a vague goal into a decision from candidates who list metrics. "Engagement" means nothing until you say which user behavior, in which group, over which time. Interviewers use the question to see whether you ask what the feature is for, whether you know a comparison needs randomization, and whether you know a result can mislead.

A weak answer says "track clicks on the new feature and see if they go up." A strong answer names a goal-based primary metric, a control group, guardrails and a sample size. A Staff-level answer adds what goes wrong: peeking at results early, a broken traffic split, and a short-lived novelty bump. Reported in interviews at AI labs and large tech companies, the question comes with a product the interviewer names; the structure below holds for any product.

Measuring a UI feature's engagement from first principles

Primary metric
A primary metric is the single measure that decides whether a feature worked, chosen from the product goal before any data is viewed, so the experiment has one clear success test instead of many chances to find a lucky result.

In plain words

Imagine you add a new button to a shop and sales rise the next week. Maybe the button worked. Maybe it was payday. A fair test shows the button to a random half of shoppers and not to the other half, in the same week. Any difference then comes from the button.

The analogy breaks in one place: shoppers differ a lot from each other, so a small difference needs many shoppers before you can trust it. Precisely, the answer is a randomized experiment on one metric chosen from the goal, sized and timed in advance. Everything below follows from those few ideas: a fair comparison, one metric, a fixed size and a single reading.

A sound feature test fixes its design before it reads resultsFlow of four stages: choose a primary metric from the goal, randomize users and size the test, read once after a split check, then report the lift with an interval and guardrails.Primarymetricfrom the goalRandomizeand sizefixed beforelaunchRead onceafter splitcheckReportlift, interval,guardrailsDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-would-you-measure-whether-a-new-ui-feature-is-improving.html

A sound answer fixes the metric and the sample size before launch and reads the result once.CC BY 4.0 — source: How would you measure whether a new UI feature is improving engagement?
Step-by-step description
  1. Choose the primary metric from the goal.
  2. Randomize users and size the test.
  3. Check the split, then read at the planned time.
  4. Give the lift with an interval and guardrails.
  • The primary metric is chosen from the product goal.
  • Users are randomized and the sample size is fixed before launch.
  • The result is read once after the traffic split is checked.
  • The lift is reported with an interval and the guardrails are read.

Step 1: Choose the primary metric from the goal, not from the log

A primary metric is the one number that decides whether the feature worked, and you choose it from the product goal before you look at any data. The Google Research paper on user-centered metrics for web applications describes a process for mapping product goals to metrics. Rodden, Hutchinson and Fu (CHI 2010) introduce the Happiness, Engagement, Adoption, Retention and Task success (HEART) framework, which works from goals, to signals, to metrics. Illustrative examples for a UI feature: happiness = a survey rating; engagement = actions per active user per week; adoption = the share of active users who use the feature; retention = the 7-day return rate; task success = the share of started tasks that finish.

Ask what the feature is for. If it is a faster way to finish a task, the metric is tasks completed per active user, not clicks on the feature, since clicks can rise while task success falls. Write the metric as a proportion with a clear window and add two or three guardrails. Next you decide how many users the test needs.

Step 2: Randomize users and size the test before launch

Randomization assigns whole users, not page views, to control or treatment, so one person always sees one version. Sample size comes from four choices: the baseline rate, the smallest lift worth detecting, the false positive rate (usually 5%, as in Kohavi, Tang and Xu, 2020) and power (usually 80%, the chance of detecting a real lift of that size).

In an illustrative case, the baseline rate is 30% and the smallest lift worth shipping is 1.5 points, to 31.5%. A two-proportion power calculation then needs 14,853 per group, 29,706 in total.1 If 12,000 eligible visitors arrive each week, that is three weeks, which also covers whole weekly cycles.1 Fix these numbers before launch.

Step 3: Look once, at the planned time, after checking the split

Peeking breaks the false positive rate. In a simulation of an experiment with no real effect, one planned look at the end declares a winner 4.84% of the time, close to the intended 5%; five looks, stopping at the first significant one, do so 13.92% of the time.1

Peeking five times nearly triples the false alarm rateBar chart of simulated experiments with no real effect: one planned look at the end gives a false positive 4.84 percent of the time, stopping at the first significant of five looks gives 13.92 percent.False positive rate (%)05101520One lookFive looksReading plan4.8413.92Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/how-would-you-measure-whether-a-new-ui-feature-is-improving.html
Checking five times and stopping at the first significant result nearly triples the false alarm rate.CC BY 4.0 — source: How would you measure whether a new UI feature is improving engagement?
Text description of the diagram
  • One planned look at the end gives a false positive 4.84% of the time.
  • Stopping at the first significant of five looks gives a false positive 13.92% of the time.

Before reading any effect, check the split. Suppose the plan was 50/50 and the data show 50,000 in control and 51,200 in treatment, against an expected 50,600 in each. A chi-square check gives a statistic of 14.229 and a p-value of 0.0002, so the split is suspect and the result should not be trusted until the cause is found.1 That failure is sample ratio mismatch. Because the check runs on every experiment, practitioners use a strict threshold such as p < 0.001 rather than 0.05, as in Fabijan et al. (Knowledge Discovery and Data Mining (KDD) 2019); the book by Kohavi, Tang and Xu also covers this check.

Step 4: Report the lift with an interval, and read the guardrails

The lift is the treatment rate minus the control rate, reported with a confidence interval, a range of effects consistent with the data. Say each group holds 15,000 people. Control has 4,500 successes (30.0%) and treatment 4,740 (31.6%): a lift of 1.6 points, a p-value of 0.0027 and an interval from 0.555 to 2.645 points.1

Now read the guardrail. Complaints go from 2.0% to 2.2%, a difference of 0.2 points with an interval from -0.125 to 0.525 and a p-value of 0.2271.1 That is not proof of safety: the interval still allows a harmful rise. The decision weighs a likely gain against a possible cost, with the goal in mind.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

The Staff-level answer

Interviewer asks

How would you measure whether a new UI feature is improving engagement?

A strong answer

First I ask what the feature is for, and I pick one primary metric from that goal, for example task completion per weekly active user, not clicks on the feature. I add guardrails such as complaints and load time. Then I randomize at the user level, size the test from the baseline and the smallest lift worth shipping, and fix the run length in whole weeks. I check the traffic split first, read the result once at the planned time, and report the lift with an interval. If a gain fades, I plot the effect over time and compare new users with existing ones to separate novelty from real change.

What makes this Staff-level: it ties the metric to the goal, commits to the design before launch, and names the three ways the result can mislead: peeking, a broken split and novelty.

The rubric

A strong answer shows a goal-based metric and a planned design; a Staff answer adds how the result can mislead and what to do about it.
DimensionWeak answerStrong answerStaff answer
MetricCounts clicks on the featureOne primary metric mapped from the goalPrimary metric plus guardrails, with a reason for each
ComparisonCompares before and after launchRandomized control groupRandomizes by user; checks the split before reading results
Sample and timingRuns "until it looks good"States a sample size and durationFixes both up front; covers full weekly cycles
Reading the resultShips if p is below 0.05Reports lift with an intervalNames peeking and novelty, and what the interval still allows
CommunicationLists metricsGives a clear order of stepsEnds with a decision rule agreed in advance

Three variants of this question

What if you cannot randomize users?

Say so and name the weaker design: difference-in-differences (before and after, with a comparison group), switchback tests (alternating the feature on and off over time) or geo or cluster randomization (assigning whole regions or groups), and state that the result carries less certainty. Randomize whenever the product allows it, because it is the only design that removes selection bias by construction.

What if engagement rises but another metric drops?

Return to the product goal. A rise in the primary metric with a guardrail breach is a trade-off you present with numbers and intervals, not a win to ship quietly.

What if the experiment has too few users?

Compute what lift you could detect with the users you have, and tell the interviewer. If that lift is larger than any realistic effect, run longer, use a more sensitive metric or accept that the test cannot decide.

Common mistakes

  • "I'd track clicks on the new feature." (wrong) Clicks show curiosity, not goal progress. (right) "I'd choose the metric from the goal, such as task completion per active user."
  • "It's significant after two days, so we ship." (wrong) Early stops inflate false positives. (right) "I fixed the sample size and run length before launch and read the result once."
  • "Engagement went up after launch, so the feature worked." (wrong) Time itself changed. (right) "I compare to a randomized control running at the same time."
  • "p is above 0.05, so there's no harm." (wrong) A wide interval can still hide harm. (right) "I read the interval on each guardrail, not just the p-value."

Follow-up questions

Why not just compare engagement before and after the launch?

Because everything else changes with time: season, marketing, other releases. A concurrent control group experiences the same changes, so the difference isolates the feature.

How do you pick the primary metric for engagement?

Start from what the feature is meant to achieve and choose the behavior that shows it, as the Google Research paper recommends for mapping goals to metrics. Pick one primary metric so there is one decision rule.

How long should the experiment run?

Long enough to reach the planned sample size and to cover whole weekly cycles, because weekday and weekend users behave differently. In the Step 2 example that is three weeks.1

What is the novelty effect, and how do you handle it?

The novelty effect is a temporary change in behavior because a feature is new. Change aversion, also called a primacy effect, is the opposite: users first dislike a change, so an early result can look worse than the long-run one. Plot the treatment effect over time to see whether it decays, and compare new users, who never saw the old interface and so have no novelty or change aversion, with existing users.

How do you test a feature powered by a language model?

Add quality and safety measures beside engagement: score outputs with a fixed golden set before launch, consider LLM-as-a-judge for scale, and put guardrails on harmful outputs. The pattern for an internal eval platform that gates every change carries over.

Key takeaways
  • Choose one primary metric from the product goal, not from what is easy to log.
  • Randomize users, size the test from the baseline and the smallest worthwhile lift, and fix the duration up front.
  • Check the traffic split before reading any result, and read the result once.
  • Report the lift with an interval and read every guardrail's interval, not only its p-value.
  • Be ready to name peeking, a broken split and novelty as the three traps.

Sources

  1. Measuring the User Experience on a Large Scale: User-Centered Metrics for Web Applications — Google Research (Rodden, Hutchinson, Fu; CHI 2010), 10 Apr 2010
  2. Diagnosing Sample Ratio Mismatch in Online Controlled Experiments: A Taxonomy and Rules of Thumb for Practitioners (Fabijan et al.) — ACM KDD 2019, 4 Aug 2019
  3. Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing (Kohavi, Tang, Xu) — Cambridge University Press (listing at Blackwell's), 2 Apr 2020