thirdPartyCookiesEnabled

Last update: 2024-09-19
  • Topics:
  • Web SDK
    View more on this topic
  • Created for:
  • Developer

The thirdPartyCookiesEnabled property is a boolean that determines if the Web SDK sets cookies in a third-party context. Enabling this option is useful if you want to identify visitors between subdomains or domains that your organization owns. However, many modern browsers limit the setting and expiration of third-party cookies.

The thirdPartyCookiesEnabled property also controls whether a CORE ID can be requested on getIdentity calls.

When this option is enabled, the Web SDK uses Adobe Audience Manager to help identify a visitor. When this option is disabled, the call to Audience Manager is disabled. See Understanding calls to the Demdex domain in the Audience Manager user guide for more information.

Enable third-party cookies using the Web SDK tag extension

Select the Use third-party cookies checkbox when configuring the tag extension.

  1. Log in to experience.adobe.com using your Adobe ID credentials.
  2. Navigate to Data Collection > Tags.
  3. Select the desired tag property.
  4. Navigate to Extensions, then click Configure on the Adobe Experience Platform Web SDK card.
  5. Scroll down to the Identity section, then select the checkbox Use third-party cookies.
  6. Click Save, then publish your changes.

Enable third-party cookies using the Web SDK JavaScript library

Set the thirdPartyCookiesEnabled boolean when running the configure command. If you omit this property when configuring the Web SDK, it defaults to true. Set this value to false if you do not want the Web SDK to use Audience Manager to help identify visitors.

alloy("configure", {
  datastreamId: "ebebf826-a01f-4458-8cec-ef61de241c93",
  orgId: "ADB3LETTERSANDNUMBERS@AdobeOrg",
  thirdPartyCookiesEnabled: false
});

On this page