Show / Hide Table of Contents

Class FbAnalytics

Inheritance
System.Object
FbAnalytics
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Facebook
Assembly: cs.temp.dll.dll
Syntax
public static class FbAnalytics

Methods

LogAppEvent(String, Nullable<Single>, Dictionary<String, Object>)

Publishes an App Event. App Events allow you to measure the effectiveness of your Facebook app ads and better understand the makeup of users engaging with your app. You can use one of 14 predefined events such as 'level achieved', or use custom events you define.

Log events that could help you understand player behavior and measure engagement coming from your App Ads on Facebook. How often these events occur is reported in aggregate with through Facebook Analytics for Apps.

https://developers.facebook.com/docs/analytics for information

Note: Users do not need to be logged in with Facebook in order for you to log App Events. Note: Predefined events in Facebook.Unity.AppEventName

Declaration
public static void LogAppEvent(string logEvent, float? valueToSum = null, Dictionary<string, object> parameters = null)
Parameters
Type Name Description
System.String logEvent

The name of the event to log

System.Nullable<System.Single> valueToSum

A number representing a value to be summed when reported

Dictionary<System.String, System.Object> parameters

Any parameters needed to describe the event

LogPurchase(Single, String, Dictionary<String, Object>)

A convenience method has been provided to log real-money in-app purchases, which is the most common use of event logging.

Declaration
public static void LogPurchase(float logPurchase, string currency = null, Dictionary<string, object> parameters = null)
Parameters
Type Name Description
System.Single logPurchase

The name of the event to log

System.String currency

ISO currency code e.g "USD"

Dictionary<System.String, System.Object> parameters

Any parameters needed to describe the event

In This Article
Back to top Generated by DocFX