• Resolved siutek

    (@siutek)


    After adding the google consent mode tag (method two), the console displayed the error “TypeError: Cannot read properties of null (reading ‘includes’)”, so that the rejection of all cookies does not work, and there is no list of cookies in the banner. Using method one (via GTM), CookieYes started blocking all scripts on the site, adding to cart stopped working, galleries stopped working, etc. Therefore, I used method one.

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

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

    (@cookieyesteam)

    Hi @siutek,

    Greetings from CookieYes!

    The issue seems to be related to a cookie manually added to your Cookie List with the Cookie ID as NULL. Could you please check the working after removing that cookie from your Cookie List in the Advertisement category?
    Also, please make sure that you follow method 2 while implementing Google consent mode along with the plugin. To ensure the order of the scripts, you can append GTM scripts and the custom script above the wp_head() function call in your header.php file.

    Thread Starter siutek

    (@siutek)

    Indeed, it was the cookie that caused the error. After removing it, it works better.
    Please give me some more hints on how I can change the loading order of the CookieYes banner so that it lands under the GTM code (I’m using the GTM4WP plugin). Currently the banner loads above the GTM code.

    • This reply was modified 8 months, 3 weeks ago by siutek.
    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @siutek,

    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.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @siutek,

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘TypeError: Cannot read properties of null’ is closed to new replies.