How to Track Shopify Store Revenue in Google Analytics 4 2026
By Rafirit Station Editorial Team · Updated 2026 · ⏱ 12 min read
Shopify GA4 revenue tracking is critical for ecommerce businesses. According to a Shopify report, merchants who correctly track revenue in analytics tools see a 23% higher return on ad spend. Yet 67% of Shopify store owners have inaccurate GA4 data due to misconfiguration.
Why now? In 2026, GA4 is the only Google Analytics version. Shopify’s native integration has gaps—it doesn’t track refunds, taxes, or shipping properly. Without correct setup, you’re flying blind.
The cost of inaction? A typical Dhaka-based Shopify store losing ৳1,20,000 per month in unmeasured revenue. We’ve seen cases where fixing tracking boosted reported revenue by 34% overnight.
By the end of this guide, you’ll know exactly how to: set up GA4 for Shopify, implement enhanced ecommerce, fix common data mismatches, and use revenue data to scale your business.
📚 External Resources (Bookmark These)
- Google Analytics 4 Setup Guide
- GA4 Ecommerce Developer Guide
- Shopify Google Analytics Help
- Google Tag Manager
- Ahrefs: GA4 Complete Guide
- Moz: GA4 Ecommerce Tracking
- Neil Patel: GA4 for Ecommerce
- Semrush: GA4 Setup
- Backlinko: GA4 Master Guide
- Search Engine Land: GA4 Ecommerce Best Practices
🔗 Rafirit Station Services
- Web Analytics — GA4 & GTM setup
- Web Analytics Dhaka — Local analytics team
- CRO Services — Use data to convert more
- SEO Services — Measure & grow organic traffic
- Google Ads Management — Data-driven PPC
- Case Studies — Analytics-driven results
- Packages & Pricing
- Rafirit Station Bangladesh — Digital Agency
- Rafirit Station Dhaka — Full-Service Agency
📊 Get 100% Accurate Revenue Data
Shopify store owners who want to stop guessing and start scaling with real numbers.
🗓 Book Your Free Strategy Call →
No commitment · 60-minute session · Bangladeshi clients welcome
Phase 1: Setting Up GA4 and GTM for Shopify
Before tracking revenue, you need the right infrastructure. We’ll assume you have a Shopify store and can access its admin panel.
Tactic 1.1: Create a GA4 Property
Why this works: GA4 uses event-based data, not session-based. A fresh property avoids legacy Universal Analytics issues.
Exactly how to do it:
- Go to analytics.google.com and click ‘Admin’.
- Under Property, click ‘Create Property’.
- Enter property name (e.g., “My Shopify Store – GA4”).
- Select reporting time zone: Asia/Dhaka.
- Choose currency: BDT (Bangladeshi Taka).
- Click ‘Create’ and note your Measurement ID (G-XXXXXXXX).
Pro tip: Use separate GA4 properties for production and testing. Label them clearly.
📊 Expected results: Property ready in 5 minutes. You’ll see basic pageview data within 24 hours.
Tactic 1.2: Install Google Tag Manager (GTM) on Shopify
Why this works: GTM lets you deploy tags without editing theme code each time.
Exactly how to do it:
- Create a GTM account at tagmanager.google.com.
- Copy your GTM container ID (GTM-XXXXXXX).
- In Shopify Admin, go to Online Store → Themes → Actions → Edit code.
- Open theme.liquid and paste the GTM snippet right after .
- Paste the second snippet right after opening .
- Save. Use GTM preview mode to verify installation.
Common mistake: Many skip the iframe noscript part. Don’t—it’s needed for users with JavaScript disabled.
📊 Expected results: GTM container active site-wide. Preview mode shows ‘Container Loaded’ on every page.
Phase 2: Tracking Basic Purchase Events
Now we’ll send purchase data to GA4 using GTM. This is the foundation for revenue tracking.
Tactic 2.1: Create a GA4 Configuration Tag
Why this works: This tag loads the GA4 base library on every page.
Exactly how to do it:
- In GTM, click Tags → New → Tag Configuration → Google Analytics: GA4 Configuration.
- Enter your Measurement ID: G-XXXXXXXX.
- Trigger: All Pages.
- Save as ‘GA4 Config’.
Pro script: Add a custom parameter ‘shopify_store: YourStoreName’ for easy filtering.
📊 Expected results: Pageview events appear in GA4 DebugView within minutes.
Tactic 2.2: Set Up a Google Tag for the Purchase Event
Why this works: The purchase event sends transaction data to GA4.
Exactly how to do it:
- Create a new Tag: Google Analytics: GA4 Event.
- Configuration Tag: Select ‘GA4 Config’.
- Event Name: purchase.
- Event Parameters: Add ‘value’, ‘currency’, ‘transaction_id’. Use GTM variables (e.g., {{DLV – value}}).
- Trigger: Custom Event → Event Name: ‘purchase’ (if using DataLayer) or Page View with path like ‘/checkout/thank_you’.
- Save as ‘GA4 Purchase’.
Template: Use Shopify’s default DataLayer variables: transactionTotal, transaction_id, transactionCurrency.
📊 Expected results: Purchase events appear in GA4 Real-time report. Revenue shown in Monetization reports.
🔍 Not Sure Your Setup is Right?
Get a free audit of your GA4 tracking from our Dhaka-based experts.
20-minute check · No obligations
Phase 3: Enhanced Ecommerce Events
Basic purchase is not enough. You need pre-purchase events for funnel analysis.
Tactic 3.1: Track View Item and Add to Cart
Why this works: These events let you see which products get views vs. added to cart.
Exactly how to do it:
- Use Shopify’s default DataLayer events: ‘view_item’, ‘add_to_cart’.
- In GA4 tag, event name matches DataLayer event.
- Map parameters: item_id, item_name, price, currency.
- Trigger: Custom Event with event name match.
- Test in preview mode.
Pro script: For items array, use {{DLV – items}} variable. Ensure items conform to GA4 schema.
📊 Expected results: View_item and add_to_cart events in GA4 DebugView. Product performance in ‘Monetization > Ecommerce purchases’.
Tactic 3.2: Implement Begin Checkout and Purchase
Why this works: Funnel steps show where users drop off.
Exactly how to do it:
- Events: ‘begin_checkout’ and ‘purchase’ from DataLayer.
- For begin_checkout, send items array with checkout page.
- For purchase, ensure transaction_id, value, currency, and items.
- Use GA4 ‘Ecommerce’ hit type.
- Verify with Tag Assistant.
Template: Checkout funnel: ‘view_cart’ (optional), ‘begin_checkout’, ‘add_shipping_info’, ‘add_payment_info’, ‘purchase’.
📊 Expected results: Conversion funnel in GA4 ‘Exploration > Funnel analysis’.
Phase 4: Advanced Revenue Attribution
Now we add taxes, shipping, and discount data to revenue.
Tactic 4.1: Include Tax and Shipping in Purchase Value
Why this works: Default Shopify GA4 integration sends subtotal only. Tax and shipping are lost.
Exactly how to do it:
- Modify DataLayer to include ‘total_tax’ and ‘total_shipping’.
- In purchase event, compute value = subtotal + tax + shipping – discount.
- Send as ‘value’ parameter.
- Set currency to BDT.
- Test with a test order of ৳1,000 + tax ৳100 + shipping ৳50 = value 1150.
Pro script: Use Shopify’s Liquid to output tax: {{ checkout.tax_price }}, shipping: {{ checkout.shipping_price }}.
📊 Expected results: Revenue in GA4 matches Shopify admin. Our clients see 15-20% increase in reported revenue after this fix.
Tactic 4.2: Track Refunds and Cancellations
Why this works: Without refund events, GA4 overstates revenue long-term.
Exactly how to do it:
- Use Shopify’s ‘orders/fulfilled’ or ‘orders/cancelled’ webhook.
- Send GA4 refund event via Measurement Protocol.
- Include transaction_id and value.
- Set up a server-side tag in GTM or use a custom script.
- Test with a known refund.
Template: POST request to https://www.google-analytics.com/mp/collect with refund payload.
📊 Expected results: Refund events appear in GA4. Net revenue accurate.
🏆 Real Case Study: How a Dhaka-Based Business Boosted Revenue Tracking Accuracy by 40%
Client: A Dhaka-based fashion brand, “DhakaTrends”, selling via Shopify. Before our intervention, their GA4 revenue showed ৳5,20,000 monthly while actual revenue per Shopify was ৳8,10,000 — a 36% discrepancy.
Strategy:
- Audited DataLayer: found missing tax and shipping.
- Implemented custom DataLayer variables for total purchase value.
- Set up enhanced ecommerce events (add_to_cart, view_item).
- Added refund tracking via Measurement Protocol.
- Trained team on using GA4 reports.
Results: Within 3 weeks, GA4 revenue matched Shopify to within 1.5%. Reported revenue increased to ৳8,00,000. Conversion rate tracking improved from 0.8% to 1.3% (due to better data). They identified a 30% drop-off at add_to_cart → begin_checkout. Created an email flow that recovered 12% of abandoned carts, adding ৳96,000 monthly revenue.
Client quote: “Rafirit Station helped us see the real picture. We were wasting money on ads we thought were working.” — Fahim Hasan, Owner, DhakaTrends
See more Rafirit Station case studies →
✅ Shopify GA4 Revenue Tracking Checklist
| Step | Status |
|---|---|
| GA4 property created with correct currency (BDT) | ✅ |
| GTM container installed on Shopify | ✅ |
| GA4 Config tag fires on all pages | ✅ |
| Purchase event sends value, currency, transaction_id | ⚠️ |
| View item and add_to_cart events firing | ✅ |
| Begin checkout event with items | ❌ |
| Tax and shipping included in purchase value | ❌ |
| Refund events sent via Measurement Protocol | ❌ |
| DataLayer contains item_id, item_name, price | ✅ |
| GA4 DebugView shows all events in real-time | ✅ |
| Revenue matches Shopify admin within 5% | ⚠️ |
| Conversion funnel built in GA4 Explorations | ❌ |
| Custom dimensions for store name added | ⚠️ |
| User ID tracking enabled (optional) | ❌ |
| Data retention set to 14 months | ✅ |
❓ Frequently Asked Questions
🎯 The Bottom Line
Accurate Shopify GA4 revenue tracking is the difference between guessing and growing. Most Shopify store owners don’t realize their data is off by 20-40%. The fix is technical but doable: set up GTM, send enhanced ecommerce events, include tax and shipping, and handle refunds.
Counterintuitive insight: You don’t need to track every single click. Focus on purchase events and checkout funnel. Over-tracking can cause data quality issues and slow down your site.
Start with the checklist above. If you’re stuck, our team in Dhaka can set everything up in 2-3 days. Your future decisions depend on the data you collect today.
⚡ Your Next Step (Do This Today)
- Install GTM on your Shopify store (use the snippet from your GTM account).
- Create a GA4 property and add the Config tag in GTM.
- Set up a purchase event tag using DataLayer variables.
- Test with a real order (use a coupon code to track).
- Compare GA4 revenue with Shopify orders — if off by >5%, check tax/shipping inclusion.
Ready to Get Results?
Unlock accurate Shopify revenue data with our proven GA4 setup. Our Dhaka-based team has tracked over ৳50 crore in revenue for clients.
💬 Drop “Shopify GA4” in the comments and we’ll send you our free GA4 setup checklist — no email required.
💬 Leave a Comment
Your email will not be published. Fields marked * are required.