Advertisement
JITreviso

ga4_eec | select_promotion

Aug 17th, 2022
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.dataLayer = window.dataLayer || [];
  2. window.dataLayer.push({
  3.   event: 'select_promotion',
  4.   ecommerce: {
  5.     items: [{
  6.       promotion_id: 'MLB_6473',                 // promotion ID
  7.       promotion_name: 'black_friday',       // name of the promo campaign
  8.       creative_name: '50_percent_off',      // main message of the banner
  9.       creative_slot: 'sidebar1',            // slot of the banner (there are multiple items in the same location, e.g. slider)
  10.       location_id: 'sidebar_P5DNTKK'                // location of the banner
  11.     }]
  12.   }
  13. });
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement