Ecommerce

How to track coupon and discount-code usage in GA4

If you run discount codes, you want to know which ones drive sales and which just hand away margin on orders you would have won anyway. GA4's ecommerce events can capture the coupon on every order, if you send it.

Where coupon data lives in GA4

GA4's ecommerce spec has a coupon field, available at both order level and item level on the purchase event. If your data layer includes the code the customer used, GA4 will store it against the order and the products.

How to send it

What to do with it

Compare revenue, order count and average order value by coupon to see which codes bring genuinely new business versus which get stacked onto orders that would have converted anyway. Watch for a single code quietly attached to most orders, that is margin leaking. Clean ecommerce tracking is the prerequisite here: if your item data is missing, the coupon data usually is too.

Want us to check your tracking in 10 seconds?

Pop in your domain and we will show you what is firing, what is not, and where data is leaking. Free, no signup.

Check my tracking free

Get a plain-English audit

We check your live GA4, Google Tag Manager and consent setup by hand and tell you exactly what is wrong. The audit comes off any build.

See how it works & pricing

Datahound are analytics and ad-tracking specialists. We fix broken GA4, Google Tag Manager and server-side tracking so every sale, form and call gets counted. Back to datahound.agency · All tracking guides · GA4 ecommerce purchase tracking