• Resolved Donald

    (@donald-p)


    Hi Support and all the users who read this.

    I have installed the WordPress plugin CookieYes to the latest version. My WP version is 6.5.2

    I followed the steps in the documentation: Implementing Google Consent Mode Using CookieYes – CookieYes in particular, I followed the Method 2, as I have CookieYes WP plugin, so I don’t need to use GTM CookieYes Gallery.

    I ensured that the custom script code is before the WP_head() and I ensured first to install the custom script as advised, then the GTM code, then ensuring the CookieYes Code is after.

    Once I load my website page, I see the CookieYes Banner and I accept all the cookies but Google Tag Manager Tag is not fired. If I inspect the page, I still see that the custom script who should allow the cookies is on “denied”. As I have also Google Analytics 4 implemented by Google Tag Manager it doesn’t fire as well.

    In CookieYes dashboard I have enabled GCM.

    About my enviroment. I have CloudFlare CDN and I currently disable the Caching just in case.

    Thanks in advance,

    Donald

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

    (@cookieyesteam)

    Hi @donald-p,

    Greetings from CookieYes!

    Please share your site’s URL so that we can closely debug this issue on your site and provide you with a working solution.

    Thread Starter Donald

    (@donald-p)

    Thank you @cookieyesteam for your reply.

    This is the website: https://tuttobulgaria.com

    Thanks in advance,

    Donald

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @donald-p,

    There is a syntax error in the custom code you have added to your site. Also, you can find more syntax errors in your console. Please fix them and let us know the status.

    Thread Starter Donald

    (@donald-p)

    Hi @cookieyesteam

    thanks for the prompt answer.

    I had a look at the errors. The main one is caused by a declaration of the Google Data Layer in your custom script . Basically my WordPress website somehow doesn’t recognise the declaration:

    window.dataLayer = window.dataLayer || [];

    which per se is correct as also confirmed by Google Dev page.

    Another issue is when I installed the GTM code this line causes error:

    var f=d.getElementsByTagName(s)[]

    so what I did to fix it I modified to:

    var f=d.getElementsByTagName(s)[0]

    I have no idea on how to fix this, but a workaround is not to install the CookieYes custom script and leave it as it is.

    When the page load, it shows the banner and the user can choose what they want to authorise. This is send then to GTM to enable or disable the tags.

    Thanks,

    Donald

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @donald-p,

    This custom script is necessary if you want to implement Google consent mode v2 on your site.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @donald-p,

    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 ‘CookieYes doesn’t fire Tags (GCMv2)’ is closed to new replies.