• Resolved 250ml

    (@250ml)


    Hello developers 🙂

    I am using your plugin and read <<Definitive Guide to Tag Manager and Complianz >>.

    I have implemented custom events to fire scripts based on given consent via COMPLIANZ as you wrote in your guide. And I’ve removed the Tag Manager script + Google Analytics script form my website.

    –> Nonetheless Google Tag Manager + Analytics fires before consent is given.

    Second issue:
    As I can see in your article << Definitive Guide to Tag Manager and Complianz >> in point 7 (Verification of your Tag Manager configuration) you used a custom HTML code for functional and marketing cookies.

    So I am wondering where I can find:

    1.) The Custom HTML code for COMPLIANZ functional cookies?
    2.) The Custom HTML code for COMPLIANZ marketing cookies?

    My website is here.

    Thank you in advance 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @250ml,

    When you select Complianz to add the container code of GTM to your website, this container is empty by default. This ensures that the data collection functionality in your GTM container can be executed while a user visits your site.

    However, I noticed multiple imports of GTM & Analytics on your website. https://ibb.co/z8y7GKp
    https://ibb.co/bHJG6RB

    I would advise removing these previous implementations when using Complianz to load GTM.

    Custom HTML for Functional/Marketing under 7. in the Definitive Guide to Tag Manager and Complianz refers to the scripts that these tags contain. So for example, the Facebook Pixel script is labelled as “Custom HTML” and since it is fired with the Marketing Cookies tag, that Marketing Cookies tag contains “Custom HTML”.

    As this thread seems like a duplicate of your earlier question, I’ve resolved the other thread for now.

    Kind regards,
    Jarno

    Thread Starter 250ml

    (@250ml)

    Hello Jarno,

    thank you so much for your reply!

    I used Google Analytics Debugger and the codes for google analytics shows me to be detected just one time!? https://ibb.co/F6vbPxP

    I´m using the GA code in three plugins: complianz, Google Analytics for WordPress by MonsterInsights and Opt-Out for Google Analytics (DSGVO / GDPR). The last one is connected to the code in MonsterInsights and is needed to be DSGVO conform.

    Well, here is a photo of the Debugger, where it says that gtag.js is set as a functional cookie from COMPLIANZ. So maybe that´s why it is loading, because functional cookies are always on? When this is the case, how can I change that?

    —-

    Okay, so I think I understand how I do the custom html for Facebook Pixel (I use the skript of the facebook pixel). The Facebook Pixel is a marketing cookie so it is in this category, right?

    What is confusing to me is how to deal with functional cookies?
    What is the skript for that?
    And do I need to set a Tag in Google Tag Manager for functional cookies?
    Or why is there the event: cmplz_event_functional?

    Kind regards and thank you!

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @250ml,

    The reason you are only seeing 3 entries in Tag Assistant, is because you didn’t consent to the Cookies when running the scan. This concerns scripts that have been implemented outside of Complianz, they have <script type= “text/javascript”> instead of “text/plain”, which results in these scripts executing regardless of consent.

    As functional cookies are always accepted, you can use the event “cmplz_event_functional” in Tag Manager to fire scripts that should be fired on this event (which should always get fired, as it’s the default consent level).

    However, the current setup is somewhat confusing to me. When you use Google Tag Manager, you can fire Analytics based on an event such as cmplz_event_functional or cmplz_event_marketing, which would negate the need for other Analytics plugin(s) to place your code.
    My advice would be to pick either Tag Manager or implement Analytics directly, as multiple implementations will probably cause issues at some point.

    Kind regards,
    Jarno

    Thread Starter 250ml

    (@250ml)

    Hello Jarno,

    Thanks for your reply. Well, I don´t know what happened overnight, but it seems to work better now. At least that only the complianz cookie (without given consent) is shown in the console. Maybe there were some old cookies in the cache that got deleted overnight, but it seems that there are no multiple analytics and site tags on my website anymore. Do you see that as well?

    What is confusing to me at that point is: That even without consent is given, the global site tag (gtag.js) is fired. As you can see in this photo. Do you know how to solve that? Because that is not DSGVO conform. What do you recommend?

    After consent is given the global site tag (gtag.js) and Google Analytics are fired (with the same UA-….. number).

    Second:
    Isn´t the only thing that is set to a functional cookie, the complianz cookie for saving the consent settings? If yes, do I need any code/skript for that in Google Tag Manager?

    Thank you for helping!

    Plugin Author Aert

    (@aahulsebos)

    Hi @250ml,

    Let’s start with loading Google Tag Manager, I don’t see an implementation currently on your website. Did you add a GTM code in our wizard, under Cookies – Statistics & Statistics Configuration?

    regards Aert

    Thread Starter 250ml

    (@250ml)

    Hi Aert,

    thanks for your reply. Well…the COMPLIANZ Assistant says that I should check “Google Analytics” because I am using the Plugin Monsterinsights. So I did so. Here is the message shown in COMPLIANZ.

    So I should check to GTM instead?

    Thank you for your help! Kind regards

    Thread Starter 250ml

    (@250ml)

    I tried to change it to GTM, but there is no section where I can put my GTM-Code.

    Here is a photo how it looks like: I have reloaded it several times. closed and opened it but no change.

    Kind regards

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @250ml,

    You have to disable the MonsterInsights integration first, under Complianz > Integrations. Otherwise, the GTM option will disappear as the plugin expects you to use MonsterInsights.

    Kind regards,
    Jarno

    Thread Starter 250ml

    (@250ml)

    Hi @jarnovos,

    thanks for your reply.

    1.) I have now deleted MonsterInsights,
    2.) Installed Site Kit instead (made sure that the GA skript is NOT set by Site Kit).
    3.) Changed in COMPLIANZ to GTM.
    4.) Checked again, that there is no script in the header.php

    Now it´s much worse because GA, GTM and Global Site Tag (gtag.js) is loading before given consent..

    In the page source is again: text/javascript (and I have absolutely no idea how to change that or why it is there.

    Looking forward to your reply, thank you!

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @250ml,
    It’s becoming slightly confusing to me, as the configuration has continually been changing over the course of this thread. My advice would be this setup in Complianz:

    – Select “Yes” with Google Tag Manager in Complianz > Wizard > Statistics
    – Select “Yes” to let Complianz place your GTM code in Complianz > Wizard > Statistics – configuration

    This will make it unnecessary to use any other plugin such as Site Kit or MonsterInsights if the sole purpose for these plugins is to place the GTM script/code. Try removing all other plugins/code responsible for placing the GTM script after you have configured Complianz to do this.

    Let me know if the duplicate implementation message remains after this, and I will do another check.

    Kind regards,
    Jarno

    Thread Starter 250ml

    (@250ml)

    Hi Jarno,

    sorry for the confusion. I don´t know why, but when I do some changes in Complianz it showas the right results only on the next day (even that I deleted the cache and the cookies).

    I do not use Site Kit for the implementation of the GA code. I use it that I can get an overview of how the statistics look at the moment. 

    Nontheless, in the incognito mode it seems to work perfectly and is not fireing before consent is given.

    BUT when I am in normal Chrome Browser on the same website….it is showing me that GTM is loading before any consent is given (only Tag Manager, no Analyrics…). Here is a photo.
    Why is this happening?

    Oh, and thank you for not giving up on me.

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @250ml,

    The current setup looks to be fine. For technical reasons, the Container code of GTM will be loaded before consent. This ensures that the data collection mechanism in your GTM container can be executed when a user visits your site, however, the data layer responsible for tracking will only be fired after consent.

    I’ll mark this as resolved for now, but you can always reach out to us with any further questions.

    Kind regards,
    Jarno

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Functional cookies only’ is closed to new replies.