1. Go to your Shopify admin account.
  2. Select Online Store, then Preferences.
  3. Find the Google Analytics section, copy the snippet available in one of the apps that are ready for checkout (Cart Reserved, Facebook Extra Pixels, Trust Badges, etc.) and then paste it in the area.
  4. Don’t forget to save your changes.