DarkMatter  4.1.0
IAnalyticsTracker Interface Reference

Interface implemented by classes that can send analytics events. More...

Inheritance diagram for IAnalyticsTracker:
AnalyticsAPI

Public Member Functions

void sendAnalyticsEvent (String eventName, String category, String subcategory1, String subcategory2, String value, String... customParameters)
 Creates and sends a new Analytics event with the given n, st1, st2, st3, v, and cp parameters respectively. More...
 
void sendPurchaseEvent (String productID, float usdPrice, String transactionTimeInMillis, String transactionID, String... customParameters)
 Creates and sends a new In-App Purchase event with "iap", "IAP", "IAP_SUCCESS", productID, and usdPrice * 100 as the n, st1, st2, st3, and v parameters respectively. More...
 

Detailed Description

Interface implemented by classes that can send analytics events.

Member Function Documentation

◆ sendAnalyticsEvent()

void sendAnalyticsEvent ( String  eventName,
String  category,
String  subcategory1,
String  subcategory2,
String  value,
String...  customParameters 
)

Creates and sends a new Analytics event with the given n, st1, st2, st3, v, and cp parameters respectively.

Parameters
eventNameThe analytic shortname.
categoryst1 shortname
subcategory1st2 shortname
subcategory2st3 shortname
valueThe main value parameter used by most events.
customParametersAdditional event parameters.

Implemented in AnalyticsAPI.

◆ sendPurchaseEvent()

void sendPurchaseEvent ( String  productID,
float  usdPrice,
String  transactionTimeInMillis,
String  transactionID,
String...  customParameters 
)

Creates and sends a new In-App Purchase event with "iap", "IAP", "IAP_SUCCESS", productID, and usdPrice * 100 as the n, st1, st2, st3, and v parameters respectively.

Parameters
productIDThe unique product ID that the store uses.
usdPriceThe price of the product on the store in US dollars.
transactionTimeInMillisThe time in milliseconds from when the user clicked on the product to buy it to when it was successful. It is sent in the custom parameters.
transactionIDThe unique identifier for the transaction.
customParametersContains any other custom parameters you wish to send.

Implemented in AnalyticsAPI.