diff --git a/modules/rubiconAnalyticsAdapter.js b/modules/rubiconAnalyticsAdapter.js index b498c03741e..c1ff3a8ca9f 100644 --- a/modules/rubiconAnalyticsAdapter.js +++ b/modules/rubiconAnalyticsAdapter.js @@ -13,6 +13,8 @@ const COOKIE_NAME = 'rpaSession'; const LAST_SEEN_EXPIRE_TIME = 1800000; // 30 mins const END_EXPIRE_TIME = 21600000; // 6 hours +const MODULE_INITIALIZED_TIME = utils.getPerformanceNow(); + const pbsErrorMap = { 1: 'timeout-error', 2: 'input-error', @@ -302,10 +304,12 @@ function sendMessage(auctionId, bidWonId, trigger) { message.bidsWon = bidsWon; } - message.eventTiming = Math.round(utils.getPerformanceNow() - auctionCache.endTs); + message.timeAfterLoad = Math.round(utils.getPerformanceNow() - MODULE_INITIALIZED_TIME); + message.timeAfterAuctionEnd = Math.round(utils.getPerformanceNow() - auctionCache.endTs); auctionCache.sent = true; } else if (bidWonId && auctionCache && auctionCache.bids[bidWonId]) { - message.eventTiming = Math.round(utils.getPerformanceNow() - auctionCache.endTs); + message.timeAfterLoad = Math.round(utils.getPerformanceNow() - MODULE_INITIALIZED_TIME); + message.timeAfterAuctionEnd = Math.round(utils.getPerformanceNow() - auctionCache.endTs); message.bidsWon = [ formatBidWon(auctionCache.bids[bidWonId]) ]; diff --git a/package.json b/package.json index 4aef2d23911..800911f229c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prebid.js", - "version": "4.33.0", + "version": "4.33.2", "description": "Header Bidding Management Library", "main": "src/prebid.js", "scripts": {