Skip to main content

Business Events

Business events capture real-money, in-app purchases (IAP) made by users, including receipt validation on GameAnalytics’ servers.

info

These events must be manually implemented. Refer to the SDK Documentation for code examples specific to your platform.

FieldDescriptionTypePossible ValuesRequired
categoryEvent categorystringbusinessYes
cart_typeThe location in the game where the purchase was madestringE.g. shop, end_of_level, tutorial_pop_upNo
item_typeThe type/category of the itemStringMax 64 charactersYes
item_idThe specific item boughtstringMax 64 charactersYes
amountThe amount of the urchase, in centsIntegerE.g. 99 (for $0.99)Yes
currencyThe currency (real money) used to make the purchasestringCurrency code in ISO 4217 format, e.g. USD, EURYes
receiptThe app store receiptstringSee IAP Purchase Validation and specific SDK documentation for more information.No
signatureThe purchase validation signaturestringSee IAP Purchase Validation and specific SDK documentation for more information.No

Business Event Examples​

FieldExample A: A user purchases a pack of coins in the shopExample B: A user purchases extra lives from a prompt at the end of a levelExample C: A user purchases a starter pack during the FTUE
categorybusinessbusinessbusiness
cart_typeshopend_of_leveltutorial_prompt
item_typecoin_packlivesstarter_pack
item_idcoint_pack_2life_pack_3starter_pack_7
amount9999299
currencyUSDUSDEUR
info

If a player purchase coins with real-money, send both a Business event and a Resource event (source) to track the economy flow.