Skip to content

Commit

Permalink
parrableIdSystem: Send current page location to back-end (prebid#5123)
Browse files Browse the repository at this point in the history
* PBID-19: Send url (location.href) to Parrable ID system

* PBID-19: Remove es6 destructuring syntax for ie compat
  • Loading branch information
icflournoy authored and iggyfisk committed Jun 22, 2020
1 parent 04ece6e commit e62a6b6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/parrableIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
*/

import * as utils from '../src/utils.js'
import {ajax} from '../src/ajax.js';
import {submodule} from '../src/hook.js';
import { ajax } from '../src/ajax.js';
import { submodule } from '../src/hook.js';
import { getRefererInfo } from '../src/refererDetection.js';

const PARRABLE_URL = 'https://h.parrable.com/prebid';

Expand All @@ -26,9 +27,12 @@ function isValidConfig(configParams) {
function fetchId(configParams, consentData, currentStoredId) {
if (!isValidConfig(configParams)) return;

const refererInfo = getRefererInfo();

const data = {
eid: currentStoredId || null,
trackers: configParams.partner.split(',')
trackers: configParams.partner.split(','),
url: refererInfo.referer
};

const searchParams = {
Expand Down

0 comments on commit e62a6b6

Please sign in to comment.