Table of Contents

Interface IHomaBellyAnalytics

Namespace
HomaGames.HomaBelly
Assembly
HomaGames.HomaBelly.Core.dll
public interface IHomaBellyAnalytics

Methods

SetUserAttribute(string, object)

Set user attributes to the given values. User Attributes allow a developer to segment users into groups.

void SetUserAttribute(string key, object value)

Parameters

key string
value object

SetUserAttributes(IDictionary<string, object>)

Set a user attribute to the given value. User Attributes allow a developer to segment users into groups.

void SetUserAttributes(IDictionary<string, object> dictionary)

Parameters

dictionary IDictionary<string, object>

TrackAdEvent(AdAction, AdType, string, string)

Tracks an Ad event

[Obsolete("If this is a suggested ad, use HomaGames.HomaBelly.Analytics.SuggestedRewardedAd instead. Other ad events are automated.")]
void TrackAdEvent(AdAction adAction, AdType adType, string adNetwork, string adPlacementId)

Parameters

adAction AdAction

Clicked, FailedShow, RewardReceived, Request or Loaded

adType AdType

Ad type

adNetwork string

Ad network

adPlacementId string

Ad placement id

TrackAdRevenue(AdRevenueData)

Tracks an Ad Revenue event

void TrackAdRevenue(AdRevenueData adRevenueData)

Parameters

adRevenueData AdRevenueData

Object holding all ad revenue data to be sent

TrackAttributionEvent(string, Dictionary<string, object>)

Tracks an event on the attribution platform

void TrackAttributionEvent(string eventName, Dictionary<string, object> arguments = null)

Parameters

eventName string

The event name

arguments Dictionary<string, object>

(Optional) Additional arguments. Dictionary values must have one of these types: string, int, long, float, double, null, List, Dictionary<String,object>

TrackAttributionEventWithPartnerParameters(string, Dictionary<string, object>, Dictionary<string, object>)

Tracks an event on the attribution platform with partner parameters

void TrackAttributionEventWithPartnerParameters(string eventName, Dictionary<string, object> partnerParameters, Dictionary<string, object> arguments = null)

Parameters

eventName string

The event name

partnerParameters Dictionary<string, object>

Partner parameters. Dictionary values must have one of these types: string, int, long, float, double, null, ArrayList, Dictionary<string,object>

arguments Dictionary<string, object>

(Optional) Additional arguments. Dictionary values must have one of these types: string, int, long, float, double, null, ArrayList, Dictionary<string,object>

TrackDesignEvent(string, float)

Tracks a design event

[Obsolete("Use HomaGames.HomaBelly.Analytics.DesignEvent instead")]
void TrackDesignEvent(string eventName, float eventValue = 0)

Parameters

eventName string

The design event name

eventValue float

(Optional) Any event value

TrackErrorEvent(ErrorSeverity, string)

Tracks an error event

void TrackErrorEvent(ErrorSeverity severity, string message)

Parameters

severity ErrorSeverity

Debug, Info, Warning, Error or Critical

message string

The error message

TrackInAppPurchaseEvent(string, string, double, string, string, bool)

Tracks an In-App Purchase event. Purchase can be verified if transactionId and payload are informed for the corresponding platforms

[Obsolete("InAppPurchase events are automated in HomaBelly Purchases package. You don't need to call this method anymore.")]
void TrackInAppPurchaseEvent(string productId, string currencyCode, double unitPrice, string transactionId = null, string payload = null, bool isRestored = false)

Parameters

productId string

The product id puchased

currencyCode string

The currency code of the purchase

unitPrice double

The unit price

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

TrackProgressionEvent(ProgressionStatus, string, int)

Tracks a progression event

[Obsolete("Use the new HomaGames.HomaBelly.Analytics.Level* or HomaGames.HomaBelly.Analytics.Checkpoint methods instead")]
void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, int score = 0)

Parameters

progressionStatus ProgressionStatus

Start, Complete or Fail

progression01 string

Progress description

score int

(Optional) Score

TrackProgressionEvent(ProgressionStatus, string, string, int)

[Obsolete("Use the new HomaGames.HomaBelly.Analytics.Level* or HomaGames.HomaBelly.Analytics.Checkpoint methods instead")]
void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, string progression02, int score = 0)

Parameters

progressionStatus ProgressionStatus
progression01 string
progression02 string
score int

TrackProgressionEvent(ProgressionStatus, string, string, string, int)

[Obsolete("Use the new HomaGames.HomaBelly.Analytics.Level* or HomaGames.HomaBelly.Analytics.Checkpoint methods instead")]
void TrackProgressionEvent(ProgressionStatus progressionStatus, string progression01, string progression02, string progression03, int score = 0)

Parameters

progressionStatus ProgressionStatus
progression01 string
progression02 string
progression03 string
score int

TrackResourceEvent(ResourceFlowType, string, float, string, string)

Track a resource flow (source/sink) event

[Obsolete("Use HomaGames.HomaBelly.Analytics.ResourceFlowEvent or HomaGames.HomaBelly.Analytics.ItemObtained instead")]
void TrackResourceEvent(ResourceFlowType flowType, string currency, float amount, string itemType, string itemId)

Parameters

flowType ResourceFlowType

Source when user obtains some resource, or Sink when user spends some resource

currency string

Resource name

amount float

Resource amount

itemType string

Resource type

itemId string

Resource id