diff --git a/modules/fluctAnalyticsAdapter.js b/modules/fluctAnalyticsAdapter.js index 0ec3b98a0ecb..c723945dd368 100644 --- a/modules/fluctAnalyticsAdapter.js +++ b/modules/fluctAnalyticsAdapter.js @@ -70,6 +70,7 @@ export const convertReplicatedAdUnit = (_adUnit, adUnits = cache.adUnits, slots } catch (error) { console.error(error, JSON.stringify({ adUnit, adUnitPath, adUnits, slots })) } + debugger return adUnit } @@ -108,6 +109,7 @@ let fluctAnalyticsAdapter = Object.assign( let auctionEndEvent = args let { adUnits, adUnitCodes, auctionId, bidsReceived, noBids } = auctionEndEvent Object.assign(cache.auctions[auctionId], auctionEndEvent, { aidSuffix: isBrowsiId(auctionId) ? generateUUID() : undefined }) + debugger cache.adUnits.push(...adUnits.map(adUnit => convertReplicatedAdUnit(adUnit))) let prebidWonBidRequestIds = adUnitCodes.map(adUnitCode => @@ -161,7 +163,10 @@ let fluctAnalyticsAdapter = Object.assign( /** @type {(auctionId: string) => void} */ const sendMessage = (auctionId) => { let { adUnitCodes, adUnits, auctionEnd, aidSuffix, auctionStatus, bids } = cache.auctions[auctionId] + debugger + adUnits = cache.adUnits.filter(adUnit => adUnitCodes.includes(adUnit.code)) + debugger const payload = { auctionId: aidSuffix ? `${auctionId}_${aidSuffix}` : auctionId,