• Resolved Dario La Porta

    (@dariokuna)


    Hello there,

    I have noticed you had implemented the new Google’s Consent Mode since 2.0 version of your plugin.

    Unfortunatly it’s not work properly, because I’am using a CMP (Ibenda) that it’s already Implemented it, so I have the gtag( ‘default’, ….) declaration twice and yours doesn’t respect the iubenda’s cookie banner behaviour.

    Could you implement the functionality to deactivate your consent mode, or would you mind telling me how to do so using a function or a filter?

    Many thanks in advance

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have a similar issue with Complianz.
    it seems to be a common way of implementing Consent Mode that the Google Tag has to be set specifically through the CMP.

    Could you make it possible that the Google Tag does not need to be added through Google Analytics for WooCommerce plugin? Wasn’t it actually like that before 2.0?

    Thread Starter Dario La Porta

    (@dariokuna)

    Thanks for the reply jussipv, I was already aware of the fact that the plugin worked correctly up to v1.8.14 and also how to restore this version, but I think your intervention is equally useful to anyone reading this topic.

    Anyway, since it is only a temporary solution to the reported problem, in addition to the fact that I have no intention of wasting time installing the old version on all the sites I manage, I would expect a response from the official support team as soon as possible.

    Hey @dariokuna,

    Unfortunatly it’s not work properly, because I’am using a CMP (Ibenda) that it’s already Implemented it, so I have the gtag( ‘default’, ….) declaration twice and yours doesn’t respect the iubenda’s cookie banner behaviour.

    Could you implement the functionality to deactivate your consent mode, or would you mind telling me how to do so using a function or a filter?

    Thank you for sharing a detailed description of the problem your facing and a solution that would work for you. I’ve opened an issue relating to this and we will look to add a filter to disable the default consent state in Google Analytics for WooCommerce in the next update.

    When released I will update this thread and we’ll include a section in the extension documentation detailing the filter.

    Plugin Author Tomek

    (@tomalec)

    You can use the existing woocommerce_ga_gtag_consent_modes?filter. To make Google Analytics for WooCommerce not set any consent modes at all make the filter return an empty array:

    add_filter( 'woocommerce_ga_gtag_consent_modes', function ( $consent_modes ) {
       return array();
    } );
    Thread Starter Dario La Porta

    (@dariokuna)

    Hi @tomalec,

    thanks a lot for your reply.

    I can confirm you that the solution you has provided me works perfectly.

    I mark this topic has resolved.

    Have a nice day!

    Hi @dariokuna,

    Perfect! Thanks for letting us know. Have a great week ahead. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Consent Mode issue’ is closed to new replies.