Currently, Google Analytics supports three types of accounts - Universal Analytics, Universal Analytics 360, and Google Analytics 4 (GA4). Universal Analytics properties will stop processing new hits on July 1, 2023, and Universal Analytics 360 properties will stop processing hits a year later. Previously processed data in Universal Analytics will be stored for at least six months after the deprecation dates.
If you are using a Universal Analytics or Universal Analytics 360 account, we recommend switching to GA4, as described here.
If you are new to Google Analytics, create a GA4 account and connect it to your online store to start using it.
To set up a GA4 account:
Log in to Google Marketing Platform using your Google business account.
If you don't have an analytics account yet, click Create account.
NOTE: If you already have an account, click Create property to skip the next step and start directly with a property creation (see Step 4 below).
Then specify the Analytics account name and configure the data-sharing settings.
Next, define the GA4 property name and general settings.
NOTE: One Analytics account can contain one or more properties that define the source from which you want to collect data.
Add some details about your business.
After this step, you can add your online store data to your GA4 account to start data collection.
Click Web to add your online store website.
You will see a new data stream popup where you need to specify your online store data - the website URL and the stream name. Also, here you can adjust the stream measurement configuration. You can either completely turn it off or just disable some measurement parameters (use the Gear icon for this purpose).
Click Create stream to complete the step.
After the stream creation, you will see its details page with the data required for your store integration.
NOTE: You'll need the Measurement ID value to paste it on the Google Analytics add-on settings page in your store Admin area.
Next, configure an API secret in the Measurement Protocol API secrets section.
In the Measurement Protocol API secrets popup, click Create.
In the Create new API secret popup, specify the name.
The secret value is generated automatically.
NOTE: You'll need the API secret value to paste it on the Google Analytics add-on settings page in your store Admin area.
That's it! Now you have all the required data to connect your online store to Google Analytics.