The Enrichment Lift Measurement Module allows publishers to evaluate the performance of User ID submodules by configuring and executing A/B tests. It offers several configuration options that enable publishers to:
Additionally, the module attaches the A/B group configuration to analytics labels for tracking and reporting.
config.setConfig.localStorage or sessionStorage. (In memory mode, this step is skipped, and the configuration is recalculated on each page load.)| Parameter | Description | Allowed Values | Default |
|---|---|---|---|
storeSplits |
Defines where to store the A/B group configuration | memory, sessionStorage, localStorage |
- |
suppression |
Determines how to disable User ID submodules | submodules, eids |
eids |
modules[].name |
Name of the User ID submodule | (string) | - |
modules[].percentage |
Percentage of users for whom the module is enabled | (number between 0 and 1) | - |
testRun |
A label used for storing and reporting test configuration status | (string) | - |
pbjs.setConfig({
enrichmentLiftMeasurement: {
modules: [
{ name: 'idSharedSystem', percentage: 1.0 }, // Enabled for 100% of users
{ name: '33acrossIdSystem', percentage: 0.5 } // Enabled for ~50% of users
],
storeSplits: 'memory', // Configuration is not stored; recalculated on each page load
suppression: 'submodules',
testRun: 'JulyTest'
}
});
The following object will be attached to analytics labels based on the configuration above:
{
JulyTest: [
{ name: 'idSharedSystem', percentage: 1.0, enabled: true },
{ name: '33acrossIdSystem', percentage: 0.5, enabled: false } // May be true or false depending on random selection
]
}
The module adds one analytics label whose key matches the configured testRun value. The value is an array that lists every User ID submodule participating in the experiment along with its configured percentage and whether it was enabled for the current page view. Analytics adapters can use that label to segment reporting by experiment group.
name: The User ID submodule name.percentage: The configured rollout percentage, which is useful for validating traffic splits.enabled: Indicates whether the submodule ran for the current user; this is the randomized value that identifies the treatment/control groups.See the Analytics labels section for guidance on how analytics adapters consume this metadata.