How to set up Google Analytics 4 tracking on Shopify

Written by

Maryna Semidubarska

Updated Sep 17, 2026 comments

Key takeaways

What is Shopify tracking in GA4?

Benefits of Shopify Google Analytics tracking

How to set up GA4 on Shopify

Three ways to set up GA4 on Shopify

Option 1: use Shopify's Google & YouTube sales channel

Property creation
Google & YouTube in Shopify Аdmin

Option 2: add Google Tag Manager through a Shopify custom pixel

Add custom pixel button

Option 3: use a server container (server-side GA4 tracking for Shopify)

How server-side GA4 tracking works for Shopify
Data Layer tab

Best practices for GA4 eCommerce tracking on Shopify

Optimization tips for GA4 tracking on Shopify

FAQs

Want to start on the server side?

Try for free

Written by

Maryna Semidubarska

Content writer

Maryna is a Content Manager with expertise in GTM and GA4. She creates clear, engaging content that helps businesses optimize tracking and improve analytics for better marketing results.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free