ÃÛ¶¹ÊÓƵ

datastreamId

The datastreamId property is a string that determines which datastream in ÃÛ¶¹ÊÓƵ Experience Platform you want to send data to. This property is required when sending data to ÃÛ¶¹ÊÓƵ. Web SDK versions 2.20.0 or earlier use edgeConfigId instead.

To locate a datastream ID:

  1. Log in to using your ÃÛ¶¹ÊÓƵ ID credentials.
  2. Navigate to Data Collection > Datastreams.
  3. Use the search field to locate the desired datastream, then select Copy 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.

  1. Log in to using your ÃÛ¶¹ÊÓƵ ID credentials.

  2. Navigate to Data Collection > Tags.

  3. Select the desired tag property.

  4. Navigate to Extensions, then click Configure on the ÃÛ¶¹ÊÓƵ Experience Platform Web SDK card.

  5. 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.
  6. 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@ÃÛ¶¹ÊÓƵOrg",
});

If you configure multiple instances of the Web SDK on a single page, you must configure a different datastreamId for each instance.

recommendation-more-help
ad108910-6329-42f1-aa1d-5920a2b13636