How to Set Up Exit Intent Popups in 5 Minutes

Set up exit intent popups on your website in about 5 minutes, with no code, and catch visitors before they leave.

Exit intent popup settings with a sensitivity slider and a coupon popup.

This guide walks you through real examples, best practices, and setup tips to help you reduce bounce rate, recapture potential customers, and grow your email list.

Build an Exit Intent Popup Now

An exit intent popup appears just as someone moves to leave your site. On desktop, Gleam's Capture watches for the mouse heading toward the tab's close button. On mobile, it fires when the visitor taps Back. Either way, you get one last, well-timed chance to turn a visitor who was about to go into a subscriber or a customer.

The call to action is the most critical part of your popup, the more relevant it is to your target audience, the more effective it will be.

Exit intent coupon popup on a homewares store showing the two items left in the cart and a 10% discount code offer

Ready to put this into practice? Creating your own high-converting popup takes minutes, and you don't need a developer.

Start by setting up a Capture account and installing our lightweight tracking script: click Get Install Code and paste it before </head> on your site. You only do this once, and it loads asynchronously, so it won't slow your pages down (Installing Capture has the details). From there, choose the Exit Intent Popup or Exit Intent Discount Coupon template to design a visually rich prompt that encourages users to stay or subscribe.

Upload your graphic, tweak the colours and layout, and on the Targeting tab set rules such as:

  • On Exit to trigger on exit, on Desktop + Mobile, Desktop Only or Mobile Only, with High, Medium or Low sensitivity
  • Existing Subscribers to hide it from people who've already signed up (it's on by default)
  • Current URL to match a specific blog URL or page
  • Times Shown so each visitor sees it once per visit
Gleam interface showing three Capture targeting rules: On Exit set to Desktop Only with High sensitivity, Times Shown limited to 1 per visit, and Existing Subscribers hiding the popup from people who completed this capture

Use integrations to connect with your email service (more on syncing below) and deliver a lead magnet, such as a discount code or downloadable resource, right after users enter their email address.

Once you're ready, flip the toggle and activate the campaign. Then press Ctrl+Shift+U on your own site to open the Capture debugger and check your rules are firing.

Capture plans start at Pro. You can build and preview a Capture before you subscribe, and keep it as a draft for up to a month until you're ready to launch.

A few more rules make an exit popup feel considered rather than pushy:

  • Closed Capture is on by default next to Existing Subscribers, so anyone who closes the popup doesn't see it again
  • Exclusive Per Visit shows only one Capture per visit, so popups never stack if you run several
  • Exclude if Visited URL hides the offer from people who've reached checkout or your thank-you page, so buyers don't get a discount after they've paid
  • Pageviews or Visited x Times waits until someone's engaged, like their second page or third visit
  • Device shows a Capture on Desktop, Mobile or Tablet only, so you can run a full popup on desktop and a smaller bar on phones
  • Schedule (Business Plan) sets the Time and Date a Capture can show, like weekday business hours for a live-chat offer, or only during a sale
  • Rule groups (Premium Plan) combine conditions with OR, such as On Exit or 60 seconds of idle time, which helps on phones where exit detection is weaker

Before setting up your campaign, it helps to understand why website visitors leave in the first place:

  1. They've finished reading your content and are ready to go
  2. The content didn't match their intent
  3. They couldn't find the product or answer they needed
  4. They're price-sensitive and waiting for a discount code or coupon code
  5. They got distracted and forgot what they were doing
  6. They're still in the research phase and not ready to convert
  7. Your product feels unaffordable or too complex
  8. Your offering didn't match their needs

This is where exit intent popups come in. These smart overlays are triggered just before a user leaves, giving you a last chance to recapture potential customers.

We'll now explore several exit intent popup examples, each designed for a different goal, from offering a discount to announcing a giveaway. Every example below was designed with a Custom HTML/CSS Capture (Premium), but you can build each one with Capture's standard layouts too.

An exit popup doesn't have to sell. Ask the question instead, and that list stops being guesswork for your site. Give visitors a few one-tap answers ("Just browsing", "Shipping costs too much", "Couldn't find my size") with an optional email for a thank-you code, and within a week you'll know which reason costs you the most. The Collect Survey Responses template is a quick start.

Exit survey popup on a running shoe store asking What stopped you today, with four one-tap answers and an email field for a 10% code

Few things are more valuable than a visitor who adds items to their cart. But if they leave without checking out, and you don't act, you're losing both revenue and momentum. Across 50 studies, Baymard Institute puts the average cart abandonment rate at about 70%.

Using an exit intent trigger, you can detect when a user is about to leave and display a well-timed offer, like a coupon code or limited-time deal, that keeps them in the flow.

This approach not only reduces cart abandonment, it also helps stop customers from leaving to search for a better deal elsewhere.

💡 Try offering a discount directly in the popup to win back price-sensitive users. In Capture, pair On Exit with a Current URL rule containing /cart, and use a Coupon Capture (Business Plan) to reveal the code.

Learn how to build popups which will re-engage users and drive sales from customers who are abandoning their shopping carts.
Recover Abandoned Shopping Carts With Capture

Learn how to build popups which will re-engage users and drive sales from customers who are abandoning their shopping carts.

Full-screen exit intent takeover for a running shoe brand announcing a 48-hour, 30% off flash sale with a countdown timer

E-commerce sites are full of activity, and many website visitors overlook promotions, especially during high-traffic moments. Use a full-screen exit intent popup to capture attention before they leave.

These overlays are perfect for offering a discount with a sense of urgency, reminding shoppers of limited-time deals or exclusive offers. When executed well, this type of lead magnet can lift conversions by up to 20%.

Looking for proof that exit popups work? A clear, time-boxed message paired with a code often outperforms any passive promo banner. Use a Takeover for the full-screen look, or a Countdown Capture (Business Plan) to show the clock running down.

Mobile exit intent popup for a skincare brand offering new visitors 15% off their first order, with a Yes, give me 15% off button

Want your exit intent popup to feel personal and effective? Try targeting first-time users with a new visitor welcome popup that includes a special discount code.

By using the New Visitor rule, you can display this only to first-time website visitors, creating exclusivity and increasing conversion rates. These popups also help you grow your email list while reinforcing your brand's voice and value from the very first click.

This is one of the exit intent popup best practices for driving immediate engagement and building loyalty from the start. On mobile, a Two Step Capture (Business Plan) works well: one tap to say yes, then the email field.

Exit intent popup for a coffee roaster welcoming visitors from r/Coffee on Reddit with a free first bag on any subscription

When users come from high-intent sources, like Reddit or niche forums, don't miss the chance to convert them with a tailored message.

With Capture's Referring Domain rule, you can show exclusive messages to website visitors based on where they came from. It's one of the best ways to increase opt-ins and engage users while they're still interested.

💡 These campaigns can convert up to 70% of users, especially when paired with a targeted coupon code or referral offer.

Exit intent popup for a surf shop announcing a giveaway to win a custom surfboard, with three steps to enter and six days left

Running a contest? Add an exit intent popup to let users know before they leave. This approach is especially effective if users didn't see your contest banner or if they landed on another part of your site.

This popup converted 80% of users into competition entrants, proof that the right message, at the right time, can turn potential customers into fans. Set the Capture's action to Clicks and point the button at your Competition, or start from the Giveaway Promotion Popup template.

Floating exit intent popup in the corner of a meal kit site telling returning members their next box ships free

Everyone wants to feel like a VIP. Member-only popups let you offer exclusive content or discounts to subscribers or repeat visitors.

Pairing this with a personalised message and a discount code is a proven tactic that reduces cart abandonment and keeps users returning. Use the Returning Visitor rule for repeat visitors, or Cookie Match (Business Plan) to recognise customers who are logged in. A Floating Capture sits in the corner, so it rewards loyal customers without blocking the page.

Exit intent newsletter popup on a marketing blog inviting readers to subscribe to a weekly email before they leave

Your newsletter opt-in form shouldn't live in your footer. Use an exit intent popup to capture attention when users are about to bounce.

Ask for just their email address, offer something of value (like an exclusive guide or promo), and watch your conversion rate climb. This strategy helped Manybooks increase signups by over 100%.

It's one of the simplest ways to grow your email list and convert website visitors into subscribers. Leave the Existing Subscribers rule on so people who've already joined never see it again.

Dark exit intent popup for a marketing conference offering $200 off an early-bird pass, with name and work email fields

Planning a conference or local event? Don't rely on buried forms to do the heavy lifting. A simple exit intent popup can dramatically increase signups from the traffic you already have.

One campaign for Pausefest used this approach to promote event tickets, converting 20% of users into subscribers and boosting visibility by 1900%. Ask for a name and email with the Name + Email action, and add a Date rule so the early-bird message switches off when the offer ends.

Exit intent popup for a productivity app launching on Product Hunt, offering 30% off the Pro plan for launch week

Launching on Kickstarter, Indiegogo or Product Hunt? Capture early momentum by showing a timed exit intent popup when users scroll, pause, or navigate away.

You can tailor the popup based on mouse movements, referring source, or even the landing page itself, with the On Exit, Scrolled % of Page, Idle Time, Referring Domain and Current URL rules. This creates a custom experience for press traffic, feature roundups, or pre-launch warmups.

The goal: capture email addresses from potential customers before they disappear.

Use Gleam's Referring Domain rule to easily set this up, no dev time needed.

Exit intent is only the trigger. These rules decide who sees which message:

  • Match the ad. Query String reads UTM tags, and Past Query String remembers them, so a visitor from your Instagram ad still sees the Instagram offer three pages later
  • Go local. Country rules show free shipping only where you ship free, and Language rules swap the copy
  • Stick to the dates. A Date rule switches a sale popup off the moment the sale ends
  • Chain two steps. Trigger Campaign (Business Plan) shows a second Capture after the first, like the email first and the code second
  • Take it offline. Every Capture also gets a hosted landing page and a QR code, so the same offer works on packaging, receipts or an event stand

An email address that sits in a spreadsheet won't send a welcome email. Capture sends each new subscriber straight to your email tool, with 30+ email providers to choose from, including Klaviyo, Mailchimp, Kit, HubSpot, ActiveCampaign and Omnisend.

  • Set a default once. Pick your provider and list under Settings > Integrations, and every new Capture uses it
  • Connect more than one. The Integrations tab on each Capture can send the same subscriber to several providers
  • Tag by offer. Mailchimp, Kit, AWeber and Shopify accept tags, so tag your cart popup exit-cart and start the matching flow. Mailchimp also takes groups and a double opt-in setting
  • Map your fields. Send names and Custom Fields to the matching fields in your provider
  • Deliver from your provider. Let the tagged welcome flow send the code or download, so it lands in the inbox you just earned

Clicks Captures only send people somewhere, so they don't collect emails and have no Integrations tab. Some providers need the Business or Premium Plan.

A popup that annoys people costs you more than it earns. Before you go live:

  • Mind Google on mobile. Google's guidance says popups that cover the main content can hurt how a page performs in search. Exit intent shows as people leave rather than when they arrive, but keep mobile popups small and easy to close.
  • Show phones something smaller. Use a Device rule to give desktop visitors the full popup and phone visitors a Floating or Bar Capture that leaves the page readable
  • Test the Back button. On mobile, On Exit fires when someone taps Back, so check it on your own phone and make sure closing the popup still lets them leave.
  • Show it once. Times Shown and the default Closed Capture rule stop the same person seeing it on every page.
  • Make it accessible. A visible close button, Escape to close, and labelled fields help everyone, not just screen reader users.
  • Ask for consent properly. If you'll send marketing emails, say so, and never pre-tick an opt-in box. The Agree Checkbox adds a consent line you control.

Capture's standard layouts cover everything above. When you want something no template has, a Custom HTML/CSS Capture (Premium Plan) lets you design the popup from scratch, like this pick-a-box offer. Keep it honest: every box should hold a real reward, and say up front what's on offer.

Custom exit intent popup for a homewares store asking visitors to pick one of three gift boxes, each hiding a reward: 10% off, free shipping or a free gift

We run exit intent on our own Capture page. Move your mouse toward the close button on gleam.io/app/capture and this popup slides in: an On Exit rule (Desktop Only, High sensitivity) plus a Current URL rule, so it only shows to people already looking at Capture. We A/B test three versions of it against each other.

Gleam's own exit intent popup headed 70 of every 100 carts close the tab, with a Make this popup yours button and the decline line Maybe later, I'll lose a few more carts

Steal the decline line. A second button that admits what the visitor gives up ("Maybe later, I'll lose a few more carts") reads as a wink. "No, I hate saving money" reads as a guilt trip.

Each Capture's summary shows the leads collected and its Conversion Rate, so you can see which offer earns its place. On the Business Plan, A/B Testing splits traffic between versions (a 10% code against free shipping, say) and reports Impressions, Conversions and Conversion Rate for each, so you keep the winner rather than guessing.

Worked example card: A/B test an exit offer. Version A, 10% off your cart with the code sent by email. Version B, free shipping on this order. Run two weeks or until each version has 1,000+ Impressions. Measure Conversion Rate in A/B Reporting, then orders that used each code

Card inviting you to build an exit intent popup with Capture, starting from 70+ ready-made templates

Check out our helpful documentation for step by step instructions on setting up your own Popup or get started right away!
Ready to Build Your Own Exit Intent Popup?

Check out our helpful documentation for step by step instructions on setting up your own Popup or get started right away!

What’s The Best Exit Intent Popup For Offering A Discount?

Use a simple, clear offer with a trigger set to On Exit. Gleam's Exit Intent Coupon template gives you that setup with a coupon code ready to edit.

Can I Use Exit Popups to Grow My Email List?

Yes. Add the On Exit rule to a Capture so your signup form shows when a visitor looks about to leave, and connect it to your email provider.

How Do Exit Intent And Idle Time Triggers Differ?

Exit intent targets users about to leave, while idle time targets users who have stopped engaging. Expand this FAQ to see when to use each trigger for better conversions.

Sticky Vs Floating Popup: Which Is Better?

Pick a sticky bar for always-on offers like coupons and sale notices, and a floating popup for time-limited promotions.