Skip to content

E-Commerce

Tracking Abandoned Carts on WooCommerce and Shopify with Session Context

Connecting cart contents and order totals directly to session recordings lets store owners see the exact hesitation, shipping surprise, or form error behind every abandoned cart.

Why cart abandonment lists alone are not enough

Most e-commerce platforms show a list of uncompleted checkouts, complete with product names and cart totals. While useful for sending reminder emails when an email address is known, a static cart table cannot tell you why the buyer walked away. Did they balk at the calculated shipping rate? Did a coupon code fail? Did a mobile sticky footer cover the checkout button?

Furthermore, many shoppers abandon their cart before ever typing an email address into the checkout form. Traditional cart recovery plugins never capture those anonymous sessions. SessionLens links cart state and purchase events directly to the visitor’s session recording from the moment they add their first item. When a cart is updated or abandoned, you can see the items, total value, currency, and the full replay of the visit that preceded it in one place.

How automatic cart detection works on WooCommerce and Shopify

On Pro and Business plans, the SessionLens tracker includes built-in commerce adapters that require no custom template edits on standard storefronts. Once your site snippet is installed and commerce tracking is active for your plan, the script detects cart changes automatically:

  • WooCommerce: The tracker reads cart state from the WooCommerce Store API (/wp-json/wc/store/v1/cart) and detects completed orders on the Order Received endpoint.
  • Shopify: The tracker inspects cart state via /cart.js and links item names, quantities, and cart value to the active session.
  • GA4 ecommerce compatibility: Any storefront that pushes standard purchase events to the dataLayer is recognized automatically.
  • Custom storefronts: Developers can report cart state, checkout entry, and completed orders explicitly via sessionlens.cart({ value, currency, items }), sessionlens.checkout(), and sessionlens.purchase({ value, currency, orderId, items }).

Diagnosing the three most common checkout blockers

When you open the Carts or Revenue pages in the dashboard and filter recordings by cart activity or frustration signals, abandoned visits usually cluster around three solvable issues. First, unexpected cost or policy surprises: shoppers add an item, open the cart drawer, see an unfamiliar delivery fee or return rule, and pause before closing the tab.

Second, mobile layout and tap-target friction: on smaller viewports (360px to 414px), floating badges, cookie banners, or sticky headers frequently overlap quantity selectors or the Proceed to Checkout button. Replaying mobile cart sessions highlights these overlaps immediately so you can adjust your CSS spacing.

Third, validation and payment script errors: a shopper fills out their address, clicks submit, and nothing happens because a third-party address validator or payment script threw a console error or failed a network request. SessionLens records console and network error signals on the timeline so you can correlate failed checkouts with technical bugs.

Acting in real time with Telegram alerts and live chat

Waiting until the end of the week to review abandoned carts means missing opportunities to fix urgent store issues. By connecting a Telegram bot via @BotFather in the Alerts page, SessionLens can send instant notifications when carts are left behind or when new orders arrive, complete with a direct /app/sites/:siteId/sessions/:sessionId link to open the recording.

If the visitor is still browsing your site, you can also open the Live view and send a message through the built-in live chat widget—or configure automatic messages in Widgets to trigger after a set number of seconds, when an item is in the cart, or on desktop exit intent (capped at once per visitor per day so shoppers are never spammed).

See your store through your visitors’ eyes

Install the asynchronous SessionLens script in about two minutes. Start on the permanent Free plan with 1,000 monthly recorded sessions—no credit card required.