logGenerateLead method
Future<void>
logGenerateLead({
- String? currency,
- double? value,
- 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.
Implementation
Future<void> logGenerateLead({
String? currency,
double? value,
AnalyticsCallOptions? callOptions,
}) {
_requireValueAndCurrencyTogether(value, currency);
return logEvent(
name: 'generate_lead',
parameters: filterOutNulls(<String, Object?>{
_CURRENCY: currency,
_VALUE: value,
}),
callOptions: callOptions,
);
}