Skip to content

Commit

Permalink
Add referrer to ix adapter (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
florevallatmrf authored and Pedro López Jiménez committed Mar 18, 2019
1 parent 0275e99 commit 4ebeb85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,16 @@ export const spec = {

r.imp = bannerImps;
r.site = {};
r.site.page = utils.getTopWindowUrl();
r.ext = {};
r.ext.source = 'prebid';

if (document.referrer && document.referrer !== '') {
r.site.ref = document.referrer;
const referrer = validBidRequests[0].params.referrer;

if (referrer) {
r.site.ref = referrer;
} else {
r.site.ref = utils.getTopWindowReferrer();
}

// Apply GDPR information to the request if GDPR is enabled.
Expand Down

0 comments on commit 4ebeb85

Please sign in to comment.