FeedArmy Co., Ltd.

How To Add Google Analytics 4 (GA4) In Shopify

Here is a native solution from Google on how to install Google Analytics 4 in Shopify.

Requirements

Get Your GA4 Code

First lets find your Google Analytics Measurement ID by going to:

  1. Google Analytics
  2. Cog Icon (admin)
  3. Under Data collection and modification, choose Data Streams
  4. Click on your data stream
  5. Now you can view and copy your measurement id

Now go to Shopify > Settings > Customer Events

And click on Add custom pixel

You can give it any pixel name, but I will call it Google Analytics. Now click on Add pixel.

Get the code:https://merchantcodex.com/google-analytics-4-code-for-shopify-pixels/

The code below is developed by Google, now replace the tagId value with your measurement id.

Now paste your code in the custom even code section.

Set your permission to Analytics

Set your data sale to Data collected does not qualify as data sale

🙋Questions or Need Help?

Try MerchantCodex (Courses, Forum, Coding, etc)

Or do you have a private question or need private specialist support? Get in touch! I’m happy to help you optimize your Google Shopping listings for the best performance.

Exit mobile version