logGenerateLead method
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.
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,
);
}