From bd9243cdec2305baa7e96731d2ddc7458f4d0fe3 Mon Sep 17 00:00:00 2001 From: NemanjaRajkovic9 <45632924+NemanjaRajkovic9@users.noreply.github.com> Date: Fri, 17 Apr 2020 18:32:12 +0200 Subject: [PATCH] Feature/send publisher domain (#5121) * use publisher domain name instead of full url * Revert "use publisher domain name instead of full url" This reverts commit 2ebabf400db100220dcb78a2631f020bce659016. * use publisher domain name instead of full url * feature/send-publisher-domain - used package-lock.json from master branch --- modules/atsAnalyticsAdapter.js | 2 +- test/spec/modules/atsAnalyticsAdapter_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/atsAnalyticsAdapter.js b/modules/atsAnalyticsAdapter.js index f15e5aa2b1f..7bf2ca75c17 100644 --- a/modules/atsAnalyticsAdapter.js +++ b/modules/atsAnalyticsAdapter.js @@ -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, }; }); diff --git a/test/spec/modules/atsAnalyticsAdapter_spec.js b/test/spec/modules/atsAnalyticsAdapter_spec.js index 10fe7de7203..3dd6f261c11 100644 --- a/test/spec/modules/atsAnalyticsAdapter_spec.js +++ b/test/spec/modules/atsAnalyticsAdapter_spec.js @@ -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',