Exit-Intent Popups: How They Work and When to Use Them on Your Store

An exit-intent popup waits until a shopper seems to be on the way out, then makes one last, relevant offer. Done well, it is the least intrusive popup you can run, because it never interrupts someone who is still reading. Done badly, it nags people who were leaving anyway, or interferes with their browser. This guide explains how exit intent is detected, where it works and where it doesn’t, which offers fit that moment, and how to set one up so it helps rather than annoys.

Updated

What an exit-intent popup is

Most popups are triggered by time or position: they appear a few seconds after the page loads, or when the visitor scrolls to a certain point. An exit-intent popup is triggered by a different signal: behavior that suggests the visitor is about to leave the page. Instead of guessing when someone is ready for a message, the popup waits for a sign that the visit is ending.

That timing is the whole appeal. A shopper who is still reading a product page doesn’t need to be interrupted. A shopper who is heading for the door has already decided not to act on this page, so a short message at that point costs them very little attention. If the message gives them a reason to stay, such as a clear answer to a common objection or a modest incentive, some of them will.

The flip side is that exit intent is an inference, not a fact. The script that shows the popup can’t read minds; it reacts to movements and clicks. Some of the people who see the popup weren’t leaving at all. That is why the offer, the targeting and the frequency matter as much as the trigger itself.

How exit intent is detected

There is no browser event called “the visitor is leaving.” Popup tools approximate it with a handful of signals, and each one has blind spots. Knowing them helps you judge what your own tool can and can’t do.

SignalWhat it watchesStrengthsLimits
Cursor leaving the pageOn desktop, the mouse pointer moving out of the page area, usually upward toward the tabs, address bar or close buttonThe classic approach. Catches people about to switch tabs, type a new address or close the windowNeeds a mouse. Touchscreens have no cursor, so this signal doesn’t exist on phones and most tablets
Link clicksA click on a link that would take the visitor to another pageWorks with any input that produces a clickClicking a link usually means the visitor is still browsing your store, not leaving it. Interrupting that click can feel like an obstacle
Back buttonNavigation back through the browser historyCatches visitors returning to search results or a previous siteGetting in the way of the back button is risky. Google’s spam policies name “back button hijacking” as a malicious practice (more on this below)
Page unloadThe browser’s beforeunload event when a tab closes or reloadsFires on close, reload and typed navigationBrowsers only allow a generic “Leave site?” confirmation here, never your own popup. MDN also notes the event isn’t reliably fired, especially on mobile
Inactivity or fast scroll-upNo interaction for a while, or a quick scroll back toward the topGives touch devices some kind of signalA weak proxy. Plenty of people pause or scroll up while they are still interested

Two takeaways follow from this. First, exit intent is strongest on desktop, where the cursor gives a real signal. Second, any method that blocks navigation, whether a link, the back button or the browser’s own close, deserves extra care, because it trades a small chance of a sale for a definite moment of friction.

A word on the back button. Google’s spam policies list “back button hijacking” under malicious practices and describe it as a site interfering “with user browser navigation by manipulating the browser history or other functionalities, preventing them from using their back button to immediately get back to the page they came from.” If a popup tool adds history entries so that pressing Back shows an offer instead of going back, check that setup against the policy before you rely on it.

Exit intent on mobile

Mobile deserves its own section because so much store traffic is on phones and the detection story is weaker there. There is no cursor, so the classic signal is gone. The browser’s unload event can’t display your content, and MDN warns that it isn’t reliably fired on mobile; for example, it doesn’t fire when a user switches to another app and later closes the browser from the app switcher. What remains are proxies such as inactivity, scroll direction and navigation clicks, each of which mislabels interested shoppers as leaving.

In practice, many stores take one of two approaches on phones:

  1. Use exit intent on desktop only, and use a time- or scroll-based trigger on mobile with a small, easy-to-dismiss format such as a bar. The offer can be the same; only the trigger and the format change.
  2. Skip the popup on mobile and place the offer inline on the page, for example a free-shipping line near the price or a sign-up block in the footer.

Whichever route you take, size matters more on a phone. A popup that covers most of a small screen is exactly the pattern Google’s guidance on intrusive interstitials warns about. Our companion article, Pop-up Best Practices That Don’t Hurt SEO or Annoy Shoppers, covers that guidance in detail and how to stay on the right side of it.

When exit intent is the right trigger

Exit intent fits messages that are only worth showing to someone who has stopped engaging. A useful test: would this message be welcome if the visitor were still in the middle of reading? If the answer is “yes, and it would help them,” show it inline or with a scroll trigger instead. If the answer is “no, it would only distract them,” exit intent is the better moment.

SituationGood fit for exit intent?Why
First-time visitor leaving a product pageOften yesThey found something but didn’t act. A first-order discount or an email sign-up keeps the door open
Visitor leaving the cart pageYes, with a reassuring messageAnswering shipping, returns or payment questions can address the reason they hesitated
Visitor leaving a blog post or guideSometimesA newsletter or guide sign-up suits readers; a hard product discount usually doesn’t
Visitor leaving the order-complete pageNoThey just bought. A “wait, don’t go” offer looks careless and may train buyers to wait for discounts
Visitor who already saw the offer this visitNoRepeating the same popup is one of the fastest ways to irritate people
Visitor arriving from an ad with a specific promiseUsually notShow the promised offer up front instead; hiding it until exit breaks the ad’s promise

Offers that suit a leaving visitor

An exit popup has a second or two to earn attention, so the offer should be simple, specific and easy to accept. These are the common types, with notes on when each one makes sense.

  1. First-order discount or coupon. The most familiar exit offer. Keep it modest and state the terms in plain words: what it applies to, the minimum spend if any, and when it expires. Avoid running it on every page for every visitor, or regular shoppers learn to wait for it.
  2. Free-shipping reminder. Unexpected shipping costs are a frequent reason people hesitate. If you offer free shipping over a threshold, an exit message that states the threshold clearly may be enough, with no extra discount needed.
  3. Email sign-up. Instead of trying to win the sale now, ask for permission to follow up: a newsletter, back-in-stock alerts or a welcome offer delivered by email. This works well for visitors who are browsing rather than buying.
  4. Answers to common objections. Returns policy, delivery times, sizing help, contact options. On a cart page especially, a short reassurance can matter more than a discount.
  5. A pointer to something related. New arrivals, a best-seller list or a gift guide, for visitors who didn’t find what they wanted.

Whatever the offer, be honest about it. If a countdown appears, it should reflect a real deadline. The FTC’s 2022 staff report on dark patterns cites countdown timers designed to make consumers believe they only have a limited time to purchase as an example of a manipulative design. A real end date on a real promotion is fine; a timer that resets for every visitor is not.

Writing the copy

Exit popups are read in a glance, so the copy has three jobs: say what the visitor gets, say what it costs them, and make declining easy. A simple structure covers all three.

PartWhat it doesExample
HeadlineStates the benefit in a few words“Free shipping on orders over $50”
Supporting lineRemoves the main doubt or states the terms“Applies to all items. Returns are free within 30 days.”
Primary buttonNames the action, not a generic “Submit”“Get my code” or “Keep shopping”
Decline optionA visible, neutral way out“No thanks” or a clear close icon

Keep the decline option neutral. Wording that shames people for saying no (“No thanks, I like paying full price”) may get a few extra clicks, but it reads as manipulative and reflects on the whole store. If the offer and the thresholds in the example above don’t match your real policies, change them; the popup should repeat what checkout will confirm, never promise something checkout contradicts.

Targeting: who should see the exit popup

The trigger decides when a popup appears. Targeting decides who sees it, and that is where most of the quality comes from. Four questions cover most stores:

  1. Which pages? Product pages and the cart are the usual candidates. Exclude checkout, account pages and the order-complete page so you never interrupt someone mid-purchase or after one.
  2. Which visit? A first-time visitor and someone on their fifth visit need different messages. A welcome discount suits the first; a reminder of new arrivals suits the regular.
  3. What have they already seen? Someone who viewed the cart but never reached the order-complete page is a different audience from someone who only read one blog post.
  4. Where did they come from? Visitors from a paid campaign with a specific offer should see that offer, not a different one at exit.

Also decide which devices get the popup. Because detection varies so much between desktop and touch screens, it is reasonable to run exit intent on desktop and use a different trigger, or nothing, on mobile.

Setting up an exit-intent banner in marketingLABO

marketingLABO shows pop-up banners on your site from a single tracking tag, and exit intent is one of the four triggers you can choose for a banner, next to “show immediately,” “after a number of seconds on the page” and “when the visitor scrolls to a percentage of the page.” With the exit-intent trigger, the banner is shown as a modal. On desktop it appears when the mouse leaves the window through the top edge, toward the tabs or address bar. On phones and tablets it appears when the visitor has scrolled down a fair way and then scrolls back up quickly, a common sign they are done with the page. The trigger doesn’t touch the Back button, browser history, link clicks or the browser’s “Leave site?” prompt. Each banner shows at most once per page view, and one the visitor closes stays closed for the rest of that browser tab’s session. The modal can be closed with the keyboard: Escape closes it, and focus stays inside it while it is open. The targeting rules described above are available as conditions on the same banner:

ConditionWhat you can set
Page URLThe pages the banner runs on, with an option to include prefix matches (for example, every URL under /products/)
Visit frequencyFirst visit, or a specific number of visits
Days since last visitFor returning visitors after a gap
Pages viewed / not viewedFor example, viewed the cart page but not the order-complete page
Traffic sourceOrganic search, referral, direct, or a URL parameter
Display periodStart and end dates, useful for a time-limited promotion
DevicesAll devices, mobile only, desktop only, or separate desktop and mobile images

A practical way to build the first exit banner:

  1. Pick a template from the exit-intent or coupon categories (there are 55 English e-commerce templates in total) and edit the copy, colors and button.
  2. Choose the format: image only, image with headline and button, with a countdown, or with an email sign-up form.
  3. Set the trigger to exit intent.
  4. Set the page URL to your product pages (with prefix match) or your cart page.
  5. Add a visit condition, for example first visit only, so regulars don’t see a welcome discount.
  6. Set the device option. All devices works, since phones use the fast scroll-up signal; if you want a lighter touch on small screens, run the modal on desktop only and add a separate mobile banner in bar style with a scroll or time trigger.
  7. Publish, then visit your own store on the devices you target to see exactly when the banner appears and how it closes.

Impressions and clicks are reported per banner campaign in the same dashboard as your analytics. The Free plan includes one pop-up banner and the Light plan three; the Standard plan has no limit. Banner A/B testing isn’t available, so compare versions by running them in sequence, as described in the next section.

Measuring whether it helps

An exit popup is easy to launch and easy to misjudge. A high click rate on a discount says little on its own: some of those shoppers would have bought anyway. A few habits keep the evaluation honest.

  1. Write down the goal first. Email sign-ups, coupon redemptions and completed orders are different outcomes. Pick the one the popup is meant to move.
  2. Record a baseline. Note the conversion rate and sign-up numbers for the targeted pages over a few weeks before launch.
  3. Change one thing at a time. Without a built-in split test, run version A for a period, then version B for a comparable period, and avoid overlapping with big promotions or seasonal peaks.
  4. Check redemption, not just clicks. If the popup offers a code, compare how many orders used it with how many people clicked.
  5. Watch the side effects. In your analytics, look at whether time on page or pages per visit change on the targeted pages, and read a few individual visitor timelines to see how the popup fits into real sessions.

Common mistakes

  1. Showing it on every page to every visitor. The popup becomes background noise and regular customers learn to expect a discount.
  2. Showing it more than once per visit. One chance per visit is plenty.
  3. Hiding the close button. A small or low-contrast “×” turns a polite offer into a trap. Make closing obvious and let clicking outside the popup or pressing Escape close it too.
  4. Interfering with navigation. Blocking a link click or the back button to show an offer is the opposite of exit intent’s promise not to get in the way, and back button hijacking is specifically named in Google’s spam policies.
  5. Fake urgency. Countdown timers that restart and “only 2 left” messages that aren’t true damage trust and attract regulatory attention.
  6. Covering the screen on mobile. Large overlays on small screens are the core example in Google’s guidance on intrusive interstitials.
  7. Asking for too much. A form with name, phone and birthday at exit gets abandoned. An email field and one button is usually enough.

Frequently asked questions

Do exit-intent popups hurt SEO?

Google’s current documentation lists “Do your pages avoid using intrusive interstitials?” among its page experience self-assessment questions, and its interstitials page says intrusive dialogs can make it hard for search engines to understand your content. An exit popup that appears as the visitor leaves doesn’t cover the content when they arrive from search, which is the moment Google’s original 2016 announcement focused on. Keeping it small and easy to dismiss is still the safe course. The details are in our pop-up best practices guide.

Do exit-intent popups work on phones?

Not in the same way as on desktop. Without a cursor, tools rely on weaker signals, and the browser’s own unload event can’t show your content. marketingLABO uses a fast scroll back up after the visitor has read down the page, which is a reasonable proxy but will also catch some people who are still interested. Keep the format small on phones, or use a different trigger or an inline offer.

Should every exit popup offer a discount?

No. Free-shipping clarity, returns information and an email sign-up often fit better, and they don’t teach customers to wait for a code. Save discounts for audiences where they make sense, such as first-time visitors.

How many exit popups should a store run?

Start with one, on the pages where people hesitate most, usually product pages or the cart. Add a second only for a clearly different audience, such as returning visitors, so that no one sees two exit messages.

Can I show a different exit offer to visitors from an ad?

Yes, if your tool can target by traffic source or URL parameter. Often the better move is to show the ad’s promised offer when the visitor arrives, and reserve exit intent for organic and direct visitors.

Summary

Exit intent is a timing tool. It works best on desktop, with one clear offer, on the pages where shoppers hesitate, for a defined audience, once per visit. On mobile, switch to a lighter trigger or an inline message. Keep the close button obvious, keep urgency honest, and don’t get in the way of navigation. Then measure against a baseline instead of trusting the click count.

If you want to try this on your own store, marketingLABO’s Free plan includes analytics, heatmaps and one pop-up banner with no time limit. Plan details are on the pricing section of the homepage.

Sources

Google Search Central: Spam policies for Google web search (back button hijacking)

Google Search Central: Avoid intrusive interstitials and dialogs

Google Search Central: Understanding page experience in Google Search results

Google Search Central Blog: Helping users easily access content on mobile (2016)

MDN: Window beforeunload event

MDN: Element mouseleave event

FTC: FTC Report Shows Rise in Sophisticated Dark Patterns Designed to Trick and Trap Consumers (September 15, 2022)

Start free — no credit card needed

Sign up free