Why Tracking Matters
Without proper conversion tracking, you're flying blind. You can't know which marketing channels drive sales, which campaigns are profitable, or where to invest your budget.
Conversion tracking connects the dots between your marketing spend and actual revenue. It enables platform algorithms to optimise for purchases and helps you understand the true cost of acquiring a customer.
What to Track
- •Purchases: The primary conversion event, including revenue and order details
- •Add to cart: Shows purchase intent before checkout
- •Begin checkout: Identifies checkout abandonment
- •View content: Product page views showing interest
- •Add payment info: Shows high purchase intent
Google Analytics 4 Setup
Google Analytics 4 (GA4) is Google's current analytics platform. Shopify offers native integration that handles most of the setup automatically.
Native Shopify Integration
- 1Create GA4 Property
In Google Analytics, create a new GA4 property for your store. Note the Measurement ID (starts with G-).
- 2Connect in Shopify
Go to Online Store → Preferences → Google Analytics. Enter your Measurement ID and enable the integration.
- 3Enable Enhanced Ecommerce
In the same settings, enable "Enhanced ecommerce" to track product views, add to carts, and checkout steps.
- 4Mark Conversions in GA4
In GA4, go to Admin → Events and mark the "purchase" event as a conversion. You can also mark other events like add_to_cart.
Google Tag Manager Alternative
For more control, use Google Tag Manager instead of native integration. This allows custom event tracking, consent mode configuration, and easier debugging. Requires more technical setup.
Facebook Pixel Setup
The Meta Pixel (formerly Facebook Pixel) tracks conversions from Facebook and Instagram ads. Proper setup is essential for ad optimisation and audience building.
Using Facebook & Instagram App
- 1Install the App
Install the official "Facebook & Instagram" app from the Shopify App Store. This is the recommended method.
- 2Connect Your Account
Log in to your Facebook Business account and grant the necessary permissions. Select your Business Manager, ad account, and pixel.
- 3Enable Conversions API
The app sets up both the browser pixel and Conversions API (server-side tracking). Enable maximum data sharing for best results.
Pixel Events Tracked
The app automatically tracks standard ecommerce events:
- •PageView, ViewContent, AddToCart
- •InitiateCheckout, AddPaymentInfo
- •Purchase (with value and currency)
Verify in Events Manager
Check Facebook Events Manager to verify events are firing. Use the "Test Events" feature to see real-time event data as you browse your store.
Google Ads Conversion Tracking
Google Ads conversion tracking lets you measure ROI from your Google advertising spend, including Search, Shopping, Display, and YouTube campaigns.
Using Google & YouTube App
- 1Install the App
Install "Google & YouTube" from the Shopify App Store. This connects Merchant Center, Google Ads, and YouTube.
- 2Connect Your Accounts
Link your Google account, then connect or create a Google Merchant Center and Google Ads account.
- 3Enable Conversion Tracking
The app automatically sets up conversion tracking with enhanced conversions for better accuracy.
Import GA4 Conversions
For additional flexibility, import GA4 conversions into Google Ads. Go to Google Ads → Goals → Conversions → New conversion action → Import → Google Analytics 4.
Server-Side Tracking
Browser-based tracking is increasingly blocked by ad blockers and privacy features. Server-side tracking sends data directly from your server, bypassing these limitations.
Why Server-Side Matters
- •More accurate data: Not blocked by ad blockers or iOS privacy features
- •Better ad performance: More conversion data means better algorithm optimisation
- •First-party data: Data flows through your domain, not third-party cookies
Implementation Options
Shopify Customer Events (Web Pixels)
Native Shopify solution. Go to Settings → Customer events to add pixel code that runs in a sandboxed environment with access to checkout events.
Facebook Conversions API
Enabled automatically when using the Facebook & Instagram app with maximum data sharing. Sends conversion data server-to-server.
Google Tag Manager Server-Side
Advanced option using GTM server-side containers. Requires technical setup and hosting but offers maximum flexibility.
Testing Your Tracking
Always verify that tracking works correctly before running campaigns. Here's how to test each platform.
Google Analytics 4
Use GA4 DebugView (Admin → DebugView) while browsing your store with debug mode enabled. Install the Google Analytics Debugger browser extension.
Facebook Pixel
Install the Meta Pixel Helper browser extension. Also use Test Events in Events Manager to see real-time events.
Google Ads
Use Google Tag Assistant to verify the conversion tag fires. Check the conversion action status in Google Ads (should show "Recording conversions").
Test Purchase
Place a real test order (you can refund it) to verify purchase tracking. This is the most reliable test method.
Deduplication
When using both browser and server-side tracking, ensure events are deduplicated. Both Facebook and Google use event IDs to prevent counting the same conversion twice.
Understanding Attribution
Attribution determines which marketing touchpoint gets credit for a conversion. Different platforms use different models, which is why conversion numbers rarely match.
Common Attribution Models
- •Last click: All credit to the final touchpoint before conversion
- •First click: All credit to the first touchpoint in the journey
- •Data-driven: Machine learning distributes credit based on actual impact
- •Linear: Equal credit to all touchpoints
Why Numbers Don't Match
Your Google Ads conversions plus Facebook conversions will always exceed your actual orders. This is because:
- •Each platform claims credit for the same conversion
- •Different attribution windows (1-day, 7-day, 30-day)
- •View-through vs click-through attribution