Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion modules/liveIntentAnalyticsAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,64 @@ Maintainer: product@liveintent.com

Analytics adapter for [LiveIntent](https://www.liveintent.com/). Contact product@liveintent.com for information.

# Configuration

Customers using GAM and the LiveIntent HIRO snippet for HIRO reporting, and looking to test the Analytics Adapter set up, should add the lines below to their Prebid configuration to enable the analytics module:

```
pbjs.setConfig({
analyticsLabels: {
"partnerId": "did-0000" // your distributor id or application id
}
});

pbjs.enableAnalytics({
provider: 'liveintent',
options: {
sampling: 1 // all winning bid events will be sent to our backend
}
});
```

New customers or customers that are removing the GAM integration for HIRO reporting and the LiveIntent HIRO snippet, the Prebid configuration should set `activatePartialTreatment` to `true`. By default, that will treat only 97% of all page visits and leave 3% untreated (not enriched with LiveIntent-provided IDs). If the desirable treatment rate is different, it can be adjusted by setting `window.liTreatmentRate` to the desired value (between 0.0 and 1.0).

```
pbjs.setConfig({
userSync: {
userIds: [
{
"name": "liveIntentId",
"params": {
"distributorId": "did-0000", // your distributor id; alternatively, liCollectConfig.appId if you have an application id
"activatePartialTreatment" : true,
"requestedAttributesOverrides": {
'sovrn': true,
'medianet': true,
'bidswitch': true,
...
}
}
}
]
}
});

The lines below will enable the analytics module:

pbjs.enableAnalytics({
provider: 'liveintent',
options: {
sampling: 1
}
});
```

# Test Parameters

```
{
provider: 'liveintent',
options: {
bidWonTimeout: 2000,
sampling: 0.5 // the tracked event percentage, a number between 0 to 1
}
}
Expand Down
3 changes: 0 additions & 3 deletions test/spec/modules/liveIntentAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const USERID_CONFIG = [
const configWithSamplingAll = {
provider: 'liveintent',
options: {
bidWonTimeout: 2000,
sampling: 1,
sendAuctionInitEvents: true
}
Expand All @@ -39,7 +38,6 @@ const configWithSamplingAll = {
const configWithSamplingNone = {
provider: 'liveintent',
options: {
bidWonTimeout: 2000,
sampling: 0,
sendAuctionInitEvents: true
}
Expand All @@ -48,7 +46,6 @@ const configWithSamplingNone = {
const configWithNoAuctionInit = {
provider: 'liveintent',
options: {
bidWonTimeout: 2000,
sampling: 1,
sendAuctionInitEvents: false
}
Expand Down
Loading