Support » Plugin: GDPR Cookie Compliance (CCPA ready) » Exclude ActiveCampaign tracking code until user accepts cookies

  • Resolved hilary

    (@hreidco)


    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)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @hreidco

    Thanks for using our plugins.

    Can you please give us your website URL where the ActiveCampaign script is in the footer section of our plugin so that we can check?

    Also, you don’t need any conditional statements for the snippet. The condition (cookies accepted) will be satisfied when the user accept cookies, so all you need is the actual script for ActiveCampaign that should be executed.

    Looking at the code you provided, you have some condition ‘If …. (‘accept_cookies’) then…’ This is not needed when you use our plugin and this is why your script is likely not working. You just need the pure ActiveCampaign script inserted into our plugin.

    Hope this helps.

    Thread Starter hilary

    (@hreidco)

    Hi @mooveagency
    Thanks for your response.

    As I mentioned above, I found that simply inserting the pure ActiveCampaign script into your plugin had no effect. The cookie is not triggered.

    However, I found that adding it via a tag with google tag manger is effective.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.