logBeginCheckout method
Future<void>
logBeginCheckout({
- double? value,
- String? currency,
- List<
AnalyticsEventItem> ? items, - String? coupon,
- AnalyticsCallOptions? callOptions,
Logs the standard begin_checkout
event.
This event signifies that a user has begun the process of checking out.
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> logBeginCheckout({
double? value,
String? currency,
List<AnalyticsEventItem>? items,
String? coupon,
AnalyticsCallOptions? callOptions,
}) {
_requireValueAndCurrencyTogether(value, currency);
return logEvent(
name: 'begin_checkout',
parameters: filterOutNulls(<String, Object?>{
_VALUE: value,
_CURRENCY: currency,
_ITEMS: items,
_COUPON: coupon,
}),
callOptions: callOptions,
);
}