Skip to content

Commit

Permalink
feat: add detected page url to ixdiag [PB-978] (#8425)
Browse files Browse the repository at this point in the history
Co-authored-by: shahin.rahbariasl <shahin.rahbariasl@indexexchange.com>
  • Loading branch information
shahinrahbariasl and shahin-rahbariasl authored May 17, 2022
1 parent 49ea721 commit 4afcada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ function buildIXDiag(validBidRequests) {
allu: 0,
ren: false,
version: '$prebid.version$',
userIds: _getUserIds(validBidRequests[0])
userIds: _getUserIds(validBidRequests[0]),
url: window.location.href.split('?')[0]
};

// create ad unit map and collect the required diag properties
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/ixBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,7 @@ describe('IndexexchangeAdapter', function () {
expect(diagObj.mfu).to.equal(2);
expect(diagObj.allu).to.equal(2);
expect(diagObj.version).to.equal('$prebid.version$');
expect(diagObj.url).to.equal('http://localhost:9876/context.html')
});
});
});
Expand Down

0 comments on commit 4afcada

Please sign in to comment.