Disable Exit-Intent Experiences for known users in my Marketing Automation Platform

Modified on Wed, 8 Sep, 2021 at 8:02 AM


Q. Can I disable Exit-Intent Experiences if I know the visitor is a known contact in my marketing automation platform (MAP)?

A.  The short answer is Yes. That said, Hushly won't know if a visitor is a contact in your MAP. If you know the visitor is a contact in your MAP, you can configure a javascript function, with your own custom logic, that tells Hushly if the visitor is a known MAP contact so that Hushly can disable Exit-Intent Experiences showing up for the visitor. 


JS Code:

<script type="text/javascript">
window.getHushlyConfig = function (callback) {
     let result = {disableExitIntent: true}; 
     callback(result);
};
</script>

If the result is set to disableExitIntent: true then Hushly will not show the exit-intent experience to the user.  If it is set to disableExitIntent: false then the user will be eligible to be shown an exit-intent experience if configured for the page. 


How to insert the custom Javascript for Experiences

Method #1  Google Tag Manager

Google Tag Manager, is a great way to manage all the additional JavaScript, or "tags" and "tracking pixels" to your website without involving development resources.


You can configure the above JavaScript function by creating a Tag in Google Tag Manager. Make sure this tag triggers on all the web pages where the Hushly experiences are configured.


Method #2  Manual

Insert the above JavaScript function in the <head> tag of the HTML on the WebPage where the Hushly experiences are configured.




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article