Analytics



Analytics: Unity (C#)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.LogEvent("game_over", "level", "1");
Enhance.LogEvent("user_exit");

Methods

void Enhance.LogEvent( string eventType )

Send an event without any additional parameters.

Parameters:
string eventType - Name of the event.

void Enhance.LogEvent( string eventType, string paramKey, string paramValue )

Send an event with an additional parameter.

Parameters:

string eventType - Name of the event.

string paramKey - The parameter's key.

string paramValue - The parameter's value.

Analytics: Android (Java)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.logEvent("game_over", "level", "1");
Enhance.logEvent("user_exit");

Methods

void Enhance.logEvent( String eventType )

Send an event without any additional parameters.

Parameters:
String eventType - Name of the event.

void Enhance.logEvent( String eventType, String paramKey, String paramValue )

Send an event with an additional parameter.

Parameters:

String eventType - Name of the event.

String paramKey - The parameter's key.

String paramValue - The parameter's value.

Analytics: iOS (Objective-C)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

[Enhance logEvent:@"game_over" withParameter:@"level" andValue:@"1"];
[Enhance logEvent:@"user_exit"];

Methods

void [Enhance logEvent: (NSString*)eventType ]

Send an event without any additional parameters.

Parameters:
NSString* eventType - Name of the event.

void [Enhance logEvent: (NSString*)eventType withParameter:(NSString*)paramKey andValue:(NSString*)paramValue ]

Send an event with an additional parameter.

Parameters:

NSString* eventType - Name of the event.

NSString* paramKey - The parameter's key.

NSString* paramValue - The parameter's value.

Analytics: OpenFL (Haxe)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.logEvent("game_over", "level", "1");
Enhance.logEvent("user_exit");

Methods

Enhance.logEvent( eventType:String, ?paramKey:String, ?paramValue:String ):Void

Send an event with an additional parameter (optional).

Parameters:

String eventType - Name of the event.

optional String paramKey - The parameter's key.

optional String paramValue - The parameter's value.

Analytics: Adobe Air (AS3)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.logEvent("game_over", "level", "1");
Enhance.logEvent("user_exit");

Methods

Enhance.logEvent( eventType:String, paramKey:String = null, paramValue:String = null ):void

Send an event with an additional parameter (optional).

Parameters:

String eventType - Name of the event.

optional String paramKey - The parameter's key.

optional String paramValue - The parameter's value.

Analytics: Defold (Lua)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

enhance.logEvent("game_over", "level", "1");
enhance.logEvent("user_exit");

Methods

nil Enhance.logEvent( string eventType, string paramKey = nil, string paramValue = nil )

Send an event with an additional parameter (optional).

Parameters:

string eventType - Name of the event.

optional string paramKey - The parameter's key.

optional string paramValue - The parameter's value.

Analytics: Construct 2 (Visual)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

System On start of layout
    Enhance Log event with name "game_start", parameter key "level" and value "1"

System On end of layout
    Enhance Log simple event with name "user_exit"

Actions

Enhance Log simple event

Send an event without any additional parameters.

Parameters:
Event Name - Name of the event.

Enhance Log event

Send an event with an additional parameter.

Parameters:
Event Name - Name of the event.

Parameter Key - The parameter's key.

Parameter Value - The parameter's value.

Analytics: Stencyl (Visual)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage


Action Blocks



Send an event without any additional parameters.

Parameters:

text eventType - Name of the event.



Send an event with an additional parameter.

Parameters:

text eventType - Name of the event.

text paramKey - The parameter's key.

text paramValue - The parameter's value.

Analytics: Cordova (JS)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.logEvent('game_over', 'level', '2');
Enhance.logEvent('exit');

Methods

void Enhance.logEvent( eventType, paramKey, paramValue )

Send an event with an additional parameter (optional).

Parameters:

string eventType - Name of the event.

optional string paramKey - The parameter's key.

optional string paramValue - The parameter's value.

Analytics: Construct 3 (Visual)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

System On start of layout
    Enhance Log event with name "game_start", parameter key "level" and value "1"

System On end of layout
    Enhance Log simple event with name "user_exit"

Actions

Enhance Log simple event

Send an event without any additional parameters.

Parameters:
Event Name - Name of the event.

Enhance Log event

Send an event with an additional parameter.

Parameters:
Event Name - Name of the event.

Parameter Key - The parameter's key.

Parameter Value - The parameter's value.

Analytics: Xamarin (C#)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

Enhance.LogEvent("game_over", "level", "1");
Enhance.LogEvent("user_exit");

Methods

void Enhance.LogEvent( string eventType )

Send an event without any additional parameters.

Parameters:
string eventType - Name of the event.

void Enhance.LogEvent( string eventType, string paramKey, string paramValue )

Send an event with an additional parameter.

Parameters:

string eventType - Name of the event.

string paramKey - The parameter's key.

string paramValue - The parameter's value.

Analytics: MIT App Inventor (Visual)




The connector library allows you to send custom events to the hooked analytics networks.

Example Usage

when Button.Click
do
    call EnhanceConnector1.LogEvent
         eventName = "button_click"
    call EnhanceConnector1.LogEventWithParameter
         eventName  = "button_click"
         paramKey   = "screen"
         paramValue = "menu"

Methods

void LogEvent

Send an event without any additional parameters.

Parameters:

text eventType - Name of the event.

void LogEventWithParameter

Send an event with an additional parameter.

Parameters:

text eventType - Name of the event.

text paramKey - The parameter's key.

text paramValue - The parameter's value.

Analytics: Construct 3 (Visual)




Enhance can hook into various analytics networks. By default it will track sessions, users and retention.

Actions

Log simple event
Send a simple analytics event.

Log event
Send an analytics event with additional parameter.

Analytics: Xamarin (C#)




Enhance can hook into various analytics networks. By default it will track sessions, users and retention.

1) Send a simple analytics event:
Enhance.LogEvent(string eventType);

2) Send a detailed analytics event with parameter:
Enhance.LogEvent(string eventType, string paramKey, string paramValue);

Analytics: MIT App Inventor (Visual)




Enhance can hook into various analytics networks. By default it will track sessions, users and retention.

1) Send a simple analytics event:
LogEvent (Text eventName)

2) Send an analytics event with additional parameter:
LogEventWithParameter (Text eventName, Text paramKey, Text paramValue)