NavonaAI logoNavonaAI

prevention

Exit-Intent Popup on Shopify: Desktop and Mobile Setup

How exit intent is detected on desktop, what replaces the mouse on mobile, how to set up an exit-intent popup on Shopify, and the mistakes to avoid.

Navona Team6 min read

An exit-intent popup is a message that appears when a visitor looks about to leave your store. On desktop the trigger is the cursor moving toward the top of the browser window. Phones have no cursor, so mobile setups rely on other signals such as the Back button, a quick scroll to the top or a tab switch. This guide covers how both work, how to set one up on Shopify, and the mistakes to avoid.

How does exit intent work on desktop?

The browser gives a script one building block: the mouseleave event, which MDN describes as fired when the cursor of a pointing device, usually a mouse, is moved out of an element. A popup script can listen for it on the page and check where the cursor left.

Apps turn that into a rule. OptiMonk's exit-intent page says it watches the top 10 pixels of the browser window, and that when the cursor moves up into that strip, toward the tabs, the address bar or the close button, the popup appears. Other apps use their own thresholds.

The result is a guess about intent, not a fact. A shopper who moves the cursor up to open another tab and comes back triggers the same popup as one who is leaving for good. The exit intent glossary entry covers why detection is always imperfect.

Why is there no exit intent on mobile, and what replaces it?

A phone has no cursor, so there is no motion to watch. OptiMonk's page puts it directly: phones have no cursor, so it reads other signals there. Apps that support mobile use a small set of them.

SignalWhat triggers itCaveat
Back buttonThe visitor presses Back, so the popup can appear before they leaveOptiMonk counts it only on the page the visitor entered on, after they have interacted with the site
Scroll to the topA quick scroll up, which on many phones brings back the address barWisepops notes the sensitivity has to be tuned: too high and it fires on small scrolls, too low and it never appears
Tab switchThe visitor moves to another tabWisepops points out the popup shows when they come back to your tab, not as they leave
Idle timeThe visitor stops interactingWisepops notes that doing nothing does not mean someone is about to leave

Two things follow. First, apps differ in which of these they rely on, so check which signals your app actually uses. Second, OptiMonk warns that some mobile browsers do not support every signal, so on those devices a given signal simply does not fire.

For the browser side, MDN's Page Visibility API page explains that a visibilitychange event is sent when a user switches to another tab, which is the mechanism behind tab-switch detection.

How do you set up an exit-intent popup on Shopify?

The steps below are the same in most popup apps. Menu names differ by app.

  1. Pick one job. Decide whether the popup should save a cart, collect a newsletter signup or ask why visitors leave. One popup, one job.
  2. Install a popup app from the Shopify App Store. Apps built on Shopify's theme app extensions show up in the theme editor, and Shopify's developer documentation says merchants do not need to edit theme code manually to use them.
  3. Choose the exit-intent trigger and the devices. In OptiMonk, for example, you switch Desktop and Mobile on or off per trigger. Wisepops describes its mobile option as choosing On Exit in Display rules and then activating its scroll-up option for phones.
  4. Narrow the audience. If the goal is sales, show it only to visitors with products in their cart. OptiMonk's page gives that as an example, and says you can limit the popup to chosen pages or exclude pages such as checkout.
  5. Design a separate mobile version. A desktop layout rarely shrinks well. Wisepops recommends a mobile-specific popup, and OptiMonk builds a separate mobile version of each popup that you can check in a phone view.
  6. Match the offer to the reason someone leaves. A discount does not answer a shipping question. The 10 popup examples show which pattern fits which reason.
  7. Test on a real phone and a desktop, then publish. Try the Back button, a scroll to the top and a tab switch, and confirm the close button works with a thumb.

If you want to know which offer works best once it is live, A/B test your popups one change at a time.

What mistakes should you avoid?

  • Showing it to everyone. A popup that fires for a visitor with an empty cart interrupts someone who was never close to buying. Target by cart status.
  • Covering the whole page. Google's guidance on intrusive interstitials says not to obscure the entire page and to use small banners instead. A popup that fills a phone screen on arrival is the version to avoid.
  • A tiny close button. Wisepops advises a large closing X that is easy to tap. If shoppers cannot dismiss it, they leave anyway and remember the experience.
  • A message with no value. Wisepops makes the point that "Don't go!" alone gives a visitor no reason to stay. The popup needs an offer or an answer.
  • Fake urgency. A timer that resets on every visit teaches shoppers to ignore the next one.
  • Testing only on desktop. The mobile trigger is a different mechanism. Check it separately.
  • Asking for an email on a cart page. A shopper with items in the cart has already shown intent. See how prevention differs from exit-intent popups.

Where does NavonaAI fit?

NavonaAI is a cart abandonment prevention tool, which is a different job from a general popup builder. Its Prevention Popup shows only when a shopper has items in their cart and shows signs of leaving, such as heading for the tab bar, going idle, scrolling back to the top or hitting the back button. Shoppers without a cart never see it, and each shopper sees it once.

The discount is a unique code that expires the moment the shopper leaves and applies at checkout automatically, with no email or phone number asked for. You choose the discount type and amount, the minimum cart value, whether it stacks, and which products are excluded, and you design the popup in Popup Studio. NavonaAI sends no emails or SMS.

Frequently asked questions