Clerk.io Developer Documentation

Welcome to the Clerk.io Developer Documentation.

Here you find our developer documentation for our API and all our SKDs.

Get Started    

Exit Intent

Recover customers about to leve with personal recommendations.

The exit intent popup reacts when a visitor tries to leave your site. It pops up and displays interesting products, possibly converting a leaving visitor to a buying customer.

Enabling Exit Intent

Any clerk.io Content can be triggered opun a visitors intent to exit.

This is done simply by adding the attribute data-exit-intent="true" attribute is true.

<span
  class="clerk"
  
  data-api="recommendations/visitor/complementary"
  data-limit="20"
  
  data-exit-intent="true">
</span>

Remember to also use a design that has the class clerk-popup to show the Exit-Intent as a popup.

Customisation

You can customise tha behaviour of the exit intent tryger further by delaying the trigger.

Attribute

Value

Default

data-exit-intent-delay

Prevents the exit intent from triggering until a certain amount of seconds have elapsed since this page was loaded.

0

data-exit-intent-cooldown

The amount of seconds to wait until showing the exit intent content again.

86400 (24 hours)

<span
  class="clerk"
  
  data-api="recommendations/visitor/complementary"
  data-limit="20"
  
  data-exit-intent="true"
  data-exit-intent-delay="5"
  data-exit-intent-cooldown="3600">
</span>

Updated 11 months ago

Exit Intent


Recover customers about to leve with personal recommendations.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.