Consent Mode with Plugin
-
We are using the WordPress plugin. I tried to implement Consent Mode with CookieYes using method 2 here: https://www.cookieyes.com/documentation/implementing-google-consent-mode-using-cookieyes/
It says to use method 2 if you’re using the plugin. It says this:
Step 2. Paste the custom script above the CookieYes script and Google Tag Manager script. Ensure that the order of the scripts is as follows:
- Custom Consent Mode script
- gtag / GTM script
- CookieYes script
The script must be loaded in this order for it to work.
The issue is – when we paste the script using a header and footer plugin (I used WPCode), the script loads after GTM and CookieYes. How would we add scripts that load before plugins?
I got around it by uninstalling the plugin and installing through Tag Manager but our client prefers using the plugin.
Any help much appreciated!
The topic ‘Consent Mode with Plugin’ is closed to new replies.