Title: Script URL pattern for root domain?
Last modified: March 11, 2024

---

# Script URL pattern for root domain?

 *  Resolved [wordart88](https://wordpress.org/support/users/wordart88/)
 * (@wordart88)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/)
 * 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](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17492494)
 * Hi [@wordart88](https://wordpress.org/support/users/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](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17507445)
 * Hi [@wordart88](https://wordpress.org/support/users/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](https://wordpress.org/support/users/wordart88/)
 * (@wordart88)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17518392)
 * 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/](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](https://my-root-domain.com)?
 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17525720)
 * Hi [@wordart88](https://wordpress.org/support/users/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](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17541505)
 * Hi [@wordart88](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/script-url-pattern-for-root-domain/#post-17541505)
 * Status: resolved