Exclude ActiveCampaign tracking code until user accepts cookies
-
Hello,
I need to use Active Campaign site tracking and I need it to be GDPR-compliant, so that the cookie only loads when 3rd party cookies are accepted.ActiveCampaign says just “copy and paste their code into the footer of your site”. But when I add the tracking code to the 3rd party cookies footer section of this plugin, this has no effect, the cookie does not load.
AC also offer this GDPR advice: https://help.activecampaign.com/hc/en-us/articles/360000872064-Site-tracking-and-the-GDPR
So, if I set the AC plugin to do not track by default, is there a way to add this tracking snippet and adjust the variables to work with your plugin?
// Insert tracking snippet here if (document.cookie.indexOf('accept_cookies') !== -1) { vgo('process', 'allowTracking'); } $('.btn').on('click', function() { var expiration = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 30); vgo('process', 'allowTracking'); document.cookie = 'accept_cookies=1; expires=' + expiration + '; path=/'; });
(using GDPR cookie compliance v4.5.5 premium)
- The topic ‘Exclude ActiveCampaign tracking code until user accepts cookies’ is closed to new replies.