GA4 starter module
Refund events
Sends server-side refund events that reverse the matching recorded revenue.
- Files
- 1
- Lines
- 70
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/refunds/send-refund.ts
Reverses revenue only for the exact recorded purchase and uses the same client identifier.
TypeScript
70 lines
Questions about refund events
Does it include GA4 purchase and refund events?
Yes. It sends trusted purchase and refund events from your server with stable order details so retries do not inflate revenue.