Below is a list of standard prompt triggers you can use to display prompt. Multiple triggers can be specified within prompt.
On Page Load
Display prompt after X seconds. If 0 is specified, we will display prompt immediately after script is loaded.
On Exit Intent
Display prompt on exit intent.
- For desktop, exit intent happens when mouse leaves the screen.
- For mobile, detecting exit intent is tricky since there's no mouse to detect out-of-screen activity. Hence exit intent is triggered when user scroll up 10% of page after they've scrolled at least 50% of page.
On Scroll Percentage
Display prompt after users have scrolled X percent of page.
On Click
Display prompt after user click on HTML elements from specified CSS selectors.
On Javascript Event
Display prompt based on Javascript event. For example, you can use the following code to dispatch javascript event add_cart
.
let cartData = {
'amount': 25,
};
let event = new CustomEvent("add_cart", {
detail: cartData
});
document.dispatchEvent(event);
On Add Cart Item (Ecommerce)
Display prompt when user add cart item. This trigger will only work for supported ecommerce platforms. One common use case is to display upsell/cross-sell recommendations when user add cart item.
On Initiate Checkout (Ecommerce)
Display prompt when user click on checkout button to initiate checkout. This trigger will only work for supported ecommerce platforms. When triggered, OnVoard will intercept checkout process to display prompt (instead of proceeding to checkout page).
Hence, we highly recommend adding "Continue Checkout" button when using this trigger to provide users with an option to proceed to checkout page inside the prompt.
When prompt triggered by initiate checkout is closed, we will automatically redirect users to checkout page. This behavior is setup so that users won't be trapped in a state where they are unable to checkout.
Relevant Links