Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Business Event

Martin Treacy-Schwartz edited this page Mar 15, 2017 · 3 revisions

Business events are used to track (and validate) real-money transactions.

 

Field Type Description Example
currency string Currency code in ISO 4217 format.
http://openexchangerates.org/currencies.json
USD
amount integer Amount in cents. 99 is 0.99$
itemType string The type / category of the item. GoldPacks
itemId string Specific item bought. 1000GoldPack
cartType string The game location of the purchase.
Max 10 unique values.
EndOfLevel

 

 gameanalytics::GameAnalytics.addBusinessEvent("[currency]", [amount], "[itemType]", "[itemId]", "[cartType]");

 

ℹ️
For more information regarding business events go here.

 

NEXT  →

Clone this wiki locally