WooCommerce cookies1 of 4 need consent
WooCommerce sets 4 cookies we know of. 1 cookie may only be set after the visitor opts in; 3 are strictly necessary and exempt.
Reviewed · Provider: Automattic / WooCommerce
List of WooCommerce cookies
woocommerce_cart_hashNecessaryNo consent neededSessionStores a hash of the current cart contents to help WooCommerce know when the cart changes.
woocommerce_items_in_cartNecessaryNo consent neededSessionHelps WooCommerce determine when cart contents change and the cart widget needs updating.
wp_woocommerce_session_*NecessaryNo consent needed2 daysContains a unique code for each customer so that the shopping cart contents can be retrieved from the database.
woocommerce_recently_viewedFunctionalConsent requiredSessionStores the last few products a user has viewed to power the 'Recently Viewed' widget.
How to handle WooCommerce cookies
- 1Load it only after consent
Hold the WooCommerce script until the visitor accepts functional cookies. Blocking the script is what stops the cookies; hiding them in a banner does not.
- 2Make Reject work
After a visitor rejects, none of the 1 consent-requiring cookie below may be set or kept.
- 3Name every cookie in your policy
List each cookie by name with its purpose, provider (Automattic / WooCommerce) and lifetime.
- 4Check the result, not the settings
Open your site in a private window, reject cookies, and look at what was stored. Or run a scan and compare the three stages.
Tools that help: tracking script blocker · Consent Mode v2 generator
Other vendorsAnd the cookies they set
Does WooCommerce wait for consent on your site?Scan it in 2 minutes
Free scan · every cookie before consent, after Reject and after Accept