Hi @thewebmonk,
Great question, and you’ve categorised it correctly. Functional is the right category for woocommerce_recently_viewed as confirmed in the WooCommerce cookies documentation.
For the script URL pattern in CookieYes, use:
/wp-content/plugins/woocommerce/
This covers all WooCommerce frontend scripts that set this cookie. Since the woocommerce_recently_viewed cookie is set by WooCommerce’s own JavaScript (not a third-party script), pointing CookieYes to the Woo plugin path is the correct approach.
One thing worth noting: even if you’re not using the Recently Viewed Products widget, WooCommerce still sets this cookie whenever a visitor views a product page. It tracks the data in the background regardless of whether it’s displayed anywhere on the frontend. If you’d prefer not to set it at all, it can be disabled via a small code snippet, but for most stores simply categorising it as Functional and pointing to the WooCommerce plugin path is the right approach.
Out of curiosity, could you tell me more about your site setup? Are you using any product recommendation features or extensions that might be utilizing this cookie data?
Looking forward to your response.
Hello Frank,
thank you for your reply.
I believe that these are only Woocommerce widgets/recommendations visible on the front-end:
>Related products
>You may be interested in… (in the cart)
>Products by Tag (in blog posts)
I have updated the CookieYes setting!
Hi @thewebmonk,
You’re correct on all three! Those are Woo frontend widgets that use the woocommerce_recently_viewed data, so the Functional category is absolutely the right classification for that cookie.
Glad the CookieYes update is sorted! I’ll go ahead and mark this as resolved but feel free to open a new thread anytime if anything else comes up.
If you have a moment and would like to share your experience to help others in the community, you can leave a review here: https://wordpress.org/plugins/woocommerce/#reviews
AS INSTRUCTED I WILL OPEN A NEW THREAD
Hello Frank,
I have another problem, after hitting “publish the changes” on CookieYes, I tested the checkout process (luckily) and found out that the Paypal buttons were not showing! I tried both on mobile and desktop.
I have deactivated the CookieYes plugin, and the buttons reappered. I use WooCommerce PayPal Payments.
As Script I had put wp-content/plugins/woocommerce/ – I notice that in your instructions you had included a / at the beginning of the script, could that be the issue?
I see that the other Woocommerce cookies that were previously set, have the following pattern: plugins/woocommerce. Here they are:
woocommerce_items_in_cart
session
Script URL pattern: plugins/woocommerce
wp_woocommerce_session_*
2 days
Script URL pattern: plugins/woocommerce
The only exception is this:
woocommerce_cart_hash
session
Script URL pattern: Not available
Just for information, if useful, I also use LiteSpeed Cache plugin.
Thank you!
-
This reply was modified 4 hours, 44 minutes ago by
thewebmonk.
Hi @thewebmonk,
Thanks for the heads up! I’ll go ahead and reply to that thread.