Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Larson committed Aug 18, 2020
1 parent 96952bf commit 774a1b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/concertAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'
});
Expand Down

0 comments on commit 774a1b6

Please sign in to comment.