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 2, 2018
1 parent a990f38 commit 2f731f7
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 2f731f7

Please sign in to comment.