1function gtmSelectPromotion(data) { 2 dataLayer.push({ecommerce: null, context: null}); 3 let args = { 4 event: "select_promotion", 5 ecommerce: { 6 creative_name: data.creativeName, // 7 creative_slot: data.creativeSlot, // '"featured_items" 8 promotion_id: data.promotionId, // 'summer_campaign_2021', 9 promotion_name: data.promotionName, // 'summer_campaign_2021', 10 items: data.items, 11 }, 12 page_url: window.location.href 13 }; 14 dataLayer.push(args); 15} 16 17export default gtmSelectPromotion;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.