Setting up Cart Phases for Shopping Cart Abandonment

You can set up cart phases to represent the different stages of the checkout process on your site in order to have a granular approach to track order data.

About this task

Cart phases represent different stages in the checkout process. For example, you might have one page (or section of a page) that refers specifically to billing information, another for payment, and so on. In order to identify where in the checkout process shopping cart data was captured, Bronto needs to be able to recognize your site's different cart phases.

To do this, you can use jQuery selectors and/or path regular expressions to map the page, or the part of the page, that represents the each of these phases to different Bronto predefined phases. The jQuery selectors already exist in the code for your site. To map them, you need to locate the jQuery selector in the site code for the relevant cart phase, copy it, and enter it into Bronto.

To map cart phases:


  1. Go to Settings > Platform Settings > Commerce.
  2. Click the pencil icon in the row associated with a Cart Phase.
  3. Enter the jQuery selector for this cart phase in the jQuery Selector box.

    The correct jQuery selector can be found in the code for the page related to this cart phase. You do not need to enter a jQuery selector if you only want to identify the cart phase using a regular expression.

    Tip: For more information on using jQuery selectors, see the jQuery selector documentation.
  4. Add a path regular expression in the Url Pattern box.

    You do not need to enter a regular expression if you only want to identify the cart phase using a jQuery selector.

    Tip: A regular expression is a special text string for describing a search pattern, so your regular expression should identify a search pattern for finding the URL path related to the cart phase.
  5. Click Save Changes.
  6. Repeat steps 2–6 for every cart phase you want to use to capture data.

    Make sure to map the ORDER_COMPLETE cart phase. Bronto uses this phase in revenue calculations.