Analytics snippets

How to Track Purchase Revenue in GA4 for an A/B Test

★★★ Technical level 3 of 3

Written by Neil Webley · Last updated

Send purchase value, currency and transaction IDs for revenue analysis.

What you need to know

Replace Fire GA Revenue Event sample values with trusted completed-order data. Transaction IDs must be stable and unique for deduplication.

How to use it safely

Fire only after confirmed payment. Use ISO currency, numeric value, no personal information and a test order during QA.

Before publishing

  • Use Staging to test control and every variant.
  • Check matching and non-matching locations.
  • Verify mobile, desktop, accessibility and analytics behaviour.
  • Ask someone else to review the setup.

© 2026 FreeCROTool. All rights reserved | FAQ | site map | Terms and conditions