Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
AnalyticsEconomyTransactionType
This enum provides recommended values for the transactionType parameter of AnalyticsService:LogEconomyEvent(). Because transactionType is typed as a string, pass the Name property of the enum item (for example, AnalyticsEconomyTransactionType.IAP.Name). Using these standard values enables Roblox-provided analytics charts to break down economy data by transaction context. Custom strings are also accepted; the experience is limited to 20 unique transaction types total.
Items
| Name | Value | Description |
|---|---|---|
| IAP | 0 | Represents a source of currency purchased via Robux, for example in-experience "gold" purchased for Robux. |
| Shop | 1 | Purchases within a shop, for example in-experience "coins" used to buy an item within the experience. |
| Gameplay | 2 | Currency earned or paid through gameplay, for example in-experience "gold" earned from winning a match. |
| ContextualPurchase | 3 | Purchase with direct context to a reward, for example in-experience "gold" used to purchase an extra life. |
| TimedReward | 4 | Time-based reward, for example in-experience "gold" rewarded for logging in daily. |
| Onboarding | 5 | Transaction related to onboarding, for example in-experience "gold" rewarded for completing the tutorial. |
IAP
Represents a source of currency purchased via Robux, for example in-experience "gold" purchased for Robux.
| Field | Value |
|---|---|
| value | 0 |
Shop
Purchases within a shop, for example in-experience "coins" used to buy an item within the experience.
| Field | Value |
|---|---|
| value | 1 |
Gameplay
Currency earned or paid through gameplay, for example in-experience "gold" earned from winning a match.
| Field | Value |
|---|---|
| value | 2 |
ContextualPurchase
Purchase with direct context to a reward, for example in-experience "gold" used to purchase an extra life.
| Field | Value |
|---|---|
| value | 3 |
TimedReward
Time-based reward, for example in-experience "gold" rewarded for logging in daily.
| Field | Value |
|---|---|
| value | 4 |
Onboarding
Transaction related to onboarding, for example in-experience "gold" rewarded for completing the tutorial.
| Field | Value |
|---|---|
| value | 5 |