close this to read article
Yes, of course, you can customize and have the opt-in box only on some of your website pages.
How to enable opt-in box only on your preferred web pages :
- Disable global opt-in by clicking on Settings - Opt-in tab - No Opt-in from the dashboard. Please make sure that you click on ‘Save’ after making the changes on the Settings page
2.Copy-paste Javascript code on your specific web pages
After it is disabled globally, please specifically copy-paste the following javascript code on the web pages where you'd like the opt-in to be displayed.
1 <script> 2 window._pcq = window._pcq || []; 3 window._pcq.push(['triggerOptIn']); //Calls triggerOptIn with default text and default segment(global)\ </script> |
Complete documentation on opt-ins can be found in our API documentation page.
This code can be safely deployed with Google Tag Manager or other such tools.