Coupons

Coupon Events

Track user interactions related to coupon usage in your store.


couponEntered   

Triggered when a user enters a coupon code.

Trait Type Description
order_id    String Order or transaction ID, if applicable
cart_id    String Cart ID, if applicable
coupon_name    String Coupon name, if applicable
coupon_id    String Coupon ID

Example:

ppopAPI.sendTraits('couponEntered', {  order_id: '50314b8e9bcf000000000000',  cart_id: '923923929jd29jd92dj9j93fj3',  coupon_id: 'may_deals_2016' }); 

couponApplied   

Triggered when a coupon is successfully applied.

Trait Type Description
order_id    String Order or transaction ID, if applicable
cart_id    String Cart ID, if applicable
coupon_name    String Coupon name
coupon_id    String Coupon ID
discount    Number Discount amount applied

Example:

ppopAPI.sendTraits('couponApplied', {  order_id: '50314b8e9bcf000000000000',  cart_id: '923923929jd29jd92dj9j93fj3',  coupon_id: 'may_deals_2016',  coupon_name: 'May Deals 2016',  discount: 23.32 }); 

couponDenied   

Triggered when a coupon is invalid or rejected.

Trait Type Description
order_id    String Order or transaction ID, if applicable
cart_id    String Cart ID, if applicable
coupon_name    String Coupon name
coupon_id    String Coupon ID
reason    String Reason the coupon was denied

Example:

ppopAPI.sendTraits('couponDenied', {  order_id: '50314b8e9bcf000000000000',  cart_id: '923923929jd29jd92dj9j93fj3',  coupon_id: 'may_deals_2016',  reason: 'Coupon expired' }); 

Want to learn more?

Check out this related article: Ecommerce Traits

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.