Google Analytics + Detectly
Understand how Detectly and Google Analytics GA4 work together to give you session-level insights plus order-level attribution on your Shopify store.
What you get
- Order-level attribution vs GA4 session-level tracking
- UTM data attached directly to Shopify orders and customers
- Revenue attribution that matches your Shopify order totals
- Customer tagging by acquisition channel (not available in GA4)
- First-touch and last-touch attribution on every order
- Shopify-native dashboard without leaving your admin
How to set it up
- 1 Install Detectly from the Shopify App Store
- 2 Keep GA4 installed for session and behavior analytics
- 3 Use consistent UTM parameters across all campaigns
- 4 Detectly attributes Shopify orders while GA4 tracks site behavior
- 5 Compare both data sources for a complete marketing picture
Detectly and GA4: Different Tools, Different Jobs
Google Analytics (GA4) and Detectly are not competitors — they solve different problems. GA4 is a session-based analytics platform that tracks website behavior: pageviews, bounce rates, user flows, and conversion events. Detectly is an order-level attribution tool that ties every Shopify order to the marketing channel that drove it.
Most Shopify merchants need both. GA4 tells you how visitors behave on your site. Detectly tells you which marketing channels actually generate revenue. Together, they give you a complete picture that neither provides alone.
Where GA4 Falls Short for Shopify Attribution
GA4 is a powerful analytics platform, but it has specific limitations when it comes to Shopify order attribution:
Session-Level vs Order-Level
GA4 tracks sessions and events. It can tell you that a session started from a Google Ads click and that a purchase event fired during that session. But it does not natively attach the UTM data, campaign name, or click ID to the Shopify order itself.
Detectly writes attribution data directly to the Shopify order as metafields and tags. This means you can see the marketing source on every order in your Shopify admin, filter orders by channel, and export the data for your own analysis. The attribution lives with the order, not in a separate analytics silo.
Data Sampling and Thresholds
GA4 applies data sampling on reports that exceed certain thresholds, and it uses thresholds to hide data when user counts are low (for privacy). For smaller Shopify stores, this can mean your attribution data is incomplete or partially hidden. Detectly tracks every single order with no sampling or thresholds.
Attribution Models
GA4 moved to a data-driven attribution model by default, which uses machine learning to distribute conversion credit across touchpoints. While sophisticated in theory, this model is a black box. You cannot see exactly why a channel received a certain percentage of credit.
Detectly uses transparent attribution models — first-touch and last-touch — where you can see the exact UTM parameters and click ID that earned the attribution. There is no modeling, no estimation, and no opacity.
Consent and Tracking Gaps
GA4 relies on client-side JavaScript that is blocked by ad blockers and affected by cookie consent requirements. When a visitor declines analytics cookies, GA4 loses that session entirely. Detectly’s server-side attribution is more resilient because the order data comes from Shopify’s backend, not from a browser-based tracker.
What Detectly Adds
Here is what you get from Detectly that GA4 does not provide:
Attribution on the Order
Every Shopify order in Detectly shows the full UTM trail: source, medium, campaign, content, and term. You see the marketing channel on the order itself, not in a separate analytics dashboard. This makes it easy to audit attribution, share data with your team, and export for custom reporting.
Customer Tagging
Detectly tags each customer with their acquisition channel. A customer acquired through Meta Ads gets tagged detectly:channel:meta-ads. This data syncs with email platforms like Klaviyo and can trigger Shopify Flow automations. GA4 does not write data back to your Shopify customer profiles.
Revenue That Matches Shopify
GA4’s revenue numbers often do not match Shopify’s. This is because GA4 relies on the purchase event firing in the browser, which can fail due to page load issues, ad blockers, or customers closing the tab before the event fires. Detectly’s revenue data comes from Shopify’s order webhook, so it always matches your Shopify admin. Every order is counted, and the revenue is the actual order total.
Shopify-Native Experience
Detectly is an embedded Shopify app. You view your attribution data inside the Shopify admin without switching to a different tool. For merchants who spend most of their time in Shopify, this is a significant workflow improvement over switching to GA4 for marketing insights.
How to Use Both Together
The recommended approach is to keep GA4 for what it does best and use Detectly for what it does best:
Use GA4 for:
- Site behavior analysis (pageviews, bounce rates, user flow)
- Audience insights (demographics, interests, technology)
- Event tracking (add to cart, begin checkout, custom events)
- Content performance (which pages engage visitors)
Use Detectly for:
- Order-level marketing attribution
- True ROAS calculations by channel
- Customer acquisition channel tagging
- Campaign and ad-level revenue tracking
- Attribution data on Shopify orders and customers
Consistent UTM Parameters
The most important thing when using both tools is maintaining consistent UTM parameters across all campaigns. Both GA4 and Detectly read UTM parameters from your URLs, so consistent tagging means both tools see the same campaign structure. Use the UTM Builder to standardize your parameters.
Common Questions
Should I remove GA4 if I install Detectly? No. Keep GA4 for session analytics and site behavior tracking. Detectly focuses on order attribution. They complement each other.
Will the revenue numbers match? Detectly’s revenue comes from Shopify order data, so it matches your Shopify admin exactly. GA4’s revenue comes from browser-side purchase events and may differ. When there is a discrepancy, Detectly’s numbers are the accurate ones for order revenue.
Does Detectly use Google Analytics data? No. Detectly is completely independent from GA4. It captures UTM parameters and click IDs through its own storefront pixel and processes attribution from Shopify order webhooks. There is no data sharing between the two platforms.
Can I see GA4 and Detectly data side by side? They are separate tools with separate dashboards. However, because both use UTM parameters, you can compare campaign performance across both platforms. Many merchants check GA4 for traffic patterns and Detectly for revenue attribution.
What about GA4’s ecommerce reports? GA4’s ecommerce reports are useful for understanding the shopping funnel (product views, add to cart, checkout steps). Detectly does not replace this funnel analysis. It specifically solves the attribution question: which marketing channel gets credit for each order.
Get Started
Install Detectly alongside your existing GA4 setup. Use consistent UTM parameters, and you will have both session-level behavior data and order-level attribution data working together.
Install Detectly free or view pricing to compare plans.
Related integrations
Email & SMS
Track revenue from Klaviyo, Omnisend, Mailchimp, and any email or SMS platform with UTM-based attribution on every Shopify order.
Google Ads
Track Google Ads performance on your Shopify store with gclid capture, keyword-level attribution, and true ROAS calculated from real order data.
Influencer Marketing
Measure influencer marketing ROI with unique UTM links per creator, discount code correlation, and per-influencer revenue tracking on your Shopify store.
Try Detectly free today
Install in one click from the Shopify App Store. No code, no tracking pixels — see your true ROAS within 24 hours.