# How do I target shoppers who reach checkout but do not buy on VTEX?

Asked by lucas_ferraz on 2026-11-28. Tags: vtex, cql, audiences.

our VTEX store now streams the checkout events into Croct and i want an
experience that nudges people who start checkout but leave before placing the
order.

what i am not sure about is which CQL actually matches the checkout stage
versus just a cart that has stuff in it. those feel like two different
audiences to me and i do not want to fire the nudge at someone who is only
browsing the cart

## 2 answers

### Accepted answer from Rafael Souza (2026-11-29)

They are two different things, yes. Checkout starts is one of the store
events the VTEX integration auto-tracks, next to product views, cart views,
cart modifications and order placements, so the cart context carries the
stage the shopper reached.

For the checkout stage specifically you want:

```cql
cart's stage is "checkout" and not user has made purchase
```

That is distinct from a cart that just has items in it. `cart is empty`
would be the opposite end, and `cart's stage is "checkout"` only matches
once they actually reached that step.

One thing to keep in mind: undefined variables evaluate to false by design,
so anyone who never got to checkout simply will not match, which is exactly
the guard you want here. The audience is evaluated in real time on each
interaction, so as soon as they hit checkout without ordering they fall into
it and the nudge can show.

#### Reply from lucas_ferraz (2026-11-30)

that matched exactly what i needed, the stage condition is the piece i
was missing. thanks

### Answer from Priya Nair (2026-11-30)

If you want to be a bit more selective you can combine the stage with a
subtotal threshold so the nudge only fires above a certain basket value, e.g.

```cql
cart's stage is "checkout" and cart's subtotal is less than 100
```

or the inverse if you only care about larger carts. Since the cart events
feed the subtotal in real time it updates as they add or remove items. There
is a related pattern for the [free-shipping subtotal nudge](/answers/cql-cart-subtotal-free-shipping-nudge)
that uses the same subtotal conditions if you want more examples, and
[retargeting on a completed goal](/answers/cql-completed-goal-retargeting)
if you later want to follow up with people who did convert.
