Intent To Exit the Page

Trigger a proactive campaign based on someone scrolling up the page, showing an intent to exit.

Available on:  Pro

Overview

Proactively initiate a conversation based on the user’s mouse movement showing intent to exit. Using this strategically can help you target them with messaging that would either get them to come back, visit another page, or convert.

For example, if someone moves their mouse towards closing a product page, you can proactively send a discount code or remind them of a limited-time offer. You can also set this up to remind people to subscribe to a newsletter before exiting blog pages.

See it in action

Move your mouse to the top of the page and see how Ada proactively pops up.

How to set it up

Step 1

Follow Ada’s technical Embed documentation to learn how to add Ada to your website.

Attached is the code snippet you need to paste into the <head> tag.

⚠️ Be sure to replace <YOUR-BOT-HANDLE> with your own bot handle. Your bot handle is your bot’s unique domain name: https://yourbothandle.ada.support/.

📣Click here to learn how to load a bot on a non-US cluster.

<script
  id="__ada"
  data-handle="<YOUR-BOT-HANDLE>"
  src="https://static.ada.support/embed2.js"
></script>

Step 2

Follow the instructions on the Advanced Proactive Campaigns page to create a web campaign.

Step 3

Use triggerCampaign to launch a campaign created via the Ada dashboard in step 2.

// the onLeaveIntent will trigger a function when the user attempts to leave the page
// this onLeaveIntent is provided by a 3rd party library - https://github.com/willianjusten/on-leave-intent

function triggerCampaignBeforeCustomerLeaves() {
  window.adaEmbed.triggerCampaign("Intent_to_exit_the_page")
}
const delayInMilliseconds = 1000 // 1 second
const onLeaveIntent = new window.OnLeaveIntent(triggerCampaignBeforeCustomerLeaves, delayInMilliseconds);

See what Ada can do for you

Get your hands on our award winning platform and start offering VIP experiences for everyone, at scale.

Get a Demo