-
Notifications
You must be signed in to change notification settings - Fork 7
Business Event
Martin Treacy-Schwartz edited this page Apr 6, 2017
·
6 revisions
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]");
ℹ️
For more information regarding business events go here.