Connect Google Analytics
There are two different jobs. Add the GA4 measurement ID to your store so Google Analytics records visits. Connect your Google account to see those numbers right in the dashboard, on the Website analytics page.
You need to do both. If you only add the ID, the numbers stay in Google Analytics. If you only connect without adding the ID, GA4 has no data from your store to show.
Add the GA4 measurement ID to your store
The measurement ID looks like G- followed by 10 characters. You get it in Google Analytics, in the admin area, under the property’s web data streams.
- Go to Settings › Google Analytics.
- Enter the ID in the Google analytics measurement ID field, for example G-AB12CD34EF.
- Click Save on the save bar that appears.
Before you save, you see the line Google Analytics will be activated after saving.. If the ID has the wrong format, the Save button is dimmed. Use capital letters and check that there are 10 characters after G-.
If your store uses a separate website outside EcomWeb, the ID isn’t added automatically. Add the GA4 code directly on that site, then still connect Google and choose the property as below.
On a phone, tap the menu icon at the top left, choose Settings, then tap the table icon beside the Settings heading to choose Google Analytics.
Connect your Google account
- Go to Settings › Apps & Integrations.
- In the Google card, click Connect with Google.
- Sign in to a Google account that can view your store’s GA4 property.
- Agree to the permissions Google asks for, including access to Google Analytics and Search Console.
You are taken back to the Apps & Integrations page. The Google card shows Connected and the email of the Google account.
Choose the GA4 property
- Go to Settings › Google Analytics.
- In GA4 property ID, choose the property that has the data stream with the G- ID you entered above.
- Click Save on the save bar that appears.
- Click Test GA4.
If everything is fine, you see a message that the GA4 connection worked. Now you view visits in Analytics › Website analytics, see View website traffic.
Disconnect Google
- Go to Settings › Apps & Integrations.
- In the Google card, click Disconnect.
- Click Disconnect to confirm.
The Website analytics and Search analytics pages will no longer have data. The chosen property and site are also cleared, so choose them again after you reconnect. The GA4 ID on your store still runs, so Google Analytics still records visits. To stop it completely, clear the ID in the Google analytics measurement ID field and click Save.
Frequently asked questions
I added the GA code another way. Do I still need to enter the Measurement ID?
No. If the GA4 code already runs on your store, you only need to connect Google and choose the right property. Adding the code twice makes GA4 count visits twice.
Why is the GA4 Property list empty, or missing the property I need?
The list comes from the Google account you connected. Connect with an account that can view that property in Google Analytics, or ask the person who manages GA4 to give your account access.
Does GA count when I preview my store?
No. The GA code doesn't run while you preview your store, so preview visits aren't counted.
Another Administrator clicks Disconnect and gets an error. Why?
Only the person who connected Google can disconnect it. Ask that person to disconnect.
Thanks for your feedback.