# new Analytics()
- Source:
Methods
# (static) trackCustomEvent(eventName, eventProperties) → {Promise.<boolean>}
Reports custom event to Dashboard.
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | Custom event. |
eventProperties |
Object.<string, string> | Properties. |
- Source:
Returns:
Promise with true if operation was successful, false otherwise.
- Type
- Promise.<boolean>
# (static) trackCustomEvents(events) → {Promise.<boolean>}
Reports custom event to Dashboard.
Parameters:
Name | Type | Description |
---|---|---|
events |
Array.<CustomEvent> | Array of custom events. |
- Source:
Returns:
Promise with true if operation was successful, false otherwise.
- Type
- Promise.<boolean>
# (static) trackPurchase(purchaseData) → {Promise.<boolean>}
Reports in-app purchase to Dashboard.
Parameters:
Name | Type | Description |
---|---|---|
purchaseData |
PurchaseData | Purchase data. |
- Source:
Returns:
Promise with true if operation was successful, false otherwise.
- Type
- Promise.<boolean>
# (static) trackPurchases(purchaseEventsData) → {Promise.<boolean>}
Reports multiple in-app purchases to Dashboard.
Parameters:
Name | Type | Description |
---|---|---|
purchaseEventsData |
Array.<PurchaseData> | Purchase events data. |
- Source:
Returns:
Promise with true if operation was successful, false otherwise.
- Type
- Promise.<boolean>