edgeConfigOverrides (configure command)
The edgeConfigOverrides object allows you to override configuration settings for commands run on the current page. This object is useful when you have different websites or subdomains for different countries, or if you have multiple Experience Platform sandboxes to store data specific to different business units. If you want to override configuration settings for only a single command on the page, consider using the edgeConfigOverrides object in the sendEvent command.
The datastream configuration override process consists of two main steps:
- First, you must define your datastream configuration override when configuring a datastream in the Datastreams UI. See Datastream configuration overrides in the datastreams documentation for instructions on how to configure overrides.
- After you have configured the datastream override in the datastreams UI, you can configure the
edgeConfigOverridesobject.
When you set the edgeConfigOverrides object in the configure command, it applies to all data sent to Adobe. The following commands also support the edgeConfigOverrides object:
Setting edgeConfigOverrides in any of the above commands takes precedence over the edgeConfigOverrides object in the configure command if both are set. If any of these commands do not contain an edgeConfigOverrides object, then the edgeConfigOverrides object in the configure command is used.
Example
If your datastream configuration has all supported services enabled, the sample below overrides this setting and disables all services.
alloy("configure", {
orgId: "97D1F3F459CE0AD80A495CBE@AdobeOrg",
datastreamId: "db9c70a1-6f11-4563-b0e9-b5964ab3a858",
edgeConfigOverrides: {
com_adobe_experience_platform: {
enabled: false,
datasets: {
event: {
datasetId: "64b6f930753dd41ca8d4fd77"
}
},
com_adobe_edge_ode: {
enabled: false
},
com_adobe_edge_segmentation: {
enabled: false
},
com_adobe_edge_destinations: {
enabled: false
},
com_adobe_edge_ajo: {
enabled: false
},
},
com_adobe_analytics: {
enabled: false,
reportSuites: ["exampleoverridersid","exampleoverridersid2"]
},
com_adobe_identity: {
idSyncContainerId: 34373
},
com_adobe_target: {
enabled: false,
propertyToken: "01dbc634-07c1-d8f9-ca69-b489a5ac5e94"
},
com_adobe_audience_manager: {
enabled: false
},
com_adobe_launch_ssf: {
enabled: false
}
}
});
orgIdstringdatastreamIdstringcom_adobe_experience_platformobjectcom_adobe_experience_platform.enabledbooleancom_adobe_experience_platform.datasetsobjectcom_adobe_experience_platform.com_adobe_edge_ode.enabledbooleancom_adobe_experience_platform.com_adobe_edge_segmentation.enabledbooleancom_adobe_experience_platform.com_adobe_edge_destinations.enabledbooleancom_adobe_experience_platform.com_adobe_edge_ajo.enabledbooleancom_adobe_analytics.enabledbooleancom_adobe_analytics.reportSuites[]string[]com_adobe_audience_manager.enabledbooleancom_adobe_identity.idSyncContainerIdintegercom_adobe_audience_manager.enabled set to true. Otherwise, the Audience Manager service is disabled.com_adobe_target.enabledbooleancom_adobe_target.propertyTokenstringcom_adobe_launch_ssfbooleanConfiguration overrides using the Web SDK tag extension
The Web SDK tag extension equivalent of this field is under Configuration overrides when configuring the tag extension.