Prepare for Third-Party Cookie Restrictions

To prepare for third-party cookie restrictions introduced by Google in 2024, Salesforce B2C Commerce is introducing a new feature toggle that enables partitioned cookies. The partitioned cookie toggle is available in Business Manager with the default value set to disabled.

Why: Beginning in early 2024, Google Chrome is phasing out support for third-party cookies. With this change, Chrome disables third-party cookies that originate from a separate hostname and aren’t partitioned. The loss of support for third-party cookies can affect B2C Commerce capabilities such as the Storefront Toolkit and some Page Designer preview functionality.

How: You can enable the partitioned cookie toggle in Business Manager. Select Administration | Global Preferences | Feature Swithces. When the Partitioned Cookies toggle is enabled, a partitioned attribute is added to cookies created from the B2C Commerce servers. The attribute is added to cookies created through controllers, pipelines, or platform code. Google continues to accept cookies created from B2C Commerce servers and assigned the partitioned attribute.

Note
Note Enabling the partitioned cookies toggle can result in some issues within SFRA or PWA-kit as well as custom code. Before you enable the partitioned cookies toggle on a production instance, Salesforce recommends that you test your storefronts on staging or development instances. If the Storefront Toolkit or Page Designer preview stops working and enabling the feature on Chrome isn’t an option, we recommend you use a different browser such as Firefox as a workaround.