From b133be89680e79984f08e4126b84984184d20b9b Mon Sep 17 00:00:00 2001 From: Jaimin Panchal Date: Wed, 6 Dec 2017 14:07:05 -0500 Subject: [PATCH 1/2] IE bug fix --- modules/adxcgAnalyticsAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adxcgAnalyticsAdapter.js b/modules/adxcgAnalyticsAdapter.js index 48285ae5f2d..eb9bc31b584 100644 --- a/modules/adxcgAnalyticsAdapter.js +++ b/modules/adxcgAnalyticsAdapter.js @@ -24,7 +24,7 @@ var adxcgAnalyticsAdapter = Object.assign(adapter( track({eventType, args}) { if (typeof args !== 'undefined') { if (eventType === CONSTANTS.EVENTS.BID_TIMEOUT) { - events.bidTimeout = [...new Set(args.map(item => item.bidder))]; + events.bidTimeout = args.map(item => item.bidder); } else if (eventType === CONSTANTS.EVENTS.AUCTION_INIT) { events.auctionInit = args; auctionTimestamp = args.timestamp; From 846d3f47e38e5448fdc5ca3328d8c38b474f9397 Mon Sep 17 00:00:00 2001 From: Jaimin Panchal Date: Wed, 6 Dec 2017 14:24:55 -0500 Subject: [PATCH 2/2] get only unique bidders --- modules/adxcgAnalyticsAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/adxcgAnalyticsAdapter.js b/modules/adxcgAnalyticsAdapter.js index eb9bc31b584..8de0a346ed6 100644 --- a/modules/adxcgAnalyticsAdapter.js +++ b/modules/adxcgAnalyticsAdapter.js @@ -24,7 +24,7 @@ var adxcgAnalyticsAdapter = Object.assign(adapter( track({eventType, args}) { if (typeof args !== 'undefined') { if (eventType === CONSTANTS.EVENTS.BID_TIMEOUT) { - events.bidTimeout = args.map(item => item.bidder); + events.bidTimeout = args.map(item => item.bidder).filter(utils.uniques); } else if (eventType === CONSTANTS.EVENTS.AUCTION_INIT) { events.auctionInit = args; auctionTimestamp = args.timestamp;