How to integrate Google Analytics 4 with Shopify for ecommerce data?

Solved

How to integrate Google Analytics 4 with Shopify for ecommerce data?

mariecarrier
Shopify Partner
4 0 1

Hi, 

 

Is there any news about the integration of Google Analytics 4 in Shopify? 

We cannot retrieve any data regarding e-commerce since we are not on Shopify Plus. 

 

Many thanks, 

 

Marie-Michèle

Marie Carrier
Accepted Solution (1)

thejustintharpe
Explorer
59 8 11

This is an accepted solution.

Hi @mariecarrier 

 

Currently, there's no direct way to simply integrate Google Analytics into your store.

 

Although there is still a way via code. Please let me know if you'd be interested in setting up that way - I'll share the full thing here only.

 

Cheers!

Please Like and Mark as Solution if Helpful.
Try for Free. The Most Supportive Product Page Modifier App

Apps Specialist

View solution in original post

Replies 5 (5)

thejustintharpe
Explorer
59 8 11

This is an accepted solution.

Hi @mariecarrier 

 

Currently, there's no direct way to simply integrate Google Analytics into your store.

 

Although there is still a way via code. Please let me know if you'd be interested in setting up that way - I'll share the full thing here only.

 

Cheers!

Please Like and Mark as Solution if Helpful.
Try for Free. The Most Supportive Product Page Modifier App

Apps Specialist
mariecarrier
Shopify Partner
4 0 1

Hi Thejustintharpe

 

Thank you so much for the fast reply. 🙂 

 

Yes please for the sharing. 🙂 

 

Marie-Michèle

Marie Carrier
thejustintharpe
Explorer
59 8 11

Here you go:

 

  1. Login to your GA account
  2. Click on "Admin"
  3. Go to "Property" and select "Data Streams"
  4. Click "Add Stream"
  5. Select "Web"
  6. Provide your shop URL.
  7. Under Tagging Instructions, select "Add new on-page tag"
  8. Copy the gtag.js script code...
  9. Now come to your Shopify account and go to your themes page.
  10. Click "Edit Code"
  11. Now in the theme.liquid file, paste the code that you copied - right under the <head> tag
  12. Click Save. Done.

 

Now make sure you've set it up correctly. Visit your website once or twice in a new browser window.

 

And go to your GA console and click "Realtime" to see if any data is captured.

 

Hope this helped you! Please let me know if you need anything else.

 

Cheers!

Please Like and Mark as Solution if Helpful.
Try for Free. The Most Supportive Product Page Modifier App

Apps Specialist
sophiecquk
Tourist
8 0 6

Whilst this allows me to track visitors, I cannot track transactions. Is this a known issue? Thanks

hashcode_io
Shopify Partner
109 3 12

@mariecarrier  and @thejustintharpe  

Hi ,

Are you still experiencing any issues with GA4 tracking? If so, I'd be happy to help you with any ongoing problems. Please feel free to share your concerns.

Shopify Team @ Conversios System
Please confirm its success with a like or marking it as a solution!
Google analytics 4
SST - Server-side tagging solution.
#martech#GA4 #GTM #ownGTM #SST #ServerSideTagging