Home


Analytics

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

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

Methods

Enhance.logEvent

void Enhance.logEvent(
    String eventType
)

Send a custom analytics event.

Parameters:

String  eventType - Type (name) of the event.

Enhance.logEvent

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

Send a custom analytics event.

Parameters:

String  eventType - Type (name) of the event.

String  paramKey - Key of the event's parameter.

String  paramValue - Value of the event's parameter.

Enhance.logEvent

void Enhance.logEvent(
    String eventType,
    Map<String, String> params
)

Send a custom analytics event.

Parameters:

String  eventType - Type (name) of the event.

Map<String, String>  params - A collection of key - value pairs.