Ajouter

Lorem ipsum

Lorem ipsum

CRO / Conversion

5 min

How do you add an exit pop-up form in Webflow?

In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to add an exit pop-up form in Webflow.

Use caseGoal
Lead magnetCapture an email in exchange for a resource
Discount / offerConvert a hesitant visitor
FeedbackUnderstand why the visitor is leaving
Recommended contentReduce bounce rate

Why add an exit pop-up form to your website?

Adding an exit pop-up form to your website can be useful for several reasons:

  1. Reduce bounce rate: An exit pop-up can grab the attention of visitors who are about to leave your site, encouraging them to stay longer or explore more.
  2. Increase conversions: By offering a special deal, a discount, or an incentive, an exit pop-up can convert potential visitors into customers.
  3. Collect information: Email forms in exit pop-ups let you collect valuable information about visitors, such as their email addresses, for future marketing campaigns.
  4. Gather feedback: An exit pop-up can include a quick survey to understand why visitors are leaving the site, giving you insights to improve the user experience.
  5. Promote specific content: You can use exit pop-ups to direct visitors to specific content, blog posts, white papers, or other resources that might interest them.
  6. Increase engagement: By offering relevant content or exclusive deals, an exit pop-up can encourage visitors to interact more with your site.
  7. Reduce cart abandonment: For e-commerce sites, an exit pop-up can remind users about items left in their cart and offer incentives to complete their purchase.

In short, a well-designed exit pop-up can improve the user experience, increase conversions, and provide valuable data for your marketing strategy.

good to know

The mouseleave trigger doesn't work on mobile. On mobile, use a scroll-based trigger or a delay (setTimeout). Make sure to use localStorage so the pop-up doesn't appear on every visit.

How does it work?

Whether it's a pop-up to collect feedback, offer a special deal, or share a lead magnet, the process is the same.

Here's how it works: you just build your pop-up (modal) in Webflow and add a small JS script to switch your modal from display : hidden to display : flex when the user moves their mouse out of the window.

1. Build your Webflow modal

Best practice: add an overlay behind it to optimize the UX (see screenshot). Be careful: you need to set your modal to "display : hidden" by default.

Exit pop-up built for La Solive

2. Add this script in the <body> of your page

good to know

Important: Make sure you replace "modal-lead-gen-wrapper" in the code above with your modal's class

3. Publish and test the result

Published on 10.04.2025

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...