Skip to content

Commit

Permalink
Merged in RVR-1192-configuration-global-parameters (pull request #8)
Browse files Browse the repository at this point in the history
RVR-1192 Configuration/Global parameters

Approved-by: Alessandro Di Giovanni <[email protected]>
  • Loading branch information
Kacper Woźniak authored and AlessandroDG committed Oct 2, 2018
1 parent 2e7dc67 commit 3fedb7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/rivrAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function sendAuction() {
let req = Object.assign({}, {Auction: auctionObject});
auctionObject = fulfillAuctionObject();
logInfo('sending request to analytics => ', req);
ajax(`http://${rivrAnalytics.context.host}/${rivrAnalytics.context.clientURL}/auctions`, () => {
ajax(`http://${rivrAnalytics.context.host}/${rivrAnalytics.context.clientID}/auctions`, () => {
}, JSON.stringify(req));
};

Expand Down Expand Up @@ -190,7 +190,7 @@ function reportClickEvent(event) {
'click_url': clickUrl
};
logInfo('Sending click events with parameters: ', req);
ajax(`http://${rivrAnalytics.context.host}/${rivrAnalytics.context.clientURL}/clicks`, () => {
ajax(`http://${rivrAnalytics.context.host}/${rivrAnalytics.context.clientID}/clicks`, () => {
}, JSON.stringify(req));
};

Expand Down Expand Up @@ -370,7 +370,7 @@ rivrAnalytics.enableAnalytics = (config) => {
host: config.options.host || DEFAULT_HOST,
pubId: config.options.pubId,
auctionObject: {},
clientURL: window.location.href,
clientID: config.options.clientID,
queue: new ExpiringQueue(sendImpressions, sendAuction, config.options.queueTimeout || DEFAULT_QUEUE_TIMEOUT)
};
addHandlers(config.options.bannersIds);
Expand Down

0 comments on commit 3fedb7c

Please sign in to comment.