WooCommerce

WooCommerce

WooCommerce scripts power cart functionality, checkout flows, and product pages on WordPress stores. The platform integrates analytics, marketing pixels, and payment processing, setting cookies for session management, cart persistence, and purchase tracking.

Overview

WooCommerce is the dominant open-source e-commerce plugin for WordPress, powering a significant share of online stores globally. The platform transforms WordPress installations into full-featured storefronts with product catalogs, shopping carts, and checkout flows. Because WooCommerce operates as a WordPress plugin rather than a standalone platform, its cookie and script behavior is heavily influenced by the specific extensions, payment gateways, and analytics integrations each merchant installs.

What This Script Does

WooCommerce's core scripts manage cart state, checkout form validation, product variation selectors, and AJAX-powered add-to-cart functionality. The platform sets several cookies for essential store operations: woocommerce_cart_hash stores a hash of cart contents for cache invalidation, woocommerce_items_in_cart indicates whether the cart contains products, and wp_woocommerce_session_* maintains the server-side session linking the visitor to their cart data (persists for 48 hours by default). These core cookies are essential for store functionality.

Analytics and Marketing Layer

Beyond core functionality, WooCommerce integrates with analytics and marketing tools through its extension ecosystem. The WooCommerce Analytics module tracks product views, add-to-cart events, and purchase funnels. Many stores also run WooCommerce-specific integrations for Google Analytics (via woocommerce-google-analytics-integration), Facebook Pixel, and other marketing platforms that set their own tracking cookies. These additional scripts are not part of WooCommerce core but are commonly bundled.

Consent & Compliance

WooCommerce scripts span functional and analytics categories. The core cart and checkout cookies are essential for e-commerce functionality — they enable the shopping experience that the visitor explicitly initiated. Under GDPR and the ePrivacy Directive, these functional cookies are exempt from consent requirements as they are strictly necessary for the service requested by the user. However, the analytics layer — conversion tracking, funnel analysis, and any integrated marketing pixels — requires consent. Under CCPA/CPRA, the purchase transaction data is generally covered under the transactional exemption, but analytics and marketing data collection must be disclosed and is subject to opt-out rights.

Should You Block This Without Consent?

Conditional. WooCommerce core cart and checkout scripts are essential for store operations and should not be blocked — doing so would break the shopping experience. However, the analytics tracking, conversion measurement, and any integrated marketing extensions should be blocked until consent is obtained. Site operators should separate WooCommerce's functional scripts from its analytics and marketing extensions in their consent configuration.

Visit website

Consent Categories

Functional
Analytics

Also Known As

WooCommerce WordPressWooCommerce storeWooCommerce checkoutWooCommerce cartWordPress e-commerce

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (1)

woocommerce.comFunctional

Frequently Asked Questions

Does WooCommerce require consent?

Conditionally. WooCommerce's core cart and checkout cookies — woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_* — are essential for store operations and exempt from consent. The analytics module and any integrated marketing extensions require separate consent before activation.

What cookies does WooCommerce set?

WooCommerce core sets woocommerce_cart_hash (cache invalidation), woocommerce_items_in_cart (cart indicator), and wp_woocommerce_session_* (48-hour server session). Additional analytics and marketing extensions — Google Analytics integration, Facebook Pixel — set their own tracking cookies and are not part of WooCommerce core.

How does ConsentStack handle WooCommerce?

ConsentStack excludes WooCommerce core cart cookies from consent requirements, treating them as strictly necessary. Analytics and marketing extensions — conversion tracking, product view pixels, retargeting tags — are gated behind the appropriate consent category and blocked until the visitor consents.

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for WooCommerce

ConsentStack automatically detects and manages WooCommerce trackers so your site stays compliant with global privacy regulations.