Skip to content

Commit

Permalink
Merge pull request #219 from zestyxyz/raven-custom-param
Browse files Browse the repository at this point in the history
Send adUnitId as custom param in raven
  • Loading branch information
msub2 authored Jun 27, 2024
2 parents 7243cb2 + a767d47 commit 18c91e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/networking.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ const initPrebid = (adUnitId, format) => {
div.style.height = '1920px';
}

// Pass ad unit id as a custom param for prebid metrics
window.Raven = window.Raven || { cmd: [] };
window.Raven.cmd.push(({ config }) => {
config.setCustom({
param1: adUnitId,
});
});

window.tude = window.tude || { cmd: [] };
tude.cmd.push(function() {
tude.refreshAdsViaDivMappings([
Expand Down

0 comments on commit 18c91e7

Please sign in to comment.