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
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
dictionaryIDictionary<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
adActionAdActionClicked, FailedShow, RewardReceived, Request or Loaded
adTypeAdTypeAd type
adNetworkstringAd network
adPlacementIdstringAd placement id
TrackAdRevenue(AdRevenueData)
Tracks an Ad Revenue event
void TrackAdRevenue(AdRevenueData adRevenueData)
Parameters
adRevenueDataAdRevenueDataObject 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
eventNamestringThe event name
argumentsDictionary<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
eventNamestringThe event name
partnerParametersDictionary<string, object>Partner parameters. Dictionary values must have one of these types: string, int, long, float, double, null, ArrayList, Dictionary<string,object>
argumentsDictionary<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
TrackErrorEvent(ErrorSeverity, string)
Tracks an error event
void TrackErrorEvent(ErrorSeverity severity, string message)
Parameters
severityErrorSeverityDebug, Info, Warning, Error or Critical
messagestringThe 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
productIdstringThe product id puchased
currencyCodestringThe currency code of the purchase
unitPricedoubleThe unit price
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
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
progressionStatusProgressionStatusStart, Complete or Fail
progression01stringProgress description
scoreint(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
progressionStatusProgressionStatusprogression01stringprogression02stringscoreint
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
progressionStatusProgressionStatusprogression01stringprogression02stringprogression03stringscoreint
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
flowTypeResourceFlowTypeSourcewhen user obtains some resource, orSinkwhen user spends some resourcecurrencystringResource name
amountfloatResource amount
itemTypestringResource type
itemIdstringResource id