Setting up Exit Intent Recommendations on Magento 2
Platforms:
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:
Make a new of Website Content in my.clerk.io and name it “Exit Intent”
Choose a logic for it - We suggest “Visitor Recommendations”.
In the Magento2 backend, go to Stores->Configuration->Configuration in the side-menu and find Exit-Intent Settings.
Check the Enabled box, and make sure that the Content field contains “exit-intent”.
Click Save Config to activate it.
Setup Manually
The setup is 4 steps:
Make a new of Website Content in my.clerk.io and name it " Exit Intent"
Choose a logic for it - We suggest “Visitor Recommendations”.
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
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.