> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usertick.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Usertick runs surveys on websites, by link, by QR code and by email, and collects every response in one inbox with reports, dashboards and workflows. The REST API lives at https://app.usertick.com/api/public/v1 and uses Bearer API keys or OAuth access tokens; the JavaScript SDK is the @usertick/snippet package on npm.

# Ask visitors why they leave

> Show an exit intent survey on your key pages when a first-time visitor moves to leave, and learn what stops people from signing up or buying.

You can find out what stops visitors from signing up or buying at the moment they move to leave. When you finish this guide, a two-question survey opens on the pages you choose when a first-time visitor heads for the browser bar, and each visitor sees it once.

## Before you start

* Your site has the install code and shows **Connected** under **Settings → Sites**. See [Install Usertick](https://docs.usertick.com/installation.md).
* Your role has the **Manage surveys** permission.
* Any plan works, since **Exit intent** and every rule in this guide are on every plan.

## Create the survey

1. On the **Surveys** page, select **Create survey**, then **Templates**.
2. Search for "exit" and select the **Exit intent** template.

The survey asks "What's the main reason you're leaving today?" with six answers, such as "The price is too high", then "What were you hoping to find on this page?".

## Open it on exit intent

In the editor's **Targeting** step, on **Triggers**:

1. Delete the template's **After a delay** condition with its trash icon, because it opens the survey 3 seconds after the page loads, long before anyone leaves.
2. Select **Add condition**, then **Exit intent** under **Leaving and frustration**, which has no options to fill in.

![The Add a condition dialog with the Smart triggers and Time and page groups, and the Leaving and frustration heading at the bottom](https://mintcdn.com/usertick/b7hHAD5bKMN_XhRp/images/surveys-trigger-picker.png?fit=max\&auto=format\&n=b7hHAD5bKMN_XhRp\&q=85\&s=8e65d402894734a9713c45be6aec3532)

Add a condition

On a computer, exit intent fires when the cursor moves up toward the tabs and the address bar. On phones and tablets, it fires on a fast scroll back to the top of the page, so it doesn't fire on a page too short to scroll. On any device, it fires at most once per page view.

## Limit it to your key pages and new visitors

On **Display rules**:

1. Under **Where to show**, select **Add rule** under **Included pages** and enter a page that matters, such as **starts with** `/pricing` or **is exactly** `/signup`, adding one rule for each page.
2. Under **Audience**, set **Visitor type** to **New**, so customers who come back aren't asked.
3. Under **Show frequency**, set **Repeat behavior** to **Once**.

![The Display rules tab of the Targeting step: Where to show with an included rule starting with /pricing and no excluded pages, then the Audience rules from Show on devices to Earlier surveys](https://mintcdn.com/usertick/b7hHAD5bKMN_XhRp/images/surveys-display-rules.png?fit=max\&auto=format\&n=b7hHAD5bKMN_XhRp\&q=85\&s=6498105b94829e1c69bdea88e624a3e7)

Targeting → Display rules

## Publish

In the **Publish** step, select the site under **Where it runs**, then select **Publish**. The survey starts showing to visitors within 5 minutes.

## Check that it works

1. Open one of the included pages in a private browser window, which counts as a new visitor.
2. On a computer, move the cursor up past the top of the page toward the tabs, and the survey opens.
3. After you answer it, the response appears in **Inbox**, and the survey's **Results** page counts each reason.

The same window won't show the survey again, so open a new private window to test again. If the survey doesn't open, see [Troubleshooting](https://docs.usertick.com/installation/troubleshooting.md).

## Related

* [Triggers](https://docs.usertick.com/surveys/triggers.md#the-conditions)
* [Targeting](https://docs.usertick.com/surveys/targeting.md)
* [Templates](https://docs.usertick.com/surveys/templates.md)
* [Survey results](https://docs.usertick.com/results/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.