Conversion event tracking¶
Always-on rule for conversion-event-tracking · Source
- Use the event names
view_item,add_to_cart,begin_checkout,add_shipping_info,add_payment_info,purchase, andrefund. - Send
itemswith a stableitem_idfor the purchasable unit. - Set
valueto the sum of item price times quantity. Exclude tax and shipping. Send those as their own purchase fields. - Require an ISO currency whenever
valueis set. - Fire
purchaseonly after payment is confirmed.transaction_idis the order number and must be non-empty. - Reuse that
transaction_idon reload and onrefund. Do not mint a new id per page view. - Do not put customer name, email, or phone on the event.
- Follow the shop's consent settings before loading advertising tags.
- Run
scripts/check-event.mjson the payload. It does not call an analytics service.