How-to guides
How to Set Up an Exit Intent Popup (Step by Step)
Learn how to create an exit intent popup that turns leaving visitors into leads. Step-by-step guide with common problems and what to do next.

An exit intent popup appears when a visitor is about to leave your website. It tracks mouse movement and shows a targeted message right before they go.
What an exit intent popup is (and what it does)
An exit intent popup is a small window that appears when the visitor's mouse moves toward the top of the browser window, as if they are about to close the tab or type a new address. The technology detects that movement and triggers the popup. Use it to show a discount code, a lead magnet, a newsletter signup, or any offer that might change the visitor's mind or capture their details before they leave.
Think of a local bakery that sells online cooking classes. A visitor reads a recipe post, then moves the mouse to leave. An exit intent popup appears with the headline "Get our free bread-making checklist" and an email field. That turns a departure into a new subscriber because it offers something useful at the moment they are leaving.
How to create an exit intent popup, step by step
You can build an exit intent popup in most landing page builders, popup tools, or email platforms. The steps below work in any tool. After that, you will see how Leadpages handles each step.
1. Decide on the goal of the popup
Know the one action you want the visitor to take. Common goals:
- Collect an email address for a newsletter
- Get a person to download a free guide or checklist
- Offer a discount or free shipping to push a purchase
- Register someone for a webinar or event
Write the goal in one sentence. For example: "Get the visitor to give their email in exchange for a free pricing comparison sheet." This keeps the popup focused.
2. Choose a tool that supports exit intent triggers
Most popup builders and landing page platforms offer an exit intent trigger. Tools like Leadpages, popup-specific apps, and some email platforms let you show a popup on exit intent. In Leadpages, you can create popups from the same dashboard where you manage landing pages. The popup builder includes exit intent as a trigger setting.
3. Set the trigger to exit intent
In your tool, open the popup trigger settings and select "exit intent." Many tools also let you add conditions, like firing only after someone has spent at least 15 seconds on the page. That prevents a popup from appearing right away if someone moves the mouse up by accident.
For mobile, there is no mouse. Use a timed trigger or a scroll-depth trigger instead. Many tools let you serve a different popup to mobile users on a delay.
4. Design the popup layout
Keep the design simple. A short headline, a brief line of text, and one call-to-action button is enough. Avoid clutter. Use your brand colors and logo, but skip heavy images and extra buttons. The visitor is leaving. They need to grasp the offer fast.
Leadpages has a drag-and-drop popup builder. Start with a template and adjust text, colors and the button to match your brand.
5. Write copy that matches the page the person is leaving
Make the popup relate to the page content. Someone reading a blog post about lawn care will respond better to a seasonal lawn checklist than a generic "sign up for our newsletter." Match the offer to the page.
Keep the headline short and clear. Use the free headline analyzer to score and improve it. Support it with one sentence that explains the benefit. For example, on a plumbing service page: headline "Claim your first-visit discount" and text "Join our list and we'll send you the coupon right away." Then a button that says "Send me the coupon."
6. Connect the form to your email tool or CRM
Most popups include a form. Connect it to your email service, CRM, or another system so the data moves automatically. Most tools have native integrations or use Zapier. In Leadpages, you can connect popup forms to dozens of tools directly, or use the form collection features to save leads and forward them.
If you only collect emails, setup takes a few minutes. Test it with a real email and confirm it lands in your list.
7. Set display settings and advanced rules
Choose where the popup appears. Show it on every page, only on specific pages, or exclude pages like checkout. Control how often someone sees it. For example, set a cookie so the popup does not show again for 30 days after a visitor closes it or submits it. That prevents annoying regular readers.
Also decide how it behaves on mobile. Replace the exit intent trigger with a timed or scroll-based trigger for mobile visitors.
8. Preview and test the popup
Before publishing, preview on different screen sizes. Open your page in an incognito window and move the mouse toward the address bar to trigger the popup. Check the design, form, and thank-you message or page. Ask a colleague to test it too. Fix typos and broken links.
How to build an exit intent popup in Leadpages
If you use Leadpages, the process above happens in one dashboard. Create a new popup from the Pop-ups section. Choose a template or start from scratch. Drag and drop elements onto the canvas. In Publish Options, choose the exit pop-up setting. Write your copy and style the button. Connect the form to your email provider. When you are ready, publish the popup and add its code to your site (on WordPress, the Leadpages plugin can add it for you). The same account also lets you build landing pages, A/B test offers, and track results in analytics.
Common problems with exit intent popups (and how to fix them)
Even a well-designed exit intent popup can run into issues. Here are the most common ones and how to fix them.
The popup appears too early
Visitors get annoyed when a popup blocks the page before they have read a sentence. Add a time delay before the exit intent trigger becomes active. Many tools let you set "show only after 10 seconds on page." That way it fires for people who actually spent time on your content.
The offer does not match the page
A person leaving a pricing page may not want a general newsletter. Group your most visited pages and create a popup for each group. A real estate agent might show a "home valuation checklist" on posts about selling and a "buyer's guide" on posts about buying.
The close button is hard to find
A popup that traps a visitor hurts your brand. Include a clear close button (usually an X in the corner). Make it large enough to tap on a tablet. Avoid tiny, low-contrast links. The popup should feel like an invitation, not a demand.
The popup does not work on mobile
Exit intent detection is a desktop feature. On mobile, use a different trigger. A delay of 8 to 12 seconds usually works, or a scroll trigger that shows the popup after someone has scrolled halfway. Preview the mobile version. Keep mobile popups small and avoid covering the entire screen, which can lead to search penalties.
You ask for too much information
A long form kills performance. Stick to one field, usually an email address. If you must collect a name, add it, but keep the total fields low. Gather more details later through follow-up email.
The popup fires too often for the same person
Use cookies or local storage to control frequency. Set the popup to appear once per visitor per 30 days, or never again after someone submits it. This respects your audience and keeps the site pleasant to visit.
What to do after your exit intent popup goes live
Once the popup is running, measure, test and improve it.
Start by checking the numbers. Most tools show views, clicks, and form submissions. In Leadpages, the analytics dashboard shows these numbers for every popup and landing page. A low click rate often means the headline or offer needs work. A high click rate but low submission rate can point to a confusing button or a form that asks too much.
Next, run an A/B test. Duplicate your popup and change one thing: the headline, the button color or the offer. Show each version to half your visitors. After enough data has accumulated, use the free A/B test significance calculator to check if the result is by chance. Then replace the original with the winner.
Plan the journey after the popup. When someone submits their email, what happens? Show a thank you message or send them to a confirmation page. That page can include the download link or a next step. From a Leadpages popup, you can send the person to a thank you page built with the landing page builder. A simple, friendly confirmation builds trust.
Think beyond the popup. Exit intent works best as part of a wider plan. Pair it with a lead capture landing page for the same offer. Use the popup on blog posts and the landing page in email signatures or social bios. This gives visitors more than one path to your offer.
If you do not have a tool for building popups and landing pages, try Leadpages. It includes popups, landing pages, forms, A/B testing, and analytics in one account. Start building with a free trial.