An exit popup, also known as an on-exit banner, or exit intent banner, is a web layer that is shown to the customer when they're leaving your website.
Customers leave your website by closing the tab of your website, switching to a different tab, or closing the browser altogether. A piece of Javascript code in the exit popup detects their intention to leave by following their mouse movements.

Bear in mind that Exit popup does not work on mobile devices as you do not have a mouse to follow.
# Why you should use the exit popup
Exit popup allows you to grab the customer's attention one last time before they leave your website, thereby giving you the opportunity to motivate your customer to stay and possibly convert.
Recommended uses are the display of recently viewed items, "Others Bought too ..." style personalized recommendations, or to offer discounts with the requirement to subscribe to your business' email newsletter. This particular option can help you with the retention of leaving customers.
# How to create it in Bloomreach Engagement
An exit popup web layer reads the mouse movements of your customer, and therefore requires several lines of Javascript code to function.
Please read the [How to Create a Web Layer](🔗) guide on how to do this. You can use any of the templates provided or create a new web layer from scratch.
Please read carefully the comments within the given code so that you insert it into the right place in the web layer code.
Your original code should be copied as the comment in the code snippet above shows.
Example of final code using web layer template **Notification**:
Once you completed this piece of code, your web layer will only appear if the customer is leaving your website.
To learn how to create and edit other aspects of your web layer, please see the [relevant article](🔗) depending on what you would like to fill it with.