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.
Is Salesforce Commerce Cloud GDPR compliant?
Salesforce Commerce Cloud typically loads analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Salesforce Commerce Cloud can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Salesforce Commerce Cloud, not on Salesforce Commerce Cloud itself.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
demandware.netEssentialdemandware.net is an essential domain operated by Salesforce Commerce Cloud, used to keep the site working, including security, load balancing, and sessions.
Frequently Asked Questions
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.