How to settings GA4 ecommerce by GTM

GTM Variables

  • Ecommerce Items = ecommerce.items
  • Ecommerce Purchase TransactionId = ecommerce.purchase.transaction_id
  • Ecommerce Purchase Affiliation = ecommerce.purchase.affiliation
  • Ecommerce Purchase Value = ecommerce.purchase.value
  • Ecommerce Purchase Tax = ecommerce.purchase.tax
  • Ecommerce Purchase Shipping = ecommerce.purchase.shipping
  • Ecommerce Purchase Currency = ecommerce.purchase.currency
  • Ecommerce Purchase Coupon= ecommerce.purchase.coupon

GTM Triggers

  • CustomEvent viewitemlist
  • CustomEvent view_item
  • CustomEvent select_item
  • CustomEvent addtocart
  • CustomEvent removefromcart
  • CustomEvent begin_checkout
  • CustomEvent purchase

GTM Tags

  • GA4 settings: trigger = All Pages
  • GA4 event: event name = viewitemlist, trigger = viewitemlist
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = viewitem, trigger = viewitem
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = selectitem, trigger = selectitem
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = addtocart, trigger = addtocart
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = removefromcart, trigger = removefromcart
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = begincheckout, trigger = begincheckout
    • event parameters
      • items = {{Ecommerce Items}}
  • GA4 event: event name = purchase, trigger = purchase
    • event parameters
      • items = {{Ecommerce Purchase Items}}
      • transaction_id = {{Ecommerce Purchase Items}}
      • affiliation = {{Ecommerce Purchase Aaffiliation }}
      • value = {{Ecommerce Purchase Value}}
      • tax = {{Ecommerce Purchase Tax}}
      • shipping = {{Ecommerce Purchase Shipping}}
      • currency = {{Ecommerce Purchase Currency}}
      • coupon= {{Ecommerce Purchase Coupon}}

Links

The following document has a few misstakes. ex purchase parameters and any triggers.


You'll only receive email when they publish something new.

More from iwate
All posts