Home





Analytics

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

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

Methods

Enhance.logEvent

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

Send a custom analytics event.

Parameters:

String  eventType - Type (name) of the event.

optional String  paramKey - Key of the event's parameter.

optional String  paramValue - Value of the event's parameter.