Skip to content

Commit

Permalink
adomikAnayticsAdapter/receive KV from sessionStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferal authored and liabas-b committed Mar 3, 2022
1 parent 4b1175f commit 2293a34
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/adomikAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ adomikAdapter.maxPartLength = function () {
};

adomikAdapter.sendTypedEvent = function() {
let [testId, testValue] = adomikAdapter.getKeyValues();
const groupedTypedEvents = adomikAdapter.buildTypedEvents();

const bulkEvents = {
testId: adomikAdapter.currentContext.testId,
testValue: adomikAdapter.currentContext.testValue,
testId: testId,
testValue: testValue,
uid: adomikAdapter.currentContext.uid,
ahbaid: adomikAdapter.currentContext.id,
hostname: window.location.hostname,
Expand Down Expand Up @@ -139,10 +140,16 @@ adomikAdapter.sendTypedEvent = function() {
};

adomikAdapter.sendWonEvent = function (wonEvent) {
<<<<<<< HEAD
let keyValues = { testId: adomikAdapter.currentContext.testId, testValue: adomikAdapter.currentContext.testValue }
let samplingInfo = { sampling: adomikAdapter.currentContext.sampling }
wonEvent = { ...wonEvent, ...keyValues, ...samplingInfo }

=======
let [testId, testValue] = adomikAdapter.getKeyValues();
keyValues = { testId: testId, testValue: testValue }
wonEvent = {...wonEvent, ...keyValues}
>>>>>>> adomikAnayticsAdapter/receive KV from sessionStorage
const stringWonEvent = JSON.stringify(wonEvent)
logInfo('Won event sent to adomik prebid analytic ' + stringWonEvent);

Expand Down

0 comments on commit 2293a34

Please sign in to comment.