From 774a1b69fa77a014259dff63e7695ed78d928c4a Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Tue, 18 Aug 2020 10:09:27 -0500 Subject: [PATCH] More debugging --- modules/concertAnalyticsAdapter.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/concertAnalyticsAdapter.js b/modules/concertAnalyticsAdapter.js index 58cd34fe8d1..6c99c12c646 100644 --- a/modules/concertAnalyticsAdapter.js +++ b/modules/concertAnalyticsAdapter.js @@ -24,6 +24,8 @@ let queue = []; let concertAnalytics = Object.assign(adapter({url, analyticsType}), { track({ eventType, args }) { + // eslint-disable-next-line no-console + console.log('got event', eventType, args); switch (eventType) { case BID_RESPONSE: if (args.bidder !== 'concert') break; @@ -96,7 +98,11 @@ function sendEvents() { try { const body = JSON.stringify(queue); - ajax(url, () => queue = [], body, { + ajax(url, () => { + // eslint-disable-next-line no-console + console.log('flushing bid queue'); + queue = [] + }, body, { contentType: 'application/json', method: 'POST' });