logViewCart method
Future<void>
logViewCart({
- String? currency,
- double? value,
- List<
AnalyticsEventItem> ? items, - AnalyticsCallOptions? callOptions,
Logs the standard view_cart
event.
This event signifies that a user has viewed their cart. Use this to analyze your purchase funnel.
Implementation
Future<void> logViewCart({
String? currency,
double? value,
List<AnalyticsEventItem>? items,
AnalyticsCallOptions? callOptions,
}) {
return logEvent(
name: 'view_cart',
parameters: filterOutNulls(<String, Object?>{
_CURRENCY: currency,
_VALUE: value,
_ITEMS: items,
}),
callOptions: callOptions,
);
}