Analytics

object Analytics

The Analytics class is used to track post-install analytics events. We expose the following set of API methods to developers to send and track events on our dashboard:

  1. trackInAppPurchaseEvent: (Public: Open to developers)

  2. trackMiscRevenueGeneratingEventOfType: (Private: Not open for now, but will be made available soon)

  3. trackCustomEventOfType: (Private: Not open for now, but will be made available soon)

  4. trackInGameScore: (Private: Not open for now, but will be made available soon)

  5. trackPlayerCurrencyBalance: (Private: Not open for now, but will be made available soon)

Types

Link copied to clipboard

Enum values for custom event types.

Link copied to clipboard

Enum constants used as keys for sending purchase information during in-app purchases and post-install analytics tracking.

Link copied to clipboard

Types of in-app purchases supported.

Link copied to clipboard

Enum values representing different types of level tracking information.

Link copied to clipboard

Enum values for miscellaneous revenue generating event types.

Functions

Link copied to clipboard
fun trackInAppAmazonStorePurchaseEvent(title: String, description: String, price: String, currency: String, productID: String, userID: String?, purchaseToken: String?)

Tracks an in-app purchase made on the Amazon Appstore.

Link copied to clipboard
fun trackInAppGooglePlayPurchaseEvent(title: String, description: String, price: String, currency: String, productID: String, purchaseData: String?, purchaseSignature: String?)

Tracks an in-app purchase made on the Google Play Store.

Link copied to clipboard

Tracks an in-app purchase event.

Link copied to clipboard
fun trackLevelInfo(eventLabel: String, type: Analytics.LevelType, mainLevel: Int, description: String)
fun trackLevelInfo(eventLabel: String, type: Analytics.LevelType, mainLevel: Int, subLevel: Int, description: String)

Sends current level information details for the game played.