Skip to content

Commit

Permalink
use publisher domain name instead of full url
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja Rajkovic committed Apr 14, 2020
1 parent bddf7e9 commit 2ebabf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 2ebabf4

Please sign in to comment.