logPresentOffer method
- @Deprecated('logPresentOffer() has been deprecated. Please use logViewPromotion()')
Logs the standard present_offer
event. This event has been deprecated, please use view_promotion
instead.
This event signifies that the app has presented a purchase offer to a
user. Add this event to a funnel with the logAddToCart and
logEcommercePurchase to gauge your conversion process. Note: If you
supply the value
parameter, you must also supply the currency
parameter so that revenue metrics can be computed accurately.
Implementation
@Deprecated(
'logPresentOffer() has been deprecated. Please use logViewPromotion()',
)
Future<void> logPresentOffer({
required String itemId,
required String itemName,
required String itemCategory,
required int quantity,
double? price,
double? value,
String? currency,
String? itemLocationId,
}) {
_requireValueAndCurrencyTogether(value, currency);
return _delegate.logEvent(
name: 'present_offer',
parameters: filterOutNulls(<String, Object?>{
_ITEM_ID: itemId,
_ITEM_NAME: itemName,
_ITEM_CATEGORY: itemCategory,
_QUANTITY: quantity,
_PRICE: price,
_VALUE: value,
_CURRENCY: currency,
_ITEM_LOCATION_ID: itemLocationId,
}),
);
}