Thanks for your reply, @DaveWood .
My apologies I definitely misunderstood what you meant earlier by a G-***** code. Based on your screenshot you are trying to set up a Google Analytics 4 code. To use this newer version you must install the Google Channel through Shopify.
In fact, we have step-by-step instructions you can follow to correctly set up this code. Please check out the full documentation at this link. After setting up the Google Channel as per prompts in your Admin, follow these steps:
Steps:1. From your Shopify admin, got to Online store > Preferences.
- In the Google Analytics section, click Manage pixel here.
- Click Connect your Google account.
- Select the Measurement ID for the GA4 property you want to connect to your Shopify store.
- Click Connect your Google Analytics 4 property.
At that point, make sure to remove it from your code entirely. I trust that will resolve your issue, but let me know if anything else comes up.
Warm regards,