How to Add an Exit Intent Popup to Your Shopify Store

When a visitor moves their cursor toward the browser's back button or address bar, you have one last second to keep them. That moment is called exit intent — and if your Shopify store isn't capturing it, you're losing sales you could have saved.

Most merchants focus on driving more traffic to fix low sales. But exit intent works differently: it targets shoppers who are already on your store and about to leave. Converting even a small percentage of those visitors — say 3–5% — can meaningfully move your revenue without spending a dollar more on ads.

This guide shows you how to set up an exit intent popup on Shopify, what to say in it, and how to use urgency widgets to keep more visitors on the page in the first place.

What Is an Exit Intent Popup?

An exit intent popup is a message that appears when a user's behavior suggests they're about to leave your site — typically detected when the cursor moves toward the top of the browser window. On mobile, it's triggered by back-button behavior or a user scrolling up quickly.

When done well, exit popups can remind shoppers of products they viewed, offer a time-limited discount or free shipping threshold, and create urgency to complete a purchase before leaving. When done poorly, they feel like spam. The goal is to add value at the right moment.

When Should an Exit Intent Popup Trigger?

Don't trigger it the moment someone lands on your store. Configure it to fire after a visitor has spent at least 30 seconds on a product page, after scrolling past the fold on a product description, or on the cart page when a visitor has items but moves to leave. The more relevant the timing, the better the response.

What to Say in Your Exit Intent Popup

The message matters more than the design. Here are three approaches that work for Shopify stores:

Free shipping offer

"Wait — you're just $X away from free shipping. Add one more item and shipping is on us." This ties directly to cart behavior and feels helpful, not desperate.

Time-limited discount

"Last chance: Use code EXIT15 for 15% off. Expires in 10 minutes." Pair this with a countdown timer to add genuine urgency. Don't use fake timers — shoppers notice, and it destroys trust.

Reminder of what they're leaving behind

"You've got [product name] in your cart. Ready when you are." This works especially well for higher-ticket items where shoppers need a nudge rather than an incentive.

Using Urgency Widgets to Prevent Exit in the First Place

The best exit intent strategy is keeping visitors engaged before they even think about leaving. On-page conversion widgets can do this:

  • Countdown timers create a natural deadline for sale prices, flash deals, or same-day shipping cutoffs
  • Low stock indicators signal scarcity and prompt faster decisions
  • Live visitor counters show other shoppers are looking, which triggers competitive instinct
  • Shipping timers show exactly when an order needs to be placed to arrive by a specific date

When visitors see these on your product pages, many make faster decisions and never reach the exit-intent moment at all.

How to Add an Exit Intent Popup on Shopify

Apps are the most practical route for most merchants. A dedicated conversion app lets you set trigger conditions — time on page, scroll depth, cart items present — without touching any code. The configuration is visual and changes don't require theme deploys.

If you're comfortable with JavaScript, you can detect mouseleave events on the document and show a custom HTML modal. This works, but it requires ongoing maintenance and can conflict with theme updates.

A Note on Mobile

Exit intent is harder to detect on mobile. Instead of cursor movement, trigger your popup based on scroll-up velocity or after a set amount of time on the page. Keep the popup small and easy to dismiss — mobile users are less patient with interstitials.

Start Recovering More Visitors

Boolean Conversion Kit includes urgency tools like countdown timers, stock counters, and live visitor displays that reduce exit intent before it becomes a problem. Install it on your Shopify store and start converting more of the traffic you're already getting.

Continue reading

Complete Profit Optimization Platform