logEvent method

Future<bool?> logEvent(
  1. String eventName,
  2. Map? eventValues
)

These in-app events help you to log how loyal users discover your app, and attribute them to specific campaigns/media-sources. Please take the time define the event/s you want to measure to allow you to send ROI (Return on Investment) and LTV (Lifetime Value).

  • The logEvent method allows you to send in-app events to AppsFlyer analytics. This method allows you to add events dynamically by adding them directly to the application code.

Implementation

Future<bool?> logEvent(String eventName, Map? eventValues) async {
  return await _methodChannel.invokeMethod(
      "logEvent", {'eventName': eventName, 'eventValues': eventValues});
}