datastreamId
The datastreamId
property is a string that determines which datastream in Adobe Experience Platform you want to send data to. This property is required when sending data to Adobe. Web SDK versions 2.20.0 or earlier use edgeConfigId
instead.
To locate a datastream ID:
- Log in to experience.adobe.com using your Adobe ID credentials.
- Navigate to Data Collection > Datastreams.
- Use the search field to locate the desired datastream, then select Copy next to the datastream ID.
Alternatively, you can select the desired datastream name and the datastream ID appears in the right column for you to copy.
Select the datastream ID using the Web SDK tag extension
Choose from a list of available datastreams, or enter a datastream ID directly when configuring the tag extension.
-
Log in to experience.adobe.com using your Adobe ID credentials.
-
Navigate to Data Collection > Tags.
-
Select the desired tag property.
-
Navigate to Extensions, then click Configure on the Adobe Experience Platform Web SDK card.
-
Locate the Datastreams section, then select the desired method of determining datastream.
- If choosing from a list, select the sandbox and datastream from each respective dropdown list.
- If entering values, enter the desired datastream ID.
-
Click Save, then publish your changes.
You can send data to different datastreams for production, staging, and development tag environments.
Select the datastream ID using the Web SDK JavaScript library
Set the datastreamID
string property when running the configure
command. This property is required for all Web SDK implementations. If you omit this property, the Web SDK does not know which datastream to send data to, causing that data to be permanently lost.
alloy("configure", {
datastreamId: "ebebf826-a01f-4458-8cec-ef61de241c93",
orgId: "ADB3LETTERSANDNUMBERS@AdobeOrg",
});
If you configure multiple instances of the Web SDK on a single page, you must configure a different datastreamId
for each instance.