Setting up Exit Intent Recommendations on Magento 2

Get customers back to your shop with Exit Intent

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

Setup with Extension

From v2.2.3, Exit-Intent can be activated directly from the plugin with these steps:

  1. Make a new of Website Content in my.clerk.io and name it “Exit Intent”

  2. Choose a logic for it - We suggest “Visitor Recommendations”.

  3. In the Magento2 backend, go to Stores->Configuration->Configuration in the side-menu and find Exit-Intent Settings.

  4. Check the Enabled box, and make sure that the Content field contains “exit-intent”.

  5. Click Save Config to activate it.

Setup Manually

The setup is 4 steps:

  1. Make a new of Website Content in my.clerk.io and name it " Exit Intent"

  2. Choose a logic for it - We suggest “Visitor Recommendations”.

  3. From Insert Into Website, copy the provided embedcode to the top of this Magento2 file, in FTP:

    vendor->clerk->magento2->view->frontend->templates->tracking.phtml

  4. Add:  data-exit-intent=“true” to the embed code you just placed. Like so:

Example embed code

<span class="clerk"
  data-template="@exit-intent"
  data-exit-intent="true">
</span>

Inserted in tracking.phtml

Now you will see the exit intent pop-up when anyone tries to leave the page.

Remember to style your content in Designs at my.clerk.io

All recommendations containing the  data-exit-intent=“true” will trigger the exit intent pop up.