Analytics: funnels, economy events, retention

Measure a Roblox game with Beacon Yard's real analytics code, covering custom, funnel, journey and economy events, the dashboards, retention metrics and the limits that shape what you log.

Tool lesson, about 70 minutes, 12 steps

By the end you can

  • Choose between custom, funnel, journey and economy events, and send each from the server with the right arguments
  • Read Beacon Yard's onboarding funnel and coin economy events, and say what each dashboard chart would show
  • Explain D1, D7 and D30 retention and the limits that keep events cheap and charts readable

Before this: Monetization: products, passes, subscriptions, economy, ProfileStore: the library pros use

1A dashboard with nothing on it

Open Creator Hub's analytics page for a brand-new private experience and every card is empty. No sessions, no retention, no economy. That is expected: AnalyticsService events can only be sent from a live server in a published game, never from the client or from Roblox Studio1. To verify your events before launch, join a published private server through the Roblox client and open View Events on the Economy, Funnel or Custom page for a near real-time list; full charts take up to 24 hours, and the complete dashboard needs more than 10 daily active users and 10 play hours for 7 days in a row23.

So the work of this lesson happens before launch: deciding which questions you will ask, and sending the events that answer them. Nobody can add data about last week afterwards.

You press Play in Studio on a published place, collect coins, and check Creator Hub's Analytics page. Why did no events arrive?

  1. AnalyticsService events are sent only from live servers in a published game, never from Studio
  2. You forgot to turn on Studio access to API services
  3. Charts only update on Mondays
  4. You must pay for the dashboard
Answer

AnalyticsService events are sent only from live servers in a published game, never from Studio. Roblox's docs state that AnalyticsService events can only be sent from the server in published games, never from the client or Studio. Join a published private server in the Roblox client and use View Events to verify them.

Open this step in lesson mode · Link to this step · This confused me

2Four kinds of event

Roblox's AnalyticsService takes four kinds of event, and each has its own dashboard page3.

KindMethodQuestion it answersBeacon Yard example
CustomLogCustomEventHow often does X happen?round_started with the round length
FunnelLogOnboardingFunnelStepEvent, LogFunnelStepEventWhere do players stop in a linear flow?Joined, FirstCoin, StartedDrill, SurvivedDrill, FirstPurchase
JourneyLogJourneyEventWhich branching paths do players take?Not used (Beacon Yard's onboarding is a straight funnel)
EconomyLogEconomyEventWhere does currency come from and go?Coins from a pickup, coins spent on Speed

Every call is made on the server, for a Player, after something really happened. The docs warn to log after a successful operation: an economy event for a purchase that failed makes the charts lie4.

Match each question to the kind of event.

  1. How many players got as far as surviving a drill?
  2. How many coins entered the game from pickups this week?
  3. How long was the average round?
  4. Which shop item takes the most coins out?
Answer

How many players got as far as surviving a drill?: Funnel event; How many coins entered the game from pickups this week?: Economy event; How long was the average round?: Custom event with a value; Which shop item takes the most coins out?: Economy event. Funnels show drop-off between ordered steps. Economy events track a named currency as a source or a sink. Custom events count anything else, with an optional number.

Open this step in lesson mode · Link to this step · This confused me

3Custom events

LogCustomEvent(player, name, value?) counts an event and, if you pass a value, sums, averages and bounds it. At m06 the game logged round_started with the round length. A game can have up to 100 custom event names, and the docs advise custom fields instead of new names whenever you can, because the limit on names is much tighter5.

function Analytics.log(player: Player, eventName: string, value: number?)
	safely(function()
		AnalyticsService:LogCustomEvent(player, eventName, value)
	end)
Figure 3.1

Notice what is not here: a loop. One event per round, per purchase or per defeat is a signal. One per Heartbeat is noise, and it burns the rate limit, which is 120 plus 20 per concurrent user per minute for all AnalyticsService calls4.

Why should you never log a custom event inside a Heartbeat connection?

  1. It would spend the global rate limit in seconds and tell you nothing useful
  2. Heartbeat only runs on the client
  3. Custom events cannot carry numbers
  4. The dashboard refuses events faster than once a day
Answer

It would spend the global rate limit in seconds and tell you nothing useful. Heartbeat runs about 60 times a second. The limit is 120 + 20 × CCU requests a minute, so a handful of players would exhaust it, and the chart would show frames, not behaviour.

Open this step in lesson mode · Link to this step · This confused me

4The onboarding funnel

A funnel is an ordered list of steps. Each player who reaches step 3 should also have reached 1 and 2, and the chart shows how many dropped between each pair. Roblox has a dedicated call for the first-session funnel: LogOnboardingFunnelStepEvent(player, stepNumber, stepName). Step numbers start at 1, a game can have up to 10 funnels with up to 100 steps each, and a saved step expires after 180 days without events6.

Beacon Yard's funnel is five steps, in the order of a new player's first session:

  1. Joined, once the profile has loaded.
  2. FirstCoin, on the first pickup.
  3. StartedDrill, when a drill starts.
  4. SurvivedDrill, when the round returns to Idle and the player is alive.
  5. FirstPurchase, on the first shop buy (Speed or Shield) or the first Coin Pack.
Beacon Yard's five-step onboarding funnelFive ordered boxes from left to right showing Beacon Yard's first-session funnel: Joined, FirstCoin, StartedDrill, SurvivedDrill, and FirstPurchase, each logged once per player.1. Joinedprofile2. Coinfirst pad3. Drillbeacon4. Surviveround end5. Buyfirst item
Figure 4.1. Each step logs once per player; a sharp drop between two neighbours shows what to fix first.

The module logs each step once per player. It saves the furthest step in the profile (onboardingStep), so a returning player does not log Joined again, and a step reached late is not logged at all.

function Analytics.onboarding(player: Player, step: OnboardingStep): boolean
	local index = Analytics.onboardingIndex(step)
	local ok, data = pcall(DataService.get, player)
	if not ok or index <= data.onboardingStep then
		return false
	end
	data.onboardingStep = index
	safely(function()
		AnalyticsService:LogOnboardingFunnelStepEvent(player, index, step)
	end)
	return true
Figure 4.2

A player has onboardingStep = 3. The code calls Analytics.onboarding(player, "FirstCoin"). What happens?

-- ONBOARDING = { Joined, FirstCoin, StartedDrill, SurvivedDrill, FirstPurchase }
local index = Analytics.onboardingIndex("FirstCoin") -- 2
if index <= data.onboardingStep then
	return false
end
  1. It returns false and logs nothing, because step 2 is behind the player's furthest step
  2. It logs step 2 again
  3. It resets the player to step 2
  4. It throws an error
Answer

It returns false and logs nothing, because step 2 is behind the player's furthest step. index <= data.onboardingStep means this step, or a later one, was already reached. The function returns false at once, so the funnel counts each player once per step.

Open this step in lesson mode · Link to this step · This confused me

5Read a funnel

A funnel chart is a column of counts. The useful number is not the total at the end; it is the biggest drop between two steps, because that is where players leave. The numbers below are invented to practise reading one, and are not from a real Beacon Yard launch.

Luau
-- Made-up counts for 1000 new players, in funnel order.
local steps = {
	{ "Joined", 1000 },
	{ "FirstCoin", 800 },
	{ "StartedDrill", 400 },
	{ "SurvivedDrill", 350 },
	{ "FirstPurchase", 250 },
}
 
local worstName, worstKept = "", 2
for i = 2, #steps do
	local kept = steps[i][2] / steps[i - 1][2]
	print(steps[i][1] .. " " .. math.round(kept * 100) .. "%")
	if kept < worstKept then
		worstKept, worstName = kept, steps[i][1]
	end
end
print("biggest drop: " .. worstName)
Figure 5.1. Expected output: FirstCoin 80% StartedDrill 50% SurvivedDrill 88% FirstPurchase 71% biggest drop: StartedDrill

In this made-up data, half of the players who found a coin never started a drill. The fix would be in the game, not the dashboard: the objective text, the beacon sign, a prompt that is easy to see. That is the point of the funnel.

In the made-up data, 800 players got a first coin and 400 started a drill. What would you try first?

  1. Make the way to the beacon clearer for new players, then watch the same step
  2. Raise the Speed price
  3. Remove the FirstPurchase step
  4. Add more coins to the yard
Answer

Make the way to the beacon clearer for new players, then watch the same step. The loss is between FirstCoin and StartedDrill, so the fix belongs there. Change one thing, then watch whether that step's percentage moves.

Open this step in lesson mode · Link to this step · This confused me

6Economy events

An economy event says that a named currency moved. LogEconomyEvent(player, flowType, currency, amount, balanceAfter, transactionType, itemSku?)1. A source puts currency into the game, a sink takes it out. The amount is always positive, and the dashboard shows sinks as negative itself.

At m12-money, CoinService logs every pickup as a source with type Gameplay and item CoinPickup. ShopService logs Speed and Shield as sinks of type Shop. The Coin Pack grants coins as an IAP source. Every call carries the balance after the change, so the dashboard can chart the average balance too.

function Analytics.coinSource(player: Player, amount: number, balance: number, transactionType: string, sku: string)
	safely(function()
		AnalyticsService:LogEconomyEvent(
			player,
			Enum.AnalyticsEconomyFlowType.Source,
			CURRENCY,
			amount,
			balance,
			transactionType,
			sku
		)
	end)
Figure 6.1
Stored dataEconomy events is the store's till roll.
In the pictureIn Roblox
The rollThe economy events on the dashboard
A line for each saleOne LogEconomyEvent per coin in or out
The balance printed on each lineThe balance-after argument

See the whole analogy cast

The economy events are the store's till roll. Every coin that comes in and every coin that goes out gets a line with the new balance. The profile is still the bank: the roll is a record for you to read and cannot restore a lost balance.

Think of it as The store's till roll

Economy events have their own limits: up to 10 currencies, and after 20 distinct transaction types or 100 distinct item SKUs the extras are grouped as "Other"4. That is why Beacon Yard has one currency, Coins, and a handful of SKUs.

Match each coin movement to its flow type and transaction type.

  1. Picking up a coin (+5)
  2. Buying Shield (-40)
  3. Coin Pack paid with Robux (+50)
  4. Surviving a drill (+10)
Answer

Picking up a coin (+5): Source, Gameplay, CoinPickup; Buying Shield (-40): Sink, Shop, Shield; Coin Pack paid with Robux (+50): Source, IAP; Surviving a drill (+10): Source, Gameplay. Coins entering the game are sources: pickups, bonuses and bought packs. Coins leaving are sinks. The transaction type says why: Gameplay for earning, Shop for spending and IAP for a Robux purchase.

Open this step in lesson mode · Link to this step · This confused me

7Limits that shape what you log

Three limits decide how to design events4.

Reference AnalyticsService limits, checked 2026-11-23

Limits reset daily, and the docs say they may change.

120 + 20 × CCU requests per minute
All AnalyticsService calls from the experience together.
3 per event
Filter economy, funnel and custom events. After 8,000 combined values they are grouped as Other.
100
Use fields, not new names, for variants.
10 currencies, 20 types, 100 SKUs
Beyond 20 transaction types or 100 SKUs the extras are grouped as Other.
10 funnels, 100 steps each
A saved step expires after 180 days without events.
90 days
Each event rolls off 90 days after its last data.

Custom fields are how you avoid a new event for every variant. Three fields can carry, say, the item name, the round number and the team, and the dashboard can break any chart down by them. Do not put a player's user id in a field: it has thousands of values and uses up the 8,000 before anything useful does.

You want to chart Speed and Shield sales separately. What is the best way?

  1. One economy event with the item SKU Speed or Shield
  2. A new currency for each item
  3. A new custom event name per item per player
  4. Put the player's user id in custom field 1
Answer

One economy event with the item SKU Speed or Shield. The SKU is built for this and has room for 100 values. A currency per item would hit the 10-currency limit, and user ids would use up the 8,000 field-value budget.

Open this step in lesson mode · Link to this step · This confused me

8Retention: do they come back?

Retention is the share of new players who return. D1 counts players who first played on one day and came back the next. D7 counts those who returned a week later and D30 a month later7. The most recent days on the D7 and D30 charts are empty because the week or the month has not passed yet.

D1 is the first thing to improve, and Roblox's guide names three levers: the core loop, the first-time user experience and performance. Beacon Yard's loop is coins to a drill to a shop, and the onboarding funnel is a map of that first experience. A drop at SurvivedDrill says the loop is too hard; a drop at FirstCoin says the yard did not explain itself.

Luau
-- Made-up cohort: 500 players first played on one day.
local cohort = 500
local returned = { D1 = 200, D7 = 75, D30 = 30 }
for _, day in { "D1", "D7", "D30" } do
	print(day .. " " .. math.round(returned[day] / cohort * 100) .. "%")
end
Figure 8.1. Expected output: D1 40% D7 15% D30 6%

Today is the 27th. The D7 chart shows no value for players who first played on the 24th. Why?

  1. Seven days have not passed since the 24th, so their D7 is not known yet
  2. Those players were banned
  3. D7 only counts weekends
  4. The chart is broken
Answer

Seven days have not passed since the 24th, so their D7 is not known yet. A cohort's D7 value appears seven days after it first played. The latest days of D7 and D30 are always empty.

Retention sits beside two other Creator Hub dashboards: Engagement and Monetization. The Engagement page tracks average session time: total time users spend in your game divided by the number of sessions8. The Monetization Overview page defines four core revenue metrics9:

MetricDefinitionFormula
Conversion ratePercent of daily active users (DAU) who are also paying userspayingUsers / dau * 100
Paying usersDaily active users who purchased a game-related itemCount of buyers that day
ARPPUAverage revenue per paying userrevenue / payingUsers
ARPDAUAverage revenue per daily active userrevenue / dau (also conversion * ARPPU)

Before pressing Run, predict conversion rate, ARPPU and ARPDAU for 2,000 DAU, 80 paying users and 12,000 Robux revenue. For cohort LTV, recommender signals and real benchmarks, continue with The metrics that matter: retention, ARPDAU, conversion, LTV in Module 15.

Luau
-- Made-up daily snapshot for a live Roblox game.
local dau = 2000
local payingUsers = 80
local revenueRobux = 12000
local sessions = 3200
local totalMinutes = 38400
 
local conversionPct = (payingUsers / dau) * 100
local arppu = revenueRobux / payingUsers
local arpdau = revenueRobux / dau
local avgSessionMin = totalMinutes / sessions
 
print(string.format("Conversion %.1f%%", conversionPct))
print(string.format("ARPPU %.0f Robux", arppu))
print(string.format("ARPDAU %.2f Robux", arpdau))
print(string.format("Avg session %.1f min", avgSessionMin))
Figure 8.2. Expected output: Conversion 4.0% ARPPU 150 Robux ARPDAU 6.00 Robux Avg session 12.0 min

On another day, 1,000 daily active users produce 25 paying users who spend 5,000 Robux in total. What is ARPDAU in Robux?

Answer

5 Robux. 5,000 Robux / 1,000 DAU = 5 Robux ARPDAU. ARPPU is 5,000 / 25 = 200 Robux, and 2.5% conversion times 200 Robux gives the same 5 Robux ARPDAU.

Open this step in lesson mode · Link to this step · This confused me

9What else studios use

Stored dataRemember: Economy events is the store's till roll.

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Creator Hub analyticsBuilt-in dashboards for engagement, retention, monetization, funnels and economy, plus custom dashboards.Always; it needs no extra setup and costs nothing.Limited to the documented events and fields; data rolls off after 90 days.
Custom dashboards and InsightsYour own charts built from the same events, and guidance from Roblox on what to improve.A live game with several people reading numbers.Still limited to what you logged.
Experiments and ConfigsA/B test a change on part of your players and change values without a restart.Tuning prices, rewards and events.Needs enough players for a result.
Your own backend via HttpService or Open CloudSend events to a warehouse or dashboard you control.Large studios with their own data team and questions the built-in tools cannot answer.You build, secure and pay for it; HttpService has its own limits.
Where does it break?“The store's till roll” is a good picture of economy events. Where does it stop being true?

It breaks here. A till roll only records what happened; it cannot restore a lost balance, which lives in the profile.

The true model. LogEconomyEvent records a source or sink of a named currency with the balance after it. Analytics events are aggregated for charts and are not a backup of player data.

A bad deploy wipes some players' coins. Can the economy events restore them?

  1. No: they are aggregated charts, not a backup; restore from DataStore versions instead
  2. Yes, replay the events
  3. Yes, Creator Hub has a restore button for balances
  4. Only for the last day
Answer

No: they are aggregated charts, not a backup; restore from DataStore versions instead. The profile is the balance, and DataStores keep earlier versions you can restore. Events are for reading trends, not for rebuilding accounts.

Open this step in lesson mode · Link to this step · This confused me

10Build along: read your own events

Retiring the analogy

You no longer need “the store's till roll”. LogEconomyEvent records a source or sink of a named currency with the balance after it. Analytics events are aggregated for charts and are not a backup of player data.

  • src/server/Analytics.luau
  • src/server/CoinService.luau
  • src/server/ShopService.luau
  • src/server/DataMigration.luau
  1. Open the m12-money code in Studio and play. Collect a coin and buy Shield to confirm your code calls Analytics cleanly. Studio itself does not send analytics events to Creator Hub, and in an unpublished place you will see the module's one warning while the yard keeps running.

    You should see Output shows no script errors (or one warning if the place is unpublished).

  2. Read DataMigration.luau and Analytics.onboarding. Find where onboardingStep is saved, and why a second FirstCoin never logs.

    You should see The profile has an onboardingStep field, and DataMigration.template lists it with a default of 0.

  3. Publish your test experience as a private experience, join a live server through the Roblox client (not Studio), collect a coin and buy an item, then open Analytics, Economy in Creator Hub and select View Events to see your events in near real time. Dashboard charts take up to 24 hours to appear.

    You should see Creator Hub's Analytics, Economy, View Events list shows your Coins events from the live private server.

  4. In MonetizationService.process, find the IAP source call after the receipt record is written, and confirm it is logged only when this server wrote the receipt.

    You should see A second Coin Pack purchase logs one IAP source event with the new balance.

Open this step in lesson mode · Link to this step · This confused me

11Challenges

Level 2, Builder

Challenge

Add the round number as a custom field on coin source events, without using up the field budget.

Start from
The game at milestone m12 (download)

Done means

  • Every coin source event carries the round number in custom field 1
  • The round number stays under a small bounded range
  • No user id appears in any field

Hints

  1. Custom fields use Enum.AnalyticsCustomFieldKeys.CustomField01.Name as the key.
  2. RoundService knows the round count; keep it in an attribute.
  3. Look at the 8,000-value budget before you add a field.

Level 3, Professional

Challenge

Add an OpenedShop funnel step. The test is challenges/analytics-funnel.luau and the written solution is challenges/solutions/analytics-funnel.md. Run it from a bindable in the server script, as the challenges README shows.

Start from
The game at milestone m12 (download)
Grade it
To grade work from an earlier milestone, apply your challenge changes to a checkout based on m14-ship, which includes the Course Runner. In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("analytics-funnel", "analytics-opened-shop") in the server command bar. Copy the pass code from Output.

Done means

  • A new OpenedShop step sits between SurvivedDrill and FirstPurchase
  • It is logged once per player when the shop opens, and steps after it are renumbered
  • challenges/analytics-funnel.luau prints TEST PASS for every check

Hints

  1. A step's number is its position in the ONBOARDING list.
  2. Add the name to the type and to the list.
  3. Log it from ShopService.start where the prompt opens the shop.

After you insert OpenedShop between SurvivedDrill and FirstPurchase, what step number does FirstPurchase get?

Answer

6. Joined 1, FirstCoin 2, StartedDrill 3, SurvivedDrill 4, OpenedShop 5, FirstPurchase 6. Inserting in the middle shifts everything after it, and players saved at the old step 5 need care: their onboardingStep points to a different step now.

Open this step in lesson mode · Link to this step · This confused me

12Recap

Recap

  1. Custom events count things, funnel events show where players stop in a linear flow, journey events track branching paths, and economy events track a currency as sources and sinks; all are sent from live published servers after the action succeeded, never from Studio.
  2. Beacon Yard logs a five-step onboarding funnel once per player (the furthest step is saved in the profile) and every coin in or out with the balance after it.
  3. Retention is D1, D7 and D30, rate limits and field budgets decide how many events and fields you can use, and none of it is a backup.

Economy events is the store's till roll, until a till roll only records what happened; it cannot restore a lost balance, which lives in the profile.

Next Change with evidence: Experiments, error reports and alerts

Open this step in lesson mode · Link to this step · This confused me