How to Add GA4 (Google Analytics 4 ver 2021) to Shopify site?

Fumbled my way here and there but here’s how I figured it out:

  1. Create new property
  2. Copy the Global Tag settings
  1. The old way is getting UA-xxx, plug the code inside using Online Store > Preferrence > Google Analytics. It doesn’t work that way anymore, insead, you will get this error.This is where I started…