filipr27

GA4 - view_item - no2 - next

Aug 10th, 2022
117
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: 'view_item',
  4.   ecommerce: {
  5.     items: [{
  6.       item_name: 'Integrated Reservoir Analysis',     //Product Name - Type: string
  7.       item_id: '72217',                               //Product ID/SKU - Type: string
  8.       price: 4500.00,                                 //Product price - Type: number
  9.       currency: 'USD',                                //Currency of the price that is collected - Type: string
  10.       discount: 0.00,                                 //Any discount associated with this product - Type: number
  11.       item_brand: 'Petrophysics',                     //Product Brand - Type: string  
  12.       item_category: 'Petrotechnical',                //Product Category - Type: string
  13.       item_category2: 'Indonesia',                    //Product Sub-Category 1 - Type: string
  14.       item_category3: 'Bali',                         //Product Sub-Category 2 - Type: string
  15.       item_variant: 'Foundation',                     //Variant of the product - variant SKU/ID - Type: string
  16.       quantity: 1                                     //Product quantity - Type: number
  17.     }]
  18.   }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment