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:
- Active days with event ties, not active days alone. The alternative is the habit rule taken plainly. On the first two cohorts it gives up ranking power (−4.3 points in October, range −5.9 to −2.7). Over one week, active days can only take 7 values, and 78% of September newcomers tie at one day, so they tie 41 of 100 stayer-leaver pairs. Where they do tell the two apart, they are the sharper number: they rank the stayer higher in 81 of 100 such pairs (78 in October), events in 72 (72). Events win over active days alone because they tie far fewer pairs. Ranking by active days and breaking their ties by events keeps both strengths. Added after the results, it scored 71.5 and 70.7, ahead of events by +2.4 (range +1.9 to +2.9) and +1.1 (+0.5 to +1.7); on the declared third day, 69.0, ahead by +2.0 (+1.3 to +2.7). Ranking well on today's behaviour does not show how the count behaves once a team is asked to move it, which is the habit rule's real worry. Guard it: report beside it the share of new accounts with 50 or more first-week events (0.7% in September) and the automation count, and treat a rise in either as the count being gamed.
- Stars are a warning, not progress. Newcomers whose first act was a star stayed at 1.0% and 1.0%, against 5.2% and 3.5% overall. A prompt that drives stars would raise the count with no sign that it raises staying; what it does to staying needs a controlled test, not this association.
- Find newcomers by account id, not by first appearance. GitHub issues account ids in increasing order. An id above the largest id active the day before belongs to an account created after the newest one seen that day; the cohort takes those first active on the cohort day. It is a proxy for sign-up day. Checked after the results on a random sample: all 43 accounts that GitHub still lists of 50 drawn were created on the cohort day. The alternative, "first event in the last N months", reads months of history per cohort and still counts returning veterans as new, which flatters retention.
- Check automation, and say how small it was. Only 20 and 17 new accounts were bots or scripts by the declared rules. Bursts still exist: September accounts with 50 or more first-week events stayed at 12.6%, below the 16.3% of those with 20 to 49. October went the other way (13.3% against 11.2%), so the guard is a precaution, not a measured effect. They are too few to move the ranking.
- Compare habits within groups of similar activity. Active newcomers do everything more. Creating a repository looks like +3.1 points raw and +1.9 within active-day groups (1, 2 and 3 days, and 4 to 7 pooled).
- Size both onboarding fixes on the same move. Pushing code goes with +2.6 points of week-13 activity within active-day groups, but that is a gap between newcomers who push and those who do not, not a lift for the whole cohort. Move 5 more newcomers in 100 past each step: on the assumed return rate stated below, the second day adds about 0.46 points (0.23 in October, 0.30 in November). A first push adds about 0.13 on the gap within active-day groups and 0.32 on the raw gap (0.15 and 0.24 in October), and only as much of either as pushing caused. The two are not estimated alike: the second-day figure compares newcomers with the same day-0 activity, the push figure newcomers with the same number of active days. Both are associations. On September's figures the second day leads on either push gap. In October the second day's 0.23 and a push's 0.24 on the raw gap are similar in size under different assumptions. So the second day goes first, and the holdout tests it.
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
| First-week number | September score | 95% range | Events minus this | October score | Events minus this, October |
|---|---|---|---|---|---|
| Events | 69.1 | 67.5 to 70.7 | 69.6 | ||
| Active days | 68.3 | 66.7 to 69.7 | +0.9 (−0.3 to +2.2) | 65.4 | +4.3 (+2.7 to +5.9) |
| Repositories acted on | 63.2 | 61.7 to 64.6 | +5.9 (+4.5 to +7.3) | 61.5 | +8.1 (+6.3 to +9.8) |
| Work on others' repositories | 52.4 | 51.5 to 53.4 | +16.7 (+14.9 to +18.3) | 51.3 | +18.4 (+16.3 to +20.6) |
| Stars given | 45.2 | 44.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
| Events in week 1 | September accounts | Still active | October accounts | Still active |
|---|---|---|---|---|
| 1 | 7,413 | 2.2% | 7,322 | 1.3% |
| 2 to 4 | 9,018 | 4.3% | 7,493 | 3.1% |
| 5 to 9 | 3,099 | 9.3% | 2,679 | 6.0% |
| 10 to 19 | 1,433 | 12.1% | 1,542 | 7.1% |
| 20 to 49 | 673 | 16.3% | 717 | 11.2% |
| 50+ | 159 | 12.6% | 143 | 13.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
| Step | September | Share | October | Share |
|---|---|---|---|---|
| Active on day 0 | 21,795 | 100.0% | 19,896 | 100.0% |
| Active on a second day in week 1 | 4,744 | 21.8% | 4,244 | 21.3% |
| Activated | 4,495 | 20.6% | 3,949 | 19.8% |
| Activated and still active in week 13 | 586 | 2.7% | 336 | 1.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
| Did this in week 1 | Share of newcomers | Still active if so | If not | Raw difference | Within active-day groups | October, within groups |
|---|---|---|---|---|---|---|
| Pushed code to an own repository | 31% | 9.7% | 3.2% | +6.4 | +2.6 | +3.0 |
| Created a repository | 71% | 6.1% | 3.0% | +3.1 | +1.9 | +1.9 |
| Opened a pull request on someone else's repository | 1.5% | 10.0% | 5.2% | +4.9 | +0.5 | +0.1 |
| Forked a repository | 12% | 5.4% | 5.2% | +0.2 | −0.2 | −1.1 |
| Opened an issue or commented on someone else's repository | 3.6% | 4.2% | 5.3% | −1.0 | −1.7 | −0.8 |
| Starred a repository | 16% | 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.
| First-week number | Score out of 100 | 95% range |
|---|---|---|
| Active days, ties broken by events | 69.0 | 66.9 to 71.2 |
| Events without stars | 68.0 | 66.0 to 70.0 |
| Events | 67.0 | 65.0 to 69.1 |
| Active days | 65.9 | 63.8 to 67.9 |
| Stars given | 48.2 | 47.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:
- Held. Days then events beats the event count, with its 95% range above zero.
- Held. The event count scores at least as well as active days.
- Held. The count without stars beats the event count on the declared outcome.
- Held. Stars given score below 50 out of 100, with the whole range below 50.
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.
| Signed up (UTC) | September, second calendar day | September, 24 to 48 hours after | October, 24 to 48 hours after | November, 24 to 48 hours after |
|---|---|---|---|---|
| 00:00 to 03:59 | 18.7% | 9.2% | 6.8% | 9.7% |
| 04:00 to 07:59 | 19.3% | 8.6% | 11.0% | 6.9% |
| 08:00 to 11:59 | 21.2% | 8.8% | 9.2% | 10.1% |
| 12:00 to 15:59 | 21.3% | 9.2% | 8.3% | 10.5% |
| 16:00 to 19:59 | 24.1% | 8.2% | 8.8% | 9.0% |
| 20:00 to 23:59 | 26.9% | 8.1% | 9.2% | 8.4% |
| All | 21.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.
- Low end above zero: ship. A lift smaller than planned still ships, on the assumption that the prompt costs little to keep.
- Low end at or below zero, high end below 0.23: stop. The planned lift is ruled out. A lift just below it needs about the same test (0.22 points: 112,651 accounts in each half, against 101,782 for 0.23); half the planned lift needs about 400,837.
- Low end at or below zero, high end at 0.23 or above: the test was too small to decide; run it longer or stop.
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
- Four of the seven predictions declared before the data was read missed. Active days were expected to beat events by at least 3 points out of 100 (0.03 of AUC); they trailed by 0.9 and 4.3. The top tenth by active days was expected to stay more than the top tenth by events; it stayed at 13.0% against 13.4%. Work on other people's repositories was expected to be the strongest habit; pushing to an own repository was. Week-13 activity was expected between 10% and 30%; it was 5.2%. The exact wording is in the predictions as declared.
- The top tenth by active days could not be a tenth: 22% of newcomers tie at 2 or more days, so that comparison says little.
- The planned route was the archive's copy in a cloud warehouse, over whole months. The credential at hand could read table sizes but not run queries. So the study streamed the hourly files and read 15 days per cohort. A cohort is one day of new accounts, not a month.
- Only public activity is visible. A newcomer who moved to private repositories looks like one who left.
- The id band is a proxy for sign-up day. It can take in accounts created the day before, after the newest one seen active that day, and it leaves out accounts that sign up on the cohort day but act later. Added after the results: of 50 accounts drawn at random, 25 from each cohort, all 43 that GitHub's public API still lists were created on the cohort day; 7 no longer exist. So the first error looks rare; the second is not measured.
- The combined number, the count without stars, the tie split, the stars-included outcome and the metric tree were chosen after both cohorts were scored. None changes a declared score. The third cohort, declared before it was read, confirmed the combined number and not the count without stars; the rest are not confirmed.
- The 0.46 points for the second day rests on an assumed move and return rate, not a tested effect. The holdout and the 20-day cohort check have not been run.
- The bars for changing the call were uneven. The third day's protocol switched to days then events if its gap over events had its 95% range above zero, while active days needed a gap of 1 point (0.01 of AUC) or more as well, and going back to events needs 1 point. The number favoured after two days got the lowest bar. Its +2.0 clears 1 point, so the call is the same; a next protocol should set one minimum for every switch.