Skip to content

Commit

Permalink
Feature/send publisher domain (prebid#5121)
Browse files Browse the repository at this point in the history
* use publisher domain name instead of full url

* Revert "use publisher domain name instead of full url"

This reverts commit 2ebabf4.

* use publisher domain name instead of full url

* feature/send-publisher-domain - used package-lock.json from master branch
  • Loading branch information
NemanjaRajkovic9 authored and iggyfisk committed Jun 22, 2020
1 parent 692df43 commit c2c104e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/atsAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function bidRequestedHandler(args) {
user_browser: (browserIsFirefox() || browserIsEdge() || browserIsChrome() || browserIsSafari()),
user_platform: navigator.platform,
auction_start: new Date(args.auctionStart).toJSON(),
domain: args.refererInfo.referer,
domain: window.location.hostname,
pid: atsAnalyticsAdapter.context.pid,
};
});
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/atsAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('ats analytics adapter', function () {
'user_browser': (browserIsFirefox() || browserIsEdge() || browserIsChrome() || browserIsSafari()),
'user_platform': navigator.platform,
'auction_start': '2020-02-03T14:14:25.161Z',
'domain': 'https://example.com/dev',
'domain': window.location.hostname,
'pid': '10433394',
'response_time_stamp': '2020-02-03T14:23:11.978Z',
'currency': 'USD',
Expand Down

0 comments on commit c2c104e

Please sign in to comment.