Overview
Salesforce Commerce Cloud (formerly Demandware) is an enterprise e-commerce platform that powers the entire storefront experience for many large retailers. When detected on a website, it indicates the site's product catalog, shopping cart, checkout, and order management are all running on Salesforce's infrastructure. The platform combines essential e-commerce functionality with built-in analytics and personalization capabilities.
What This Script Does
Commerce Cloud serves as the application layer for the entire storefront, so its scripts handle both essential transactional functions and optional analytics tracking.
Essential functions:
- Session cookies (typically
dwsidor similar) maintain shopping cart state, product selections, and checkout progress. These are first-party session cookies that expire when the browser closes or after a short inactivity period. - Authentication cookies (
dwanonymous_*,dwsecuretoken_*) manage logged-in user state, saved addresses, payment method tokens, and order history access. Persistent variants may last 30-180 days. - CSRF protection tokens and platform security cookies are set to prevent cross-site request forgery during form submissions and checkout.
Analytics and personalization functions:
- Commerce Cloud's built-in analytics module (sometimes referred to as Commerce Cloud Einstein) tracks product views, search queries, category browsing, cart additions, and purchase events. This data feeds into merchandising reports and product recommendation algorithms.
- Einstein Product Recommendations scripts collect behavioral signals to power "customers also bought" and "recommended for you" widgets.
- A/B testing infrastructure may load to test different product layouts, pricing displays, or promotional content.
Data is transmitted to Salesforce's analytics endpoints for processing. Third-party integrations (payment gateways, analytics tools) are loaded by the platform but are typically separate vendors in their own right.
Consent & Compliance
Commerce Cloud straddles the essential and analytics categories. The core e-commerce session management — cart state, authentication, checkout CSRF protection — qualifies as strictly necessary under the ePrivacy Directive and does not require consent. Under GDPR, these functions can be justified under Article 6(1)(b) as necessary for the performance of a contract (completing a purchase the user initiated).
However, the Einstein analytics and recommendation engine components go beyond what is strictly necessary. Behavioral tracking for product recommendations and merchandising insights constitutes analytics processing that requires consent under both the ePrivacy Directive (for cookie storage) and GDPR (legitimate interest is arguable but consent is the safer legal basis for profiling).
Under CCPA/CPRA, purchase transaction data has specific exemptions, but behavioral browsing data used for personalization and recommendations is personal information subject to disclosure and opt-out requirements.
Should You Block This Without Consent?
Conditional. The core e-commerce session management (cart, authentication, checkout) is essential and should not be blocked. However, the Einstein analytics, product recommendation tracking, and behavioral merchandising features should be blocked until the visitor consents to analytics cookies. Configure your consent management to allow the platform's essential cookies while gating the analytics and personalization scripts.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
demandware.netEssentialFrequently Asked Questions
Does Salesforce Commerce Cloud require cookie consent?
Conditional. Core session cookies like dwsid and dwanonymous_* are strictly necessary for cart and checkout and require no consent. Einstein Analytics scripts tracking browsing behavior for recommendations require analytics consent.
What cookies does Salesforce Commerce Cloud set?
Essential cookies include dwsid (session, cart state), dwanonymous_* and dwsecuretoken_* (authentication, 30-180 days). Einstein Analytics sets behavioral tracking cookies for product recommendation algorithms and A/B test assignments.
How does ConsentStack handle Salesforce Commerce Cloud?
ConsentStack splits Commerce Cloud into essential and analytics categories. Core session and auth cookies load without consent. Einstein Analytics and recommendation tracking scripts are blocked until the visitor grants analytics consent.
Related Vendors
Manage consent for Salesforce Commerce Cloud
ConsentStack automatically detects and manages Salesforce Commerce Cloud trackers so your site stays compliant with global privacy regulations.