Trigger your survey on exit intent (leaving the page)

When you distribute a survey on your own website, exit intent helps you catch visitors right as they appear to leave—for example when they move the mouse toward the top of the browser window (toward the tab bar or away from your content). In Responsly this option is labeled On exit intent in the website widget embed builder.

This guide explains where to enable it, how it behaves on desktop vs mobile, how to test, and how it differs from the leave-site confirmation people sometimes see on a standalone form link.

Who this is for

You need:

  1. A Responsly form you can edit.
  2. Permission to add JavaScript to your site (typically before </body>).
  3. The Widget flow for classic embed—not only the Standard tab that outputs a plain iframe or link without the widget’s Advanced auto-open options.

Exit intent is a distribution choice for on-site feedback, not a replacement for email invitations or shareable links by themselves.

Turn on “On exit intent” for the website widget

Follow these steps in the Responsly app:

  1. Open the form you want to show on your site.
  2. Go to Share (or your workspace flow for website / embed).
  3. Open the Classic embed / widget configuration screen—the builder where you choose ribbon, circle, button, window type (popup, slider, and so on). Classic embed configuration
  4. Configure trigger and window appearance as usual.
  5. Expand Advanced.
  6. Turn on Open automatically.
  7. In the dropdown, choose On exit intent.
  8. Optionally adjust Close after fill if you want the widget to collapse after submission after a number of seconds.
  9. Click Get code, copy the snippet, and paste it on every page (or template) where the behavior should run—before </body> is the usual placement.

The generated embed includes the exit-init="true" attribute on the <responsly-widget> element, which enables exit-intent listening on supported desktop browsers.

How exit intent behaves

On desktop, Responsly listens for pointer movement that suggests the visitor is leaving the viewport upward (classic exit-intent detection). When that happens and the widget is not already open, the widget launches using your chosen window style.

Important nuances:

  • Touch devices: Without a mouse path to track, the same exit-intent gesture does not fire in the standard configuration. Advanced mobile-oriented attributes exist in the runtime widget; they are not exposed in every UI path of the code generator—ask support if you need a mobile timed fallback added to your snippet.
  • Browsers evolve: Future browser changes can affect pointer events or timing. Always verify on current Chrome, Safari, Edge, or Firefox versions your audience uses.
  • Already answered or dismissed: If you use options that hide the widget after answer or dismiss (cookie-based), exit intent respects those states and will not keep harassing the same visitor according to your rules.

Other Advanced triggers (pick one auto-open mode)

In the same Advanced area you can choose On page load, After some seconds, After scrolling, On specific URL, or Once per period. For predictable UX, treat these as alternatives to exit intent rather than stacking conflicting automatic opens in one snippet.

Close after fill is independent: it controls optional auto-close timing after submit, not when the widget first appears.

Verify on your live site

  1. Deploy the snippet to a staging or production URL you control.
  2. Use desktop with a mouse.
  3. Load the page, wait for it to settle, then move the cursor straight up past the top edge of the page content as if leaving.
  4. Confirm the Responsly widget opens once per your expectations.

If testing only inside Responsly’s iframe preview, exit intent may not reproduce reliably—prefer a real page on your domain.

Troubleshooting

IssueWhat to check
Nothing happens on mobileExit intent is mouse-based; plan a different trigger or ask support about mobile-specific embed attributes.
Nothing happens on desktopConfirm exit-init="true" is present, no ad/script blockers are blocking the widget script, and the visitor has not already triggered answered/dismissed hiding rules.
Widget already openExit intent only auto-opens when the widget is closed; if it is visible, another interaction opened it first.
Fires when I did not mean to leaveMoving quickly toward the top edge can trigger intent—adjust survey copy so the prompt feels helpful, not nagging.

If someone opens your survey as a standalone Responsly URL (not embedded in your widget) and closes or navigates away before finishing, their browser may show a generic leave confirmation. That path uses the form page’s own beforeunload handling to reduce accidental abandon—it is not the marketing-style exit-intent widget described in this article.

Use exit intent when you want a timed prompt on your website; use the direct link when you want a full-page survey experience without embedding JavaScript.

Pair onsite prompts with a clear survey introduction so visitors know why you are asking. Publish changes with How to create a survey, then review submissions and exports using How do I export survey data?.

FAQ

Does exit intent mean the survey opens when someone closes the browser tab?

Not exactly. Responsly detects classic exit intent on desktop when the visitor moves the pointer upward toward the top of the window—as if leaving the page or tab—which opens your widget. Actual tab close or Alt+F4 is not the same signal.

Will exit intent work on phones and tablets?

The standard exit-intent trigger relies on mouse movement, so it does not apply the same way on touch-only devices. For mobile-specific timing, your embed may need custom attributes (for example a delayed open path); contact Responsly support if you need help tailoring the snippet.

Can I use exit intent without embedding code on my website?

Exit intent is part of the Responsly website widget embed. If you only share a direct link to the standalone form, visitors open the form in full page—that flow uses different behavior (including a possible browser warning if they leave mid-survey—see below).

Why does the widget not open when I try exit intent in the builder preview?

Exit intent is easiest to verify on your live website with the published embed. In-product previews use sandboxed iframes and modal flows that may not mirror real mouse-leave behavior.

Can I combine exit intent with opening on page load or after a delay?

Use one automatic open mode at a time in the Advanced section for predictable behavior. Pick the trigger that best matches your visitor journey, then adjust window style and optional close-after-submit timing separately.

Is exit intent allowed under privacy rules?

Exit-intent prompts are common but still subject to your privacy policy, consent banners, and regional requirements. Pair transparent copy with your legal team’s guidance—especially if you combine widgets with marketing tags or cookies.

Need help or have more questions?

Responsly platform helps us to manage customer satisfaction and communication within our organization.

Alicja Zborowska, Administration Specialist

Red bull
Bayer

We automated the product experience management process.

KraftHeinz

Managing customer experience is made easy with Responsly.

Danone

Our suppliers are surveyed quickly and efficiently.

Feel the Responsly advantage over other products

Talk to us!