# What to track

A short guide to choosing events, for people and AI agents adding BloxTrack to a game. The goal is a dashboard that
answers real questions: where do new players drop off, what do they spend on, do they come back.

## Start with these

The SDK already sends `session_start` and `session_end`. For most games, add:

| Event | key | value | When |
|---|---|---|---|
| `tutorial_step` (with `DefineSteps`) | the step | seconds since joining | Each onboarding step, the first time. |
| `level_up` | the new level | | A player levels up (or rebirths, ranks up: use one name per kind). |
| `currency_earned` | where it came from (`quest`, `drop`, `daily`) | amount | Each reward, or a per-minute total for steady income. |
| `currency_spent` | what it bought | amount | Each spend. |
| `purchase_prompt` | the product or pass | Robux price | A Robux prompt was shown (props: `bought` true/false when it closes). |
| `purchase` | the product or pass | Robux price | A Robux purchase is confirmed (in `ProcessReceipt` or `PromptGamePassPurchaseFinished`). |
| `quest_done` | quest id | reward | |
| `round_end` | mode or map | seconds | Round-based games; props: `place`, `won`. |
| `invite_sent` | | friends invited | |

With several currencies, use one event per currency (`gems_spent`, `coins_spent`) so values add up in one unit.

## Naming

- `name` says what happened, in snake_case, past tense or noun: `item_crafted`, `boss_killed`, `shop_open`.
- `key` says what it was about. Keep keys to a known, small set (ids, not sentences): the dashboard groups by key.
- `value` is one number in one unit, so totals mean something. Don't put a level in `value` and coins in another
  event of the same name.
- Put everything else in `props`.
- Use the same name for the same thing everywhere in the game. Changing a name later splits the history.

## Funnels

A funnel is a list of steps (`name` or `name:key`) players reach in order. Plan the main ones when choosing events:

- Onboarding: `session_start` → each `tutorial_step:<step>` → `level_up:5`.
- Shop: `shop_open` → `purchase_prompt` → `purchase`.
- A feature: `feature_seen` → `feature_used` → `feature_used` again tomorrow (retention).

Each step counts a player's first time doing it, so a funnel step should be something a player does once or whose
first time matters.

## Don't

- Don't send personal information: usernames, display names, chat, emails. The UserId identifies the player.
- Don't send per-frame or very frequent events (every hit, every coin touched). Add them up and send totals.
- Don't track from the client what the server knows (currency, purchases, progress).
- Don't make a new event name per item (`bought_sword`, `bought_shield`): use one name and the key.
