Skip to content

Commit

Permalink
Add custom parameter for app/web traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Oct 21, 2024
1 parent b1eda43 commit 3304070
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/frontend/src/components/ui/AdPlaceholder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ useHead({
onMounted(() => {
window.tude = window.tude || { cmd: [] };
window.Raven = window.Raven || { cmd: [] };
window.Raven.cmd.push(({ config }) => {
config.setCustom({
param1: "web",
});
});
tude.cmd.push(function () {
tude.refreshAdsViaDivMappings([
{
Expand Down
8 changes: 8 additions & 0 deletions apps/frontend/src/public/promo-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@
function initAds(personalized) {
window.tude = window.tude || { cmd: [] };

window.Raven = window.Raven || { cmd: [] };

window.Raven.cmd.push(({ config }) => {
config.setCustom({
param1: "app",
});
});

tude.cmd.push(function () {
tude.refreshAdsViaDivMappings([
{
Expand Down

0 comments on commit 3304070

Please sign in to comment.