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:
```javascript { JulyTest: [ { name: ‘idSharedSystem’, percentage: 1.0, enabled: true }, { name: ‘33acrossIdSystem’, percentage: 0.5, enabled: false } // May be true or false depending on random selection ] }