Class ConfiguratorAnalytics
Static analytics engine provider
Namespace: UnityEngine.Industrial.Configuring.Providers
Syntax
public static class ConfiguratorAnalytics
Methods
AddTracker(IAnalyticsTracker[])
Adds custom tracker to analytic system
Declaration
public static void AddTracker(params IAnalyticsTracker[] analyticsTrackers)
Parameters
Type | Name | Description |
---|---|---|
IAnalyticsTracker[] | analyticsTrackers | The analytics trackers. |
GetTracker<T>()
Gets an analytics tracker
Declaration
public static T GetTracker<T>()
where T : IAnalyticsTracker
Returns
Type | Description |
---|---|
T | T. |
Type Parameters
Name | Description |
---|---|
T |
Init(IAnalyticsEngine)
Initializes the specified engine.
Declaration
public static void Init(IAnalyticsEngine engine)
Parameters
Type | Name | Description |
---|---|---|
IAnalyticsEngine | engine | The engine. |
RemoveTracker<T>()
Removes and disposes custom analytics tracker
Declaration
public static void RemoveTracker<T>()
where T : IAnalyticsTracker
Type Parameters
Name | Description |
---|---|
T |
SendEvent(String)
Sends an analytics event through provided analytics engine
Declaration
public static void SendEvent(string eventName)
Parameters
Type | Name | Description |
---|---|---|
String | eventName | Name of the event. |
SendEvent(AnalyticsEngineEvent)
Sends an analytics event through provided analytics engine
Declaration
public static void SendEvent(AnalyticsEngineEvent analyticsEvent)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsEngineEvent | analyticsEvent | The analytics event. |
TrackContext(Context)
Sends a context changed analytics event through provided analytics engine
Declaration
public static void TrackContext(Context context)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The context. |
TrackProduct(Product)
Sends a product changed analytics event through provided analytics engine
Declaration
public static void TrackProduct(Product product)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |