Hi @basvweb,
Greetings from CookieYes!
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.
Thanks, is there a delay we can set on the CookieYes script so it will load later than the scripts below?
Hi @basvweb,
Setting a delay to the CookieYes script will affect the blocking of cookies before consent.
The issue is that I can add the consent script in the header, so that’s not a problem but we are using Google Sit Kit plugin and that plugin loads the Google Tags later… What are my options here?
Hi @basvweb,
You can enable the option “Allow Google tags to fire before consent” from CookieYes dashboard > Advanced Settings > Google consent mode (GCM) and now the order of the GTM script won’t be an issue.
Hi,
I have read your instructions on how to implementi Google Consent Mode Using CookieYes but some things are still unclear to me. 😉
I’m using a plugin for adding scripts to header, body and footer. There is a GTM script in the Header and Body section. I assume I add the CookieYes custom script above the GTM code in the header section and that’s it?
PS: I haven’t got any custm consent mode script nor CookieYes scripts. Neither I have an account at CookieYes as this is a small website with not so many users …
Thank you for your answer,
Rico
Hi @nascas,
You should connect the plugin to CookieYes to integrate Google consent mode.
The integration process involves enabling the Support GCM feature on the CookieYes platform, which is typically enabled by default. You can access this feature through the CookieYes Dashboard > Advanced Settings.
You must also add a Custom Consent Mode Script above the wp_head()
function in the website’s header. This script ensures that Google Consent Mode v2 is properly implemented. Refer to our documentation for detailed instructions on the integration process.
Hi,
Thank you for your answer.
So it is necessary to create an account otherwise the GCM feature won’t work?
Have a nice day,
R
Hi @nascas,
To implement Google consent mode, it’s necessary to connect the plugin to CookieYes.
Hi @basvweb,
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.
Hey!
I connected my site with the CookieYes app and nicely adjusted everything.
However, there are still few things I’d like to know.
1. why the header.php needs to be modified?
2. no matter what I select on the consent pop-up (reject or accept) the page does not reload which obviously means the analytics is measured without user’s consent.
I did leave the gtag code in the page header as suggested in your documentation.
Kind thank you for your help,
Rico