Advertisement
Jawad_Khan

EEC- GA4 - purchase without products

Jan 12th, 2023
823
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: 'purchase',            // name of the event. In this case, it always must be purchase
  4. brand: 'EGO',            //name of brand for which XPay has been loaded
  5.   ecommerce: {
  6.     currency: 'PKR',
  7.     value: 29.98,                       // order total (price of all products + shipping)
  8.     tax: 3.00,                          // tax
  9.     shipping: 5.00,                 // shipping costs
  10.     transaction_id: 'abc123',           // transaction id
  11.            
  12.    
  13.   }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement