• Resolved ricardomdsilva

    (@ricardomdsilva)


    Hi,

    I’m trying to implement Google Consent Mode using this tutorial and I would apreciate some help.

    I’m more familiar with Google Tag Manager but, as I’m using the Plugin version, I understand that it won’t work.

    So I tried the second method, which consists in adding a script to the header of my site. As I’m not familiar with coding, I installed the WPCode plugin to insert the script as a snippet. I understand that the script placement shoud have priority over the GTM and the CookieYes scripts, but this plugin (or any other similar plugins I found) doesn’t allow me to edit the header file itself – only add a new script (which I assume is randomly placed). However, it allows me to set a priority level to a script, so I put in in max priority.

    Dit it work? Can you please help me confirm or give any suggestions if not.

    Thank you.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ricardomdsilva,

    Greetings from CookieYes!

    You can add scripts to your site via the active theme’s header.php file.

    While using the plugin, we append the CookieYes script via the wp_head() function. So you can add the other scripts above the wp_head() in your header.php file to maintain the order of the scripts.

    Also we found that GoogleAds is not blocked prior to consent on your site. Seems like those cookies are missing in your cookie list as well. So please run a scan or add them manually to the cookie list.

    Thread Starter ricardomdsilva

    (@ricardomdsilva)

    Hi. I added the script via header.php. Can you please confirm if everything is ok?

    I also ran another scan, which added cookies for doubleclick.net, that I believe is the GoogleAdsense Marketing platform.

    Thanks.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ricardomdsilva,

    Please place the GTM script also above the CookieYes script. Also we found that some ad scripts are not blocked prior to consent. So please add googlesyndication.com/pagead to the script URL patterns of Advertisement cookie.

    Thread Starter ricardomdsilva

    (@ricardomdsilva)

    Hi @cookieyesteam,

    I added your code just the way you told me in the header.php file, but I believe the other scripts are not there – maybe that’s why this solution is not working.

    Can’t you work on a solution via Google Tag Manager for the plugin users?

    Thanks.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ricardomdsilva,

    As we have mentioned earlier, please add? googlesyndication.com/pagead?to the script URL patterns of Advertisement cookie and this will be blocked automatically.

    While implementing CookieYes via GTM template, you need not use the plugin as this will add duplicate scripts to your site.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ricardomdsilva,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

    Hi I am having the same problem as @ricardomdsilva.

    When I added the CookieYes GA Consent Mode Script to my header using WPCode Plugin, it is not possible to determine the position of the script above the GTM script.

    Also the GTM Script was added using the GTM plugin, so I cannot determine the position of the GTM Script in the header too.

    So I have the plugin and app active, but cannot find a way to set those scripts in the correct order, since they are all fired directly from the plugins (GTM, CookieYes)

    I tried to just hardcode the CookieYes GA Consent Mode Script in my header, but i don’t think it will work, since there are no other scripts there.

    Can you guys help me? My website is: https://barcelonatours.net/

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