idSyncContainerID idsynccontainerid

This property sets the data source container ID that you want to use for ID syncs.


Syntax and Code Sample section-b0c50732b1c84bed8616e82e8e83d58c

Syntax: idSyncContainerID: *container ID value*

Code Sample:

var visitor = Visitor.getInstance ("Insert Experience Cloud organization ID here",{
   //Set container ID

What are Containers and When Would I Use This? section-6aed44fbe9d6401a8f912cb0d98339a7


Containers are objects created by Audience Manager. Although they’re not externally accessible, these container list all the data sources that:

  • Are available to you, but not used, for ID syncing.
  • Are being used for ID syncing.

Even if you’re not an Audience Manager customer, your account will have these containers if you’re exchanging IDs with different data sources on different pages across your domain. This is because Audience Manager provides the technology and back-end functionality that enables ID synchronization.

Use Cases

Depending on your situation, you may or may not need to add this configuration to your ID service code.

Not needed

You do not need to use this configuration if:

  • You use the ID service with any Experience Cloud solution and don't perform ID syncs with other data sources. In this case, your account has a default container with ID 0 and no action is required.
  • All your data sources are in a single container.

You need to use this configuration when all of these conditions apply:

  • You don't use Audience Manager .
  • You need to synchronize IDs with other data sources that are organized by containers.
  • You need to synchronize IDs with data sources in different containers on different pages across your domain.

Setting Container IDs When You Use DIL and VisitorAPI.js section-f283cb69c8de4348b5316cc4e02a3e9e

If you have deployed DIL and VisitorAPI.js on the same page:

  • Visitor ID service code takes precedence over DIL for ID syncs.
  • Set the idSyncContainerID configuration in the ID service code only.