• Resolved alcain

    (@alcain)


    A bit puzzled by Presidium – I have identified and added my named Google analytic cookies in the cookie fields, and tested cookie behavior in browser inspector, but I can’t get it to work.

    I wonder if anyone could just post up an image of a simple typical/example google analytics cookie configured in the cookie fields in the plugin settings. Perhaps I’m missing something really simple.

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alcain

    (@alcain)

    Think I’ve fixed it.

    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.

    Plugin Author pressidium

    (@pressidium)

    Hey, @alcain!

    I wonder if anyone could just post up an image of a simple typical/example google analytics cookie configured in the cookie fields in the plugin settings

    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.

    Refer to the Blocking scripts section of our wiki to learn more about how to prevent scripts from running and conditionally execute them.

    To give an example, blocking scripts for Google Analytics would look something like this:

    | Script Source                                    | Cookie Category | Is Regex? |
    |--------------------------------------------------|-----------------|-----------|
    | ^(?:https?:)?\/\/(?:www\.)?google-analytics\.com | Analytics | Yes |

    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.

    Depending on whether you’re using Google tag (gtag.js) or Google Tag Manager (GTM), you’ll need to select the corresponding option under “Implementation”.

    If you’re using Google Tag Manager, you’ll also need to add our GTM template to your workspace.

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

    In both cases, you need to list any cookies related to the Google Analytics service, under wp-admin → Cookie Consent → Cookies.

    That would look something like this:

    | Name  | Domain      | Expiration | Path | Is Regex? |
    |-------|-------------|------------|------|-----------|
    | _gid | example.com | 1 day | / | No |
    | _ga | example.com | 2 years | / | No |
    | ^_ga_ | example.com | 1 year | / | Yes |
    | _gat | example.com | 1 minute | / | No |

    Keep in mind that the values provided are just examples, and your configuration may vary.

    Thread Starter alcain

    (@alcain)

    Thanks ever so much for posting this – I had worked out some of it, but a real help.

    Thanks for a great plugin ??

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