logGenerateLead method

Future<void> logGenerateLead({
  1. String? currency,
  2. double? value,
  3. Map<String, Object?>? parameters,
  4. AnalyticsCallOptions? callOptions,
})

Logs the standard generate_lead event.

Log this event when a lead has been generated in the app to understand the efficacy of your install and re-engagement campaigns. Note: If you supply the value parameter, you must also supply the currency parameter so that revenue metrics can be computed accurately.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#GENERATE_LEAD

Implementation

Future<void> logGenerateLead({
  String? currency,
  double? value,
  Map<String, Object?>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _requireValueAndCurrencyTogether(value, currency);

  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'generate_lead',
    parameters: filterOutNulls(<String, Object?>{
      _CURRENCY: currency,
      _VALUE: value,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}