Skip to content

Commit

Permalink
register google analytics after methods attached (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich authored and Matt Kendall committed Jul 14, 2017
1 parent 17a0b79 commit 48be730
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/googleAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ var _enableDistribution = false;
var _trackerSend = null;
var _sampled = true;

adaptermanager.registerAnalyticsAdapter({
adapter: exports,
code: 'ga'
});

/**
* This will enable sending data to google analytics. Only call once, or duplicate data will be sent!
* @param {object} provider use to set GA global (if renamed);
Expand Down Expand Up @@ -256,3 +251,8 @@ function sendBidWonToGa(bid) {

checkAnalytics();
}

adaptermanager.registerAnalyticsAdapter({
adapter: exports,
code: 'ga'
});

0 comments on commit 48be730

Please sign in to comment.