• Resolved uisneach

    (@uisneach)


    We are using Pardot from Salesforce for forms on our site and it has a tracking code. We would like to be able to track that with Complianz which we also have on our site so that if someone rejected cookies with Complianz that it would in turn block Pardot. However, it doesn’t appear to be straightforward to do so. This is an article that explains the challenge.
    https://www.fluidogroup.com/align-pardot-tracking-with-your-cookie-consent-policy-part-1-2/
    It is a bit technical to implement tracking via GTM with that solution and I was wondering if Complianz can handle it natively?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @uisneach,

    The plugin currently does not have a built-in integration with Pardot.

    If I take a quick look at the article, it seems that you should be able to implement the same steps as mentioned there; but replace the Firing Triggers for the tags that should fire on ‘opt-in’ and on ‘opt-out’ with the respective Complianz variables (see “Firing Tags based on Consent” in this article, which allows you to import the variables in GTM directly).

    Allowing you to create triggers with the logic that you require for these Pardot tags to fire. An example would be;

    – A Page View trigger that fires if the cookie cmplz_functional contains allow, and the cookie cmplz_saved_categories does not contain statistics. (Functional, but no Statistics consent; so fire opt-out tag).

    – A Page View trigger that fires if the cookie cmplz_functional contains allow, and the cookie cmplz_saved_categories contains statistics. (Functional + Statistics consent, so fire opt-in tag)

    Hope this helps you along the way with creating the desired Pardot tracking set-up.

    Kind regards, Jarno

    Plugin Contributor jarnovos

    (@jarnovos)

    Another possibility would be to fire a “Custom HTML” tag in GTM, and it fire on “All pages” so that it’s always there (also without consent).

    And then use some JavaScript to determine if there is consent for Marketing at the moment when the “status changes” in Complianz, in other words: check if there’s Marketing consent (or not) each time the user makes a choice in the banner (i.e. consenting to a category, or revoking consent), and fire the required Pardot code based on that.

    For example:

    <script data-category="functional" type="text/javascript">
    
    document.addEventListener('cmplz_status_change', function (e) {
    
        if (e.detail.category === 'marketing' && e.detail.value === 'allow') {  
    
          console.log("marketing allowed");
    
          /* Pardot code that should fire on marketing consent goes here */
    
        } else if (e.detail.category === 'marketing' && e.detail.value === 'deny') {
    
          console.log("marketing revoked");
    
           /* Pardot code that should fire after revoking Marketing consent goes here */   
    
        }
    
    });
    
    </script>

    Kind regards, Jarno

    Thread Starter uisneach

    (@uisneach)

    Thank you for these detailed ideas to try – much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integrating Pardot with Complianz’ is closed to new replies.