Skip to content

Commit 935e29d

Browse files
IntentIq ID: add new parameter abPercentage (#6361)
* fix spelling * AGT-705: abPercentage parameter (#16) * add group parameters * remove extra line * add more params to analytical adapter (#17) --------- Co-authored-by: dmytro-po <[email protected]>
1 parent 4b72cbd commit 935e29d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dev-docs/analytics/intentiq.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,34 @@ No registration for this module is required.
2222
{: .table .table-bordered .table-striped }
2323
| Parameter | Scope | Type | Description | Example |
2424
| --- | --- | --- | --- | --- |
25+
| options.partner| Required | Number | This is the partner ID value obtained from registering with IntentIQ. | `1177538` |
2526
| options.manualWinReportEnabled | Optional | Boolean | This variable determines whether the bidWon event is triggered automatically. If set to false, the event will occur automatically, and manual reporting with reportExternalWin will be disabled. If set to true, the event will not occur automatically, allowing manual reporting through reportExternalWin. The default value is false. | `false` |
2627
| options.reportMethod | Optional | String | Defines the HTTP method used to send the analytics report. If set to `"POST"`, the report payload will be sent in the body of the request. If set to `"GET"` (default), the payload will be included as a query parameter in the request URL. | `"GET"` |
2728
| options.reportingServerAddress | Optional | String | The base URL for the IntentIQ reporting server. If parameter is provided in `configParams`, it will be used. | `"https://domain.com"` |
2829
| options.adUnitConfig | Optional | Number | Determines how the `placementId` parameter is extracted in the report (default is 1). Possible values: 1 – adUnitCode first, 2 – placementId first, 3 – only adUnitCode, 4 – only placementId. | `1` |
2930
| options.gamPredictReporting | Optional | Boolean | This variable controls whether the GAM prediction logic is enabled or disabled. The main purpose of this logic is to extract information from a rendered GAM slot when no Prebid bidWon event is available. In that case, we take the highest CPM from the current auction and add 0.01 to that value. | `false` |
31+
| options. ABTestingConfigurationSource | Optional | String | Determines how AB group will be defined. Possible values: `"IIQServer"` – group defined by IIQ server, `"percentage"` – generated group based on abPercentage, `"group"` – define group based on value provided by partner. | `IIQServer` |
32+
| options.abPercentage | Optional | Number | Percentage for A/B testing group. Default value is `95` | `95` |
33+
| options.group | Optional | String | Define group provided by partner, possible values: `"A"`, `"B"` | `"A"` |
34+
| options.gamObjectReference | Optional | Object | This is a reference to the Google Ad Manager (GAM) object, which will be used to set targeting. If this parameter is not provided, the group reporting will not be configured.| `googletag`|
35+
| options.browserBlackList | Optional | String | This is the name of a browser that can be added to a blacklist.| `"chrome"`|
36+
| options.domainName | Optional | String | Specifies the domain of the page in which the IntentIQ object is currently running and serving the impression. This domain will be used later in the revenue reporting breakdown by domain. For example, cnn.com. It identifies the primary source of requests to the IntentIQ servers, even within nested web pages.| `"currentDomain.com"`|
37+
| options. additionalParams | Optional | Array | This parameter allows sending additional custom key-value parameters with specific destination logic (sync, VR, winreport). Each custom parameter is defined as an object in the array. | `[ { parameterName: “abc”, parameterValue: 123, destination: [1,1,0] } ]` |
38+
| options. additionalParams[0].parameterName | Required | String | Name of the custom parameter. This will be sent as a query parameter. | `"abc"` |
39+
| options. additionalParams[0].parameterValue | Required | String / Number | Value to assign to the parameter. | `123` |
40+
| options. additionalParams[0].destination | Required | Array | Array of numbers either `1` or `0`. Controls where this parameter is sent `[sendWithSync, sendWithVr, winreport]`. | `[1, 0, 0]` |
3041

3142
#### Example Configuration
3243

3344
```js
3445
pbjs.enableAnalytics({
3546
provider: 'iiqAnalytics',
3647
options: {
48+
partner: 1177538,
3749
manualWinReportEnabled: false,
3850
reportMethod: "GET",
3951
adUnitConfig: 1,
52+
domainName: "currentDomain.com",
4053
gamPredictReporting: false
4154
}
4255
});

dev-docs/modules/userid-submodules/intentiq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Please find below list of parameters that could be used in configuring Intent IQ
5555
| params.siloEnabled | Optional | Boolean | Determines if first-party data is stored in a siloed storage key. When set to `true`, first-party data is stored under a modified key that appends `_p_` plus the partner value rather than using the default storage key. The default value is `false`. | `true` |
5656
| params.groupChanged | Optional | Function | A callback that is triggered every time the user’s A/B group is set or updated. |`(group) => console.log('Group changed:', group)` |
5757
| params.chTimeout | Optional | Number | Maximum time (in milliseconds) to wait for Client Hints from the browser before sending request. Default value is `10ms` | `30` |
58+
| params. ABTestingConfigurationSource| Optional | String | Determines how AB group will be defined. Possible values: `"IIQServer"` – group defined by IIQ server, `"percentage"` – generated group based on abPercentage, `"group"` – define group based on value provided by partner. | `IIQServer` |
59+
| params.abPercentage | Optional | Number | Percentage for A/B testing group. Default value is `95` | `95` |
60+
| params.group | Optional | String | Define group provided by partner, possible values: `"A"`, `"B"` | `"A"` |
5861
| params.additionalParams | Optional | Array | This parameter allows sending additional custom key-value parameters with specific destination logic (sync, VR, winreport). Each custom parameter is defined as an object in the array. | `[ { parameterName: “abc”, parameterValue: 123, destination: [1,1,0] } ]` |
5962
| params.additionalParams [0].parameterName | Required | String | Name of the custom parameter. This will be sent as a query parameter. | `"abc"` |
6063
| params.additionalParams [0].parameterValue | Required | String / Number | Value to assign to the parameter. | `123` |
@@ -79,6 +82,7 @@ pbjs.setConfig({
7982
sourceMetaData: "123.123.123.123", // Optional parameter
8083
sourceMetaDataExternal: 123456, // Optional parameter
8184
chTimeout: 10, // Optional parameter
85+
abPercentage: 95, // Optional parameter
8286
additionalParams: [ // Optional parameter
8387
{
8488
parameterName: "abc",

0 commit comments

Comments
 (0)