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,
}) {
_requireValueAndCurrencyTogether(value, currency);
return logEvent(
name: 'generate_lead',
parameters: filterOutNulls(<String, dynamic>{
_CURRENCY: currency,
_VALUE: value,
}),
);
}