Table of Contents

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

adRevenueData AdRevenueData

Object 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

analyticsEvent AnalyticsEvent

Returns

EventId

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

productCategory ProductCategory

The category of the purchased product

productId string

The product id purchased

currencyCode string

The currency code of the purchase

unitPrice double

The unit price

currencyType CurrencyType

(Optional) The type of currency purchased

amount int

(Optional) The amount of currency purchased

transactionId string

(Optional) The transaction id for the IAP validation

payload string

(Optional - Only Android) Payload for Android IAP validation

isRestored bool

(Optional) If the purchase is restored. Default is false