Skip to content

Commit

Permalink
added extraData in analytics adapter to be sent in beacon data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil-X committed Aug 19, 2024
1 parent 225c526 commit 5559fdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/pubxaiAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const auctionCache = new Proxy(
consentTypes: Object.keys(getGlobal().getConsentMetadata?.() || {}),
},
pmacDetail: JSON.parse(storage.getDataFromLocalStorage('pubx:pmac')) || {}, // {auction_1: {floor:0.23,maxBid:0.34,bidCount:3},auction_2:{floor:0.13,maxBid:0.14,bidCount:2}
extraData: JSON.parse(storage.getDataFromLocalStorage('pubx:extraData')) || {},
initOptions: {
...initOptions,
auctionId: name, // back-compat
Expand Down Expand Up @@ -248,6 +249,7 @@ const prepareSend = (auctionId) => {
'userDetail',
'consentDetail',
'pmacDetail',
'extraData',
'initOptions',
],
eventType: 'win',
Expand All @@ -263,6 +265,7 @@ const prepareSend = (auctionId) => {
'userDetail',
'consentDetail',
'pmacDetail',
'extraData',
'initOptions',
],
eventType: 'auction',
Expand Down

0 comments on commit 5559fdf

Please sign in to comment.