Skip to content

Commit 8a2b3c9

Browse files
kyrylenkoPavlo
andauthored
hostname qsp added to anonymised tag loader src (prebid#14623)
Co-authored-by: Pavlo <pavlo@id-ward.com>
1 parent adf5a4f commit 8a2b3c9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/anonymisedRtdProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function createRtdProvider(moduleName) {
6363
const tagConfig = config.params?.tagConfig ? { ...config.params.tagConfig, idw_client_id: config.params.tagConfig.clientId } : {};
6464
delete tagConfig.clientId;
6565

66-
const tagUrl = config.params.tagUrl ? config.params.tagUrl : `${MARKETING_TAG_URL}?ref=prebid`;
66+
const tagUrl = config.params.tagUrl ? config.params.tagUrl : `${MARKETING_TAG_URL}?ref=prebid&d=${window.location.hostname}`;
6767

6868
loadExternalScript(tagUrl, MODULE_TYPE_RTD, SUBMODULE_NAME, () => {
6969
logMessage(`${SUBMODULE_NAME}RtdProvider: Marketing Tag loaded successfully`);

test/spec/modules/anonymisedRtdProvider_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('anonymisedRtdProvider', function() {
9393
}
9494
};
9595
anonymisedRtdSubmodule.init(rtdConfig, {});
96-
const expected = 'https://static.anonymised.io/light/loader.js?ref=prebid';
96+
const expected = `https://static.anonymised.io/light/loader.js?ref=prebid&d=${window.location.hostname}`;
9797
const expectedTagConfig = {
9898
idw_client_id: 'testId'
9999
};

0 commit comments

Comments
 (0)