• Resolved wordart88

    (@wordart88)


    I contacted CookieYes support about this but they haven’t gotten back to me in 10 days, maybe someone in here knows the answer?

    I have added some manually cookies where I think their Script URL pattern needs to be the root domain. But when I added / for cookies like wordpress_logged_in_*, I got script errors such as “jQuery is not defined” and “wp is not defined” and the whole site got broken with the CookieYes plugin enabled. After I changed the Script URL pattern to https:// domain.com it seems to work fine with the plugin enabled, but is that the right thinking?

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

    (@cookieyesteam)

    Hi @wordart88,

    Greetings from CookieYes!

    Script URL pattern is a pattern of the URL of the scripts which sets the cookie.

    For example, if the third-party script that sets a cookie is <script async src="https://www.google-analytics.com/analytics.js">, then you can specify its “Script URL Pattern” as google-analytics.com.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @wordart88,

    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.

    Thread Starter wordart88

    (@wordart88)

    Hi!
    That didn’t answer my question. It seems like I need to block some of my site’s server-side cookies with custom PHP code with this as a basis: https://www.cookieyes.com/documentation/handle-the-server-side-cookies/
    But with that in place, I assume I still need to know what the script URL pattern needs to be for cookies like these that are not loaded from an external JS-script but from something like https://my-root-domain.com ?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @wordart88,

    There won’t be a Script URL pattern for server-side cookies as it is not set by scripts. In that case, you need to know the exact location of the PHP code which sets the cookie.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @wordart88,

    Since there hasn’t been much activity on this thread recently, we’ll consider it resolved now. If you have any more questions or still need assistance, please don’t hesitate to start a new thread or reach out for further support.

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

The topic ‘Script URL pattern for root domain?’ is closed to new replies.