Target Based On Cart Value

Target Based On Cart Value

Segment visitors based on the total value of products placed in their cart.

Target Based On Cart Value is an OptiMonk targeting condition that lets you show or hide campaigns based on the total monetary value of the products a visitor currently has in their cart. Instead of showing the same message to every visitor regardless of their purchase intent, you can precisely target, for example, visitors with a cart value above $50 (to promote free shipping), between $20 and $80 (to offer an upsell to push them past a threshold), or below $30 (to nudge them with a discount). OptiMonk automatically reads cart value data on Shopify, WordPress, WooCommerce, Magento, and Shoprenter after installation — no custom code required on these platforms. Multiple cart value rules can be combined with other conditions using AND logic, giving you fine-grained control over exactly when a campaign appears.

Key benefits

  • Deliver the right offer at the right cart stage: A visitor with $15 in their cart needs a different message than one with $95. Cart value targeting ensures each visitor sees the campaign most likely to influence their specific purchase decision — whether that is an incentive to add more, a reminder about free shipping, or an urgency-driven offer for a high-value cart.
  • Works automatically on five major platforms: OptiMonk detects cart value automatically on Shopify, WordPress, WooCommerce, Magento, and Shoprenter once the script is installed — with no developer work required on these platforms.
  • Combine with other rules for precision targeting: Cart value can be combined with other conditions — such as specific products in the cart, visitor country, or UTM source — using AND logic to build highly specific audience segments without creating multiple separate campaigns.

How it works

Step 1
Open the campaign targeting settings

In your OptiMonk dashboard, select the campaign you want to configure and click Edit settings. Under "Select who should see the popup," click Add new rule and choose Cart rules from the list.

Step 2
Select "Cart value" and set your threshold

Choose the Cart value condition and define your rule using operators such as "is greater than," "is less than," or "is between." Enter the monetary value or range that should trigger the campaign — for example, "cart value is greater than 50."

Step 3
Save and publish — OptiMonk evaluates in real time

Once active, OptiMonk checks the visitor's current cart total every time the popup trigger fires. If the cart value matches your rule, the campaign displays; if not, it is suppressed silently. The check happens automatically on every qualifying page load.

Frequently asked questions

What is Target Based On Cart Value in OptiMonk?+

Target Based On Cart Value is an OptiMonk targeting condition that shows or hides a campaign based on the total value of products a visitor currently has in their shopping cart. You define a threshold or range — such as "cart value above $50" — and OptiMonk evaluates the visitor's live cart total each time the campaign trigger fires, displaying the popup only to visitors who match the condition.

Which platforms support automatic cart value detection?+

OptiMonk automatically detects cart value on Shopify, WordPress, WooCommerce, Magento, and Shoprenter after the script is installed — no additional setup needed. For other ecommerce platforms, cart value detection requires a custom JavaScript implementation as described in OptiMonk's JavaScript code for Cart Rules documentation.

Can I target visitors with a cart value within a specific range?+

Yes. The Cart value condition supports operators including "is greater than," "is less than," "is equal to," and "is between," allowing you to target a precise range — for example, visitors with a cart between $30 and $80 who might benefit from a specific upsell offer.

Can I combine cart value targeting with other conditions?+

Yes. Multiple conditions can be stacked together using AND logic. For example, you can show a campaign only to visitors who have a cart value above $50 AND have a specific product in their cart. Each additional rule narrows the audience further, giving you highly precise targeting without separate campaigns.

Does cart value update in real time as visitors add or cremove products?+

OptiMonk evaluates the cart value condition each time the campaign trigger fires for a visitor. If the trigger is set to fire on page load or after a time delay, OptiMonk will read the current cart total at that moment. This means that if a visitor adds a product that pushes their cart above your threshold and then navigates to a new page, the campaign can appear on that page load — reflecting the updated cart.

Ready to try it?

Try OptiMonk for free

Launch your first campaign, learn what works, then scale what converts.

ecommerce