Skip to main content

Exit-Intent Detection

Exit-intent detection is the core trigger for Last Second Coupon. It identifies the moment a customer is about to leave your store and shows them a discount popup to encourage them to stay and complete their purchase.

How It Works

On Desktop

The system monitors the customer's mouse movement. When the mouse moves upward toward the browser's address bar, back button, or close button, the system interprets this as the customer intending to leave.

Specifically, the popup triggers when:

  • The mouse cursor leaves the top edge of the page
  • The mouse exits the browser window from the top or sides

This is a well-established technique used by major e-commerce sites and has been shown to significantly improve cart recovery rates.

On Mobile

Mobile devices don't have a mouse cursor, so the system uses different signals:

  • Fast upward swipe — When a customer quickly swipes upward (a gesture commonly used before switching apps or closing the browser)
  • Scroll depth tracking — Combined with scroll patterns to identify exit behavior
info

Exit-intent works best on desktop browsers where mouse tracking is available. On mobile, the detection is less precise but still catches a meaningful portion of leaving visitors.

Configuration

Exit-intent is enabled by default. You can configure it in the Coupon Settings:

  1. Go to Last Second Coupon > Settings > Trigger Settings
  2. Make sure Exit-intent is selected as a trigger type
  3. Optionally add Time-on-page as a secondary trigger

Combining with Time-on-Page

You can enable both exit-intent and time-on-page triggers for the same popup. This means:

  • If the customer tries to leave → popup appears immediately (exit-intent)
  • If the customer stays but doesn't act → popup appears after the set delay (time-on-page)

This combination catches both types of abandonment behavior.

When the Popup Does NOT Appear

The popup will not trigger if:

Exit Intent on Desktop