• Resolved stephenbbs

    (@stephenbbs)


    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!

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

    (@cookieyesteam)

    Hi @stephenbbs,

    Greetings from CookieYes!

    Please make sure that the Custom Consent Mode script is added before gtag / GTM script. The order of CookieYes script won’t be an issue while using plugin.

    Thread Starter stephenbbs

    (@stephenbbs)

    Hi,


    Thanks you for your reply!

    We are using a plugin for GTM – GTM4WP – so I don’t think we can adjust the order.

    Order is currently

    1) CookieYes
    2) GTM
    3) Consent Mode script

    We’d like to continue using the GTM4WP plugin if possible, as it gives added functionality.

    Is the only option method 1 in this case? Am I right in thinking we’d remove the plugin, and is the only step to install CookieYes the Tag Manager add-on?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @stephenbbs,

    Consent mode script should be added at the top of GTM scripts or otherwise the default values won’t be set correctly. So you should either switch to method 1 or add GTM scripts manually without using plugin.

    Thread Starter stephenbbs

    (@stephenbbs)

    Hi, I used Consent Mode using method 1 on one of my sites. Is there a way to check if it is working? Traffic has dropped significantly, and I thought consent mode stills sends traffic data, just anonymously.

    I uninstalled the plugin, and added the CookieYes CMP Tag Manager script to Tag Manager. Is that all I need to do? Is there another script I need to add? Or is it just that one if I’m not using the plugin?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @stephenbbs,

    This might not work properly if you are using Universal Analytics.

    For this to work, you need to implement google analytics via the Google tag or Google Tag Manager. If the analytics_storage is set to ‘denied’, then it won’t read or write first-party analytics cookies. Cookieless pings will be sent to Google Analytics for basic measurement and modeling purposes.

    From the CookieYes dashboard goto Site settings > Google consent mode (GCM) and please make sure that the options “Support GCM” and “Allow Google tags to fire before consent” are enabled.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @stephenbbs,

    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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Consent Mode with Plugin’ is closed to new replies.