Skip to content

Commit

Permalink
Applied feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozniaxos authored and AlessandroDG committed Oct 17, 2018
1 parent 32d73b0 commit 071c40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/rivrAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function reportClickEvent(event) {
}, JSON.stringify(req));
};

function clickHandler(bannersIds) {
function addClickHandlers(bannersIds) {
setTimeout(function () {
bannersIds.forEach(function (bannerId) {
let doc = document.getElementById(bannerId);
Expand Down Expand Up @@ -353,7 +353,7 @@ rivrAnalytics.enableAnalytics = (config) => {
clientURL: window.location.href,
queue: new ExpiringQueue(sendImpressions, sendAuction, config.options.queueTimeout || DEFAULT_QUEUE_TIMEOUT)
};
clickHandler(config.options.bannersIds);
addClickHandlers(config.options.bannersIds);
displayedImpressionHandler(config.options.bannersIds);
logInfo('Rivr Analytics enabled with config', rivrAnalytics.context);
rivrAnalytics.originEnableAnalytics(config);
Expand Down

0 comments on commit 071c40c

Please sign in to comment.