How to track Abandoned Carts

Modified on: Wed, 19 Jan, 2022 at 6:28 PM


Abandoned cart tracking allows you to measure how many visitors/customers leave the portal before completing a purchase, leaving items in the cart. When a customer leaves a hosted page/checkout page unattended for 30 minutes, it is counted as an Abandoned Cart. Read more about it here.


Chargebee generates a report to track the abandoned carts. You can view this at Reports > Revenue Recovery > Abandoned Carts. Chargebee also tracks recovered carts under Reports > Revenue Recovery > Recovered Carts.

To track abandoned carts via API, a new attribute is added to the Hosted Pages resource called "checkout_info". This attribute persists the end customers' actions and customer entered information during the checkout process and it is logged for every 5 sec. For every action performed in the hosted pages, the "updated_at" and “state” attributes will be updated. 


You can filter the data with the attributes below:

  • updated_at - timestamp indicating when this hosted page was last updated

  • state - mentions whether the checkout was successful or not (actual values are created, requested, succeeded, canceled, and acknowledged)

  • type - can be set to checkout_new or checkout_existing based on the type of customers you are trying to track


A combination of updated_at, state, type as well as list_hosted_pages API helps in identifying the customers who had abandoned the cart. Poll list_hosted_pages API regularly with:


updated_at = set to a specific time range 

state = "requested" 

type = "checkout_new" or "checkout_existing"


The checkout_info attributes will have the information about the customer (email address, first name, and last name) which you can retrieve and utilize for retargeting and failure reason (if any).


Email Reminders:


 You can send emails to customers reminding them about their abandoned carts so that they may finish checking out.  To configure the email notifications and their content, navigate to Settings > Configure Chargebee > Email Notifications > Abandoned Cart Reminders.


The reminder emails can be configured to be sent from 30 minutes to up to 30 days of cart abandonment. Multiple such emails can be configured.


Checkout V2:


  1. On Checkout V2 you can enable the Abandoned Cart tracking by navigating to Settings > Checkout and Self-Serve Portal > Tracking & font settings> Check "Track cart abandonment from Chargebee's Checkout".

  2. If you wish to send email reminders to customers then check the box that appears next: "Send cart abandonment emails from Chargebee."


Note: 

  1. The Abandoned cart Reports and email notifications are available only on the Scale Plan and above.

  2. To protect the privacy of your customers, we strongly recommend that you clearly indicate to them when this feature is being used.



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×