Customers can express their consent in two ways: opt-out or opt-in. For a seamless personalization experience right from the first page view, without any visible changes or refreshes to the page content, and to ensure the widest reach of personalized experiences, the opt-out method is recommended.
Opt-Out Method:
This is our suggested approach. By default, the Hushly script is set to automatically track users. The opt-out method maintains this default setting but gives customers the freedom to withdraw from tracking if they choose. While your internal cookie consent tool will manage the opt-out process, Hushly provides the necessary functionality to guarantee that a user's decision to opt-out is respected.
To remove a user from tracking, invoke the following function whenever a user opts out through a cookie consent tool:
window.Hushly.WebX.optOut();
Opt-In Method:
Selecting this method means that site visitors will not encounter any personalizations or tests unless they actively choose to be tracked. To activate the opt-in approach, follow these two steps:
Insert this script after your Hushly script to ensure all site visitors are automatically opted out of tracking:
<script> window.Hushly.WebX.defaultOptOut(); </script>
Execute this function whenever a user opts in through your cookie consent tool:
window.Hushly.WebX.optIn();
Please note, if you apply the first step without the second, all users will remain opted out by default, rendering Hushly Personalization inactive.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article