2 min read

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

NameValueDescription
IAP0Represents a source of currency purchased via Robux, for example in-experience "gold" purchased for Robux.
Shop1Purchases within a shop, for example in-experience "coins" used to buy an item within the experience.
Gameplay2Currency earned or paid through gameplay, for example in-experience "gold" earned from winning a match.
ContextualPurchase3Purchase with direct context to a reward, for example in-experience "gold" used to purchase an extra life.
TimedReward4Time-based reward, for example in-experience "gold" rewarded for logging in daily.
Onboarding5Transaction 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.

FieldValue
value0

Shop

Purchases within a shop, for example in-experience "coins" used to buy an item within the experience.

FieldValue
value1

Gameplay

Currency earned or paid through gameplay, for example in-experience "gold" earned from winning a match.

FieldValue
value2

ContextualPurchase

Purchase with direct context to a reward, for example in-experience "gold" used to purchase an extra life.

FieldValue
value3

TimedReward

Time-based reward, for example in-experience "gold" rewarded for logging in daily.

FieldValue
value4

Onboarding

Transaction related to onboarding, for example in-experience "gold" rewarded for completing the tutorial.

FieldValue
value5