Class AnalyticsEventTracker
- Namespace
- HomaGames.HomaBelly
- Assembly
- HomaGames.HomaBelly.Core.dll
public static class AnalyticsEventTracker
- Inheritance
-
AnalyticsEventTracker
- Inherited Members
Methods
TrackAdRevenue(AdRevenueData)
Tracks an Ad Revenue event
public static void TrackAdRevenue(AdRevenueData adRevenueData)
Parameters
adRevenueDataAdRevenueDataObject holding all ad revenue data to be sent
TrackEvent(AnalyticsEvent)
Internal method to track events. Receives the AnalyticsEvent object and forwards it to implementers.
public static EventId TrackEvent(this AnalyticsEvent analyticsEvent)
Parameters
analyticsEventAnalyticsEvent
Returns
TrackInAppPurchaseEvent(ProductCategory, string, string, double, CurrencyType, int, string, string, bool)
Tracks an In-App Purchase event. Purchase can be verified if
transactionId and payload are informed for the corresponding platforms
public static void TrackInAppPurchaseEvent(ProductCategory productCategory, string productId, string currencyCode, double unitPrice, CurrencyType currencyType = CurrencyType.Other, int amount = 0, string transactionId = null, string payload = null, bool isRestored = false)
Parameters
productCategoryProductCategoryThe category of the purchased product
productIdstringThe product id purchased
currencyCodestringThe currency code of the purchase
unitPricedoubleThe unit price
currencyTypeCurrencyType(Optional) The type of currency purchased
amountint(Optional) The amount of currency purchased
transactionIdstring(Optional) The transaction id for the IAP validation
payloadstring(Optional - Only Android) Payload for Android IAP validation
isRestoredbool(Optional) If the purchase is restored. Default is false