Skip to content

Refund tracking

Automatically track refunds in GA4

Use with AI

Use with AI

Ready-made prompts Connect your AI to Pasilobus Install the CLI

This page

View as MarkdownPlain text of this page Open in ClaudeAsk about this page Open in ChatGPTAsk about this page

Ready-made prompts

Fill in the parts in angle brackets, then paste into any assistant.

Step by step on your store

Read https://help.pasilobus.com/google-analytics/refund-tracking.md. Walk me through refund tracking in GA4 Tracking for my store, step by step. My theme is <theme name> and I want <what you want to happen>.

Ask your own question

Read https://help.pasilobus.com/google-analytics/refund-tracking.md. Answer this about GA4 Tracking on my store: <your question>.

Ask Shopify Sidekick

In your Shopify admin, ask Sidekick about GA4 Tracking. It searches these guides.

Connect your AI to Pasilobus Beta

Our MCP server lets Claude, ChatGPT, OpenClaw and other MCP clients use your Pasilobus apps. It is in beta and open to every Pasilobus account: you sign in with it when your assistant asks. Tools that change your store are marked as changes, so your assistant asks you first.

https://cloud.pasilobus.com/mcp

In Claude Code, add it, then run /mcp to sign in:

claude mcp add --transport http pasilobus https://cloud.pasilobus.com/mcp

In Claude on the web or desktop, go to Customize › Connectors › Add custom connector and paste the address. In ChatGPT, OpenClaw or another client, add it as a custom connector (MCP) with the same address.

Install the CLI

npm install -g pasilobus

Run your apps from the terminal or a coding agent. These only read, so they are safe to try:

pasilobus google-analytics conversions

Purchases sent to Google Analytics, revenue, and orders GA4 could not see

pasilobus google-analytics tracking

GA4 measurement ID, tracked events, Google tags, custom events and tracking features

pasilobus apps lists your apps on the store; pasilobus <app> help lists what each app can do. How it works

On this page
  1. Why Track Refunds?
  2. Enabling Refund Tracking
  3. What Gets Sent to GA4
  4. Viewing Refunds in GA4
  5. Limitations

Why Track Refunds?

Without refund tracking, your GA4 reports show gross revenue—every purchase, even ones you later refunded. This makes your revenue data misleading and inflates your reported numbers.

Most GA4 setups on Shopify—including Google's own Google & YouTube sales channel—don't track refunds. This means any store processing returns has inaccurate revenue data in GA4 by default.

With refund tracking enabled:

  • GA4 automatically calculates net revenue (purchases minus refunds)
  • Your ecommerce reports reflect actual retained revenue
  • You can analyze refund patterns and rates
  • Revenue attribution becomes more accurate for marketing decisions

Enabling Refund Tracking

  1. Open the Pasilobus Google Analytics app
  2. Find the Refund Tracking section
  3. Click Enable
  4. Refunds will now be sent to GA4 automatically

To disable, click Disable in the same section.

What Gets Sent to GA4

When you process a refund in Shopify, a refund event is sent to GA4 with:

  • Original order ID (links the refund to the original purchase)
  • Refund amount
  • Currency
  • Refunded items and quantities (for partial refunds)

For partial refunds, only the refunded portion is sent. Full refunds include the complete order value.

Viewing Refunds in GA4

Once enabled, refund data appears in:

  • Monetization › Ecommerce purchases: Revenue adjusted for refunds
  • Explore reports: Build custom reports including refund events

GA4 automatically subtracts refund amounts from your revenue totals, giving you a true picture of retained revenue.

Limitations

  • Refund tracking works for orders placed after you installed the app, since the app needs to have recorded the original purchase
  • Refunds processed more than 60 days after the original order will not be sent to Google Analytics
  • Orders placed by customers using strict ad blockers may not have full tracking data available for refund matching

Talk to a person.

The people who build our apps answer support themselves. Send us a message or email us, and a person replies, usually within one business day. There's no chat.