Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Public data

Choosing a North Star metric for GitHub newcomers

On three sign-up days, active days with ties broken by events ranked stayers better than events; active days alone did not, and stars fell below a coin toss.

The detail behind the summary. Every score is out of 100 pairs, a tie counting half.

In plain words

Picture a newcomer dashboard whose top number counts actions per new user. Sooner or later someone says it is the wrong number. Actions reward bursts and scripts, so count the days people come back instead. That sounds right, and it would mean rebuilding the dashboard and every target tied to it.

GitHub lets anyone test it in public. Every public action is archived by the hour: pushes, pull requests, issues, comments, stars. New accounts arrive every day, and a few are still around three months later. So the question is simple. Which first-week number best separates the newcomers who stay from those who leave?

The answer: count the days people come back, and break ties by actions. Active days alone did no better than actions, because most newcomers are active on one day only and so tie. Ranked by days first and actions second, they sorted best on three days: 21,795 new accounts from September, 19,896 from October and 19,162 from November. The November day was set out before its data was read. Stars are the one action that pointed the wrong way: newcomers who gave more stars were less likely to stay. Leaving them out of the count did not pass its test on the third day.

The data stands in for the event log of any product with sign-ups: a developer tool, a collaboration app, a marketplace. It is public GitHub activity, aggregated, and the page names no account and no repository.

North Star metric
The one number a product team agrees to grow, because it predicts the outcome the business needs. Here that outcome is a newcomer still being active three months on.
Cohort
The new accounts of one day, followed together. September is 2024-09-10, October is 2024-10-15, November is 2024-11-19.
Days then events
Rank newcomers by active days in week 1, and among those with the same number of days, by events. The combined number, for short.
Week 13
Days 84 to 90 after the account's first public event. Still active means at least one public action other than a star in that week.
Active day
A calendar day (UTC) with at least one public event.
Ranking score (AUC)
Take a newcomer who stayed and one who left. The number scores a point if it ranks the stayer higher and half a point if the two tie. Out of 100 such pairs, 50 is a coin toss and 100 is perfect. Every score and difference on these pages is on this scale, in points out of 100; the AUC is the same number divided by 100.
95% range
Draw the accounts again at random, with replacement, 1,000 times and score each draw. The range holds the middle 95 of every 100 results. A difference whose range includes zero could be no difference at all.
Automation
Accounts whose login ends in [bot], or with over 100 events in one hour or over 1,000 in the first week. They are set aside before scoring.

The call in full

Rank newcomers by first-week active days, with events breaking ties: that ranking is the newcomer North Star. Its dashboard number is the share of newcomers active on two or more days in week one, with the average events of one-day newcomers beneath it. Set no target on either until it moves with retention across sign-up days. What would change it: go back to the event count if, on a further cohort, it beats this number by 1 point out of 100 or more, with the 95% range of the difference above zero. Take stars out only if the count without stars beats the event count with its range above zero on both outcomes, with and without stars counted as staying. Each check needs the same queries on one more day of new accounts, followed through week 13: 15 days of hourly files, about 36 GB read, no platform cost.

How the call changed. On the first two days the declared call held: events beat active days, which trailed by 0.9 and 4.3 points. Checks added after those results found that ranking by active days and breaking ties by events did better on both, but both days had chosen it. So a third day was declared before any query on it, in the next cohort's protocol, with the rule: switch if this number beats the event count with its range above zero. On 2024-11-19 it did, by +2.0 points (range +1.3 to +2.7). Active days alone again did not beat events (−1.1, range −2.8 to +0.4). The scores on the first two days and the predictions declared for them are unchanged. Added after the results: the count without stars was turned down for failing on the outcome that counts stars too, so days then events was given the same test. It passes on all three days: +2.4 (range +1.9 to +2.9), +1.2 (+0.6 to +1.7) and +2.2 (+1.5 to +2.8).

Stars: they stay in the count. Stars given ranked stayers worse than a coin toss on both days of accounts (45 and 47), as predicted before the data was read. The event count without stars, a version chosen after seeing both cohorts, ranked stayers a little better: a gain of +1.7 points (range +1.4 to +1.9) and +0.7 (range +0.1 to +1.2). Added after the results: against the outcome that counts stars too, the gain is +1.2 (range +0.7 to +1.6) and −0.4 (range −1.1 to +0.3), above zero in September only, so part of the gain may come from an outcome that ignores stars. Both cohorts informed that choice, so neither confirms it. On the declared third day the gain held on the declared outcome (+1.0, range +0.6 to +1.4) but not on the outcome that counts stars too (−0.4, range −1.2 to +0.3), so stars stay in the count. Added after the results: on the outcome that counts stars too, stars alone score 45.9 and 48.5 on the first two days, below a coin toss, and 49.9 on the third (range 48.7 to 51.1), a coin toss.

The number on the dashboard. A ranking sorts the newcomers of one day; a dashboard needs a number per day. The ranking's first key gives it: the share of newcomers active on two or more days in week one, 22%, 21% and 22% on the three days. Its tie-break gives the second line: the average events of newcomers active on one day only, 2.71, 2.76 and 2.89. The share is the complement of the biggest drop in the funnel. It barely moved while staying went 5.2%, 3.5% and 3.8%, so it is not yet a target: three days cannot show whether a higher share means more newcomers stay.

Added after the results: the share is a per-day summary of the ranking, not the ranking. Scored as a yes-or-no cut on the same outcome, it ranks stayers at 67.1, 64.3 and 64.7, below the event count's 69.1, 69.6 and 67.0, because a cut cannot order newcomers on the same side of it. A per-day number from the event count is a cut too: its best single cut, chosen on each day after the fact, scores 65.4, 65.1 and 64.1. The share minus that cut is +1.6 (range +0.4 to +2.9), −0.9 (−2.6 to +0.9) and +0.6 (−1.1 to +2.2): no single cut of the event count does clearly better on any day (top-number-check.json).

This stands in for a decision every product analytics lead meets: which number goes at the top of the growth dashboard, and what the onboarding team is asked to move. The hard parts, each with the call, the alternative and what the wrong choice costs:

The evidence

September: the 21,795 accounts of the new-id band first active on 2024-09-10. October: 19,896 from 2024-10-15. Automation set aside in both. The five candidates, the outcome and the scoring were declared before any cohort query.

Which first-week number predicts week 13

Candidate numbers, both cohorts
First-week numberSeptember score95% rangeEvents minus thisOctober scoreEvents minus this, October
Events69.167.5 to 70.769.6
Active days68.366.7 to 69.7+0.9 (−0.3 to +2.2)65.4+4.3 (+2.7 to +5.9)
Repositories acted on63.261.7 to 64.6+5.9 (+4.5 to +7.3)61.5+8.1 (+6.3 to +9.8)
Work on others' repositories52.451.5 to 53.4+16.7 (+14.9 to +18.3)51.3+18.4 (+16.3 to +20.6)
Stars given45.244.4 to 46.0+23.9 (+22.2 to +25.6)46.9+22.7 (+20.7 to +24.9)

Scores are out of 100 pairs, a tie counting half; differences are in points on that scale.

September cannot tell events and active days apart (active days −0.9, range −2.2 to +0.3). October can: active days −4.3, range −5.9 to −2.7. Added after the results: events without stars score 70.8 and 70.4, ahead of events by +1.7 (+1.4 to +1.9) and +0.7 (+0.1 to +1.2). Work on other people's repositories, the collaboration number, ranks barely better than chance (52.4 and 51.3): only 1.5% of newcomers opened a pull request on someone else's repository in week one.

Ties matter for the coarse numbers, and the score counts each as half. Added after the results, the September pairs split: events rank the stayer higher in 64 of 100 and tie in 11; active days rank the stayer higher in 48 and tie in 41; stars given rank the stayer higher in 6, lower in 15 and tie in 79, because most newcomers give no star. Where stars do differ, the stayer has fewer.

Where the event count misleads, and how little

Week-13 activity by events in week 1
Events in week 1September accountsStill activeOctober accountsStill active
17,4132.2%7,3221.3%
2 to 49,0184.3%7,4933.1%
5 to 93,0999.3%2,6796.0%
10 to 191,43312.1%1,5427.1%
20 to 4967316.3%71711.2%
50+15912.6%14313.3%

September accounts active on one day only, with 20 or more events, stayed at 6.7% (119 accounts). Accounts active on 4 or more days with 10 or fewer events stayed at 30.4% (171). The habit rule is right about these two groups. Together they are 1.3% of newcomers, too few to change the ranking.

The funnel, and what fixing its biggest drop is worth

Funnel, both cohorts
StepSeptemberShareOctoberShare
Active on day 021,795100.0%19,896100.0%
Active on a second day in week 14,74421.8%4,24421.3%
Activated4,49520.6%3,94919.8%
Activated and still active in week 135862.7%3361.7%

17,051 of 21,795 September newcomers (78%) were active on day 0 only. Suppose 5 more in 100 came back for a second day, and stayed at the rate of second-day newcomers with the same day-0 activity. Week-13 activity would rise from 5.2% to 5.7%: 100 more active accounts a cohort. That is an assumption, not a tested effect, and probably generous: newcomers a nudge brings back are likely less committed than those who came back alone.

The funnel's last step counts activated newcomers only. Of the 1,140 September newcomers still active in week 13, 554 had not activated (359 of 695 in October). The activation rule, two active days with one making event, misses about half the people who stay, so it is not a target to manage to.

What the stayers did in week one

First-week habits and week-13 activity, September cohort
Did this in week 1Share of newcomersStill active if soIf notRaw differenceWithin active-day groupsOctober, within groups
Pushed code to an own repository31%9.7%3.2%+6.4+2.6+3.0
Created a repository71%6.1%3.0%+3.1+1.9+1.9
Opened a pull request on someone else's repository1.5%10.0%5.2%+4.9+0.5+0.1
Forked a repository12%5.4%5.2%+0.2−0.2−1.1
Opened an issue or commented on someone else's repository3.6%4.2%5.3%−1.0−1.7−0.8
Starred a repository16%2.2%5.8%−3.6−3.0−1.8

Each habit is compared within four active-day groups (1, 2 and 3 days, and 4 to 7 pooled), averaged by group size; a group counts only with at least 20 accounts on each side, and all four counted for every habit on both cohorts. These are associations. A newcomer who pushes code may already be the kind who stays, and a prompt to push would not make them so. The test in "What comes next" separates the two.

The second cohort

A result from one day of sign-ups could belong to that day. The same queries, unchanged, ran on a second cohort declared with the first: the new-id band first active on 2024-10-15, five weeks later.

It answered more sharply than the first. Events ranked the stayers best of the five declared candidates, at 70 out of 100. Active days came second at 65, and this time the interval of the gap (−5.9 to −2.7) excludes zero. Stars given again came last, below a coin toss, at 47. Pushing code to an own repository was again the strongest habit, at +3.0 points within active-day groups. And 79% of newcomers again never came back for a second day.

Overall week-13 activity was lower: 3.5% against 5.2%, while the average first-week count rose from 4.83 to 5.02 events. The average count of active days barely moved (1.34 and 1.35), so the gap gives no reason to prefer active days. The evidence ranks people within a cohort; it does not show that the cohort average moves with retention, and on these two days the two moved apart. Why is not tested here. This cohort's week 13 falls on 7 to 13 January, and one of its hourly files is short (1 of 168, flagged by the dbt check); how many of these newcomers' week-13 events it lost is not measured. The ranking is the result that carries over; the level is not compared.

The third cohort, declared before it was read

After the first two cohorts were scored, a protocol for a third was written before any query on it: the new-id band first active on 2024-11-19, the same five weeks after October, with the five numbers to score, the rules that would change the call and four predictions. The same queries ran on it unchanged: 19,162 newcomers, 3.8% still active in week 13.

The third cohort, scored as declared
First-week numberScore out of 10095% range
Active days, ties broken by events69.066.9 to 71.2
Events without stars68.066.0 to 70.0
Events67.065.0 to 69.1
Active days65.963.8 to 67.9
Stars given48.247.2 to 49.3

Against the event count: active days −1.1 (range −2.8 to +0.4); active days with ties broken by events +2.0 (+1.3 to +2.7); the count without stars +1.0 (+0.6 to +1.4), and −0.4 (−1.2 to +0.3) on the outcome that counts stars too.

The declared rules say: switch to active days with ties broken by events. All four predictions held, as written in the protocol:

Habits, within active-day groups as before: creating a repository edged out pushing code to an own repository on this day (+1.70 against +1.66 points), where pushing had led on the first two. The first-push sizing uses the first two days only.

The average first-week count was 5.34 events on this day, against 4.83 and 5.02 on the first two; the average of active days was 1.36, against 1.34 and 1.35. The same dbt tests passed on this cohort as on the first two.

What comes next

The next decision: where onboarding effort goes. Moving 5 more newcomers in 100 past the second day is worth about 0.46 points of week-13 activity in September on an assumed return rate (0.23 in October, 0.30 in November); moving them to a first push, about 0.13 to 0.32 in September. The second day goes first: it leads on September's figures. In October the second day (0.23) and a push (0.15 to 0.24) are similar in size under different assumptions, and the holdout tests the second day.

Where the 5 in 100 comes from. It is an assumption, and the data does not show it is reachable. Added after the results: the share back on a second calendar day runs from 18.7% to 26.9% across sign-up hours in September, but most of that is the clock, since a late sign-up reaches the next day sooner. Measured as a public event 24 to 48 hours after the first, the same wait for everyone, it runs only 8.1% to 9.2% (6.8% to 11.0% in October, 6.9% to 10.5% in November). It differs more by first action (newcomers whose first act was a star came back least: 2.1% in September), but that is who they are, not something a prompt changes. So the holdout's first read, the share back after one week, is what tells whether a 5-point move is possible. Value at other moves and return rates: at 2 in 100, about 0.09 to 0.18 points across the three days; if those brought back gain half as much as those who came back unprompted, half of each figure; if they gain nothing, zero.

Back on a second day by sign-up hour: calendar day against the same elapsed time
Signed up (UTC)September, second calendar daySeptember, 24 to 48 hours afterOctober, 24 to 48 hours afterNovember, 24 to 48 hours after
00:00 to 03:5918.7%9.2%6.8%9.7%
04:00 to 07:5919.3%8.6%11.0%6.9%
08:00 to 11:5921.2%8.8%9.2%10.1%
12:00 to 15:5921.3%9.2%8.3%10.5%
16:00 to 19:5924.1%8.2%8.8%9.0%
20:00 to 23:5926.9%8.1%9.2%8.4%
All21.8%8.7%8.9%9.1%

The test: a holdout at the product. Prompt half of new accounts to come back on a second day, leave half alone, and read two outcomes. First, the share back on a second day: a 5-point rise from 22% needs about 1,153 accounts in each half and reads after one week. Second, week-13 activity, sized on the smallest of the three days' figures: October's 0.23-point lift from a 3.5% base, with 80% power at 5% significance, needs about 101,782 accounts in each half, about 11 days of new accounts at that day's size. Sized on September's 0.46, it would need 38,629.

The decision rule: the week-13 lift decides. The share back on a second day is a secondary outcome of behaviour: it shows whether more newcomers came back, not whether they saw the prompt, which needs its own measure of delivery or exposure. It does not stop the test, since a prompt could change later activity without moving it. Read the 95% interval of the week-13 lift. It falls in exactly one of three cases.

The push prompt comes after it. Sized on 0.13 points, September's gap within active-day groups, it needs about 479,851 accounts in each half.

The cohort check: before the average goes on the dashboard as a target, check that it moves with retention from one sign-up day to the next. Score 20 or more cohort days the same way and compare each day's average first-week count with its week-13 activity; on the three days here they did not line up. Each day is about 36 GB of hourly files and no platform cost. Until then, show the median beside the average: 2 events on the first two days, against averages of 4.83 and 5.02 pulled up by a few heavy accounts.

What went wrong or was missed