• Resolved alcain

    (@alcain)


    I have got the plugin ostensibly working: my two Google analytics cookies are blocked at page load (all good) + clicking ‘Accept all’ sees them both appear in inspector (all good) + ‘Reject all’ then correctly sees the them both disappear in inspector (all good).

    However, the moment I refresh the web page, one of the google analytics cookies comes back! Even though I had saved cookie settings (‘Reject all)’ on the front end. I’m not sure why this should be happening.

    ‘Auto-clear cookies’ is set to: ON

    I have tried defining the named cookie with and without Regex format e.g. ‘^_ga_’

    + with and without the dot in my domain name (i.e. ‘mydomain.com’ and ‘.mydomain.com’

    Can anyone help? Thank you!

    • This topic was modified 3 months, 2 weeks ago by alcain.
    • This topic was modified 3 months, 2 weeks ago by alcain.
    • This topic was modified 3 months, 2 weeks ago by alcain.
    • This topic was modified 3 months, 2 weeks ago by alcain.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alcain

    (@alcain)

    FIXED.

    I simply needed to activate Google Consent Mode in ‘Consent Mode’ (‘Google Consent Mode v2 (GCM’)

    … and selecting ‘Google tag (gtag.js)’

    Seems to have done the job, (although I wish I understood this better technically).

    • This reply was modified 3 months, 2 weeks ago by alcain.
    Plugin Author pressidium

    (@pressidium)

    Hey, @alcain!

    although I wish I understood this better technically

    Google separates consent mode into:

    • Basic consent mode
    • Advanced consent mode

    Basic consent mode

    When you implement consent mode in its basic version, you prevent Google tags from loading until a user interacts with a consent banner.

    You can achieve this, by specifying the paths to the Google Analytics script under wp-admin → Cookie Consent → Blocked Scripts.

    Advanced consent mode

    When you implement consent mode in its advanced version, Google tags load when a user opens the website, and do the following:

    1. Set default consent states
    2. Wait for user interaction with the banner and update consent states

    You can achieve this, by enabling GCM (Google Consent Mode) under wp-admin → Cookie Consent → Consent Mode.

    You can learn more about Google Consent Mode at https://support.google.com/google-ads/answer/10000067.

    Thread Starter alcain

    (@alcain)

    Thank you ! ??

    • This reply was modified 3 months ago by alcain.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.