Analytics

Analytics

# 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.
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.
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.
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.
Returns:
Promise with true if operation was successful, false otherwise.
Type
Promise.<boolean>