How do I add Google Analytics 4 tags to each page on my hosted site?

Hello,

I have recently added the Google Analytics 4 property to my site. It seemed fairly easy using the setup wizard. However, as I understand it, with my site being hosted on Shopify, the setup wizard cannot use my existing tagging. A new tag must be added to each page of my site - manually.

I copied the tag - per the instructions from Google, but I am not clear on which pages I need to paste the code into. Or more importantly, how to get to each page to paste the tag into.

I’m assuming this is a simple task for those people who understand HTML - does anyone know the answer or can at least tell me who I could get to help me?

You can put it in the theme.liquid file which will put it on every page. I don’t think Shopify’s inbuilt google analytics integration supports ga4 yet so that would be the best way for now.

Thank you so much for your reply!