Skip to content

Commit 73504ae

Browse files
author
Eyvaz Ahmadzada
committed
add groupchanged param docs
1 parent 63019d8 commit 73504ae

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Please find below list of parameters that could be used in configuring Intent IQ
4141
| params.partner | Required | Number | This is the partner ID value obtained from registering with IntentIQ. | `1177538` |
4242
| params.pcid | Optional | String | This is the partner cookie ID, it is a dynamic value attached to the request. | `"g3hC52b"` |
4343
| params.pai | Optional | String | This is the partner customer ID / advertiser ID, it is a dynamic value attached to the request. | `"advertiser1"` |
44-
| params.callback | Optional | Function | This is a callback which is trigered with data and AB group | `(data, group) => console.log({ data, group })` |
44+
| params.callback | Optional | Function | This is a callback which is trigered with data | `(data) => console.log({ data })` |
4545
| params.timeoutInMillis | Optional | Number | This is the timeout in milliseconds, which defines the maximum duration before the callback is triggered. The default value is 500. | `450` |
4646
| params.browserBlackList | Optional | String | This is the name of a browser that can be added to a blacklist. | `"chrome"` |
4747
| params.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. | `true` |
@@ -56,6 +56,8 @@ Please find below list of parameters that could be used in configuring Intent IQ
5656
| params.reportingServerAddress | Optional | String | The base URL for the IntentIQ reporting server. If parameter is provided in `configParams`, it will be used. | `"https://domain.com"` |
5757
| params.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"` |
5858

59+
| 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)` |
60+
5961

6062

6163
### Configuration example
@@ -69,7 +71,8 @@ pbjs.setConfig({
6971
partner: 123456, // valid partner id
7072
timeoutInMillis: 500,
7173
browserBlackList: "chrome",
72-
callback: (data, group) => {...}, // your logic here
74+
callback: (data) => {...}, // your logic here
75+
groupChanged: (group) => console.log('Group is', group),
7376
manualWinReportEnabled: true,
7477
domainName: "currentDomain.com",
7578
gamObjectReference: googletag,

0 commit comments

Comments
 (0)