If you’re using cookies on your website, you'll be responsible for requesting user consent in compliance with the CCPA and GDPR before setting any cookies other than those deemed strictly necessary for site operation.
There are two ways to collect customer consent - opt-out or opt-in. The preferred method for personalization is opt-out so that visitors can receive personalized experiences on their first page view, without seeing the page content visibly change or refresh, and to maximize the number of visitors seeing personalized experiences.
Opt-out
This is the preferred implementation method. The default implementation of the Mutiny script will automatically opt users in to tracking. The opt-out method of implementation keeps this default in place, but allows the customer to opt-out of tracking if they wish. Any opt-out action will be handled by your internal cookie consent tool, but Mutiny gives you the tools to ensure a user is opted out if they choose to be.
To opt out a user, you'll want to call the below method whenever a user chooses to opt out via a cookie consent tool.
window.mutiny.client.optOut();
Opt-in
If you choose this option, no personalizations or tests will be visible to your site visitors unless they explicitly opt-in to tracking. To enable the opt-in method, you'll need to take 2 steps.
- Add this code below your Mutiny client script so that all users that arrive on your site are automatically opted out of tracking:
<script>
window.mutiny.client.defaultOptOut();
</script> - Call this method whenever a user chooses to opt-in via your cookie consent tool:
window.mutiny.client.optIn();
If you implement step 1 but not step 2, all users will be default opted out of tracking and Mutiny will be effectively useless.
Comments
0 comments
Please sign in to leave a comment.