Skip to content

Commit

Permalink
Fix: fixed site referrer for iframes using external sites error #13231
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Arnau committed Nov 6, 2023
1 parent cc1509f commit b49f895
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ function buildOneRequest(validBidRequests, bidderRequest) {
site.name = bundle;
site.page = bidderRequest?.refererInfo?.page || deepAccess(validBidRequests, 'params.site.page') || bidderRequest?.refererInfo?.topmostLocation || window.location.href || bundle;
site.domain = bundle;
site.ref = bidderRequest?.refererInfo?.ref || window.top.document.referrer || '';
try {
site.ref = bidderRequest?.refererInfo?.ref || window.top.document.referrer || '';
} catch (e) {
site.ref = bidderRequest?.refererInfo?.ref || window.document.referrer || '';
}
site.ext = {};
site.ext.is_amp = bidderRequest?.refererInfo?.isAmp || 0;
site.ext.page_da = deepAccess(validBidRequests, 'params.site.page') || '-';
Expand Down

0 comments on commit b49f895

Please sign in to comment.