Business Event - GameAnalytics/GA-SDK-JAVASCRIPT GitHub Wiki

Business events are used to track 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

 

<!-- Traditional way -->
gameanalytics.GameAnalytics.addBusinessEvent("[currency]", [amount], "[itemType]", "[itemId]", "[cartType]");
<!-- Command queue -->
GameAnalytics("addBusinessEvent", "[currency]", [amount], "[itemType]", "[itemId]", "[cartType]");

 

:information_source:
For more information regarding business events go here.

 

NEXT  →