This article describes the main steps required to create the new generation Google Analytics GA4 data collector, and is relevant if you are building new GA properties and data is collected using gtag.js.
You can add new GA4 properties to an existing UA implementation, migrate existing properties to GA4 or create new accounts altogether. For more information about getting started with GA4 migration, see Google's documentation.
Note that access to Google remains as per the Google Analytics collector, using service accounts or by logging in to Google. The Google Analytics and Google Analytics GA4 collectors can work side by side.
Note: The same Google user is not allowed to create two data sources using the "Login with Google" feature due to Google's restrictions. Therefore the ability to have the two collectors work side by side is by doing one of the following:
- Using Google service accounts.
- Using two different Google users to create the data sources.
This article includes:
Creating a Google Analytics GA4 Data Source
- In the Navigation Panel, click Catalog.
- Use the Search box to locate the data source.
- Hover over the Google Analytics GA4 tile, and click Start.
Note: If the data source has already been used, a dialog is displayed in which you can select from one of the listed sources. Alternatively, create a new source by clicking Add a new source.
- Login to your service account or Google account and follow the onscreen instructions.
Creating a Google Analytics GA4 Data Stream
If you have just created a Google Analytics GA4 data source, skip to step 3.
- On the Sources page (accessed by clicking INTEGRATIONS > Sources in the Navigation Panel), choose the Google Analytics GA4 source for which you want to create a stream query.
Note: The streams associated with that source are displayed. If the streams panel is empty, no stream queries exist for that source.
- Hover over the Google Analytics GA4 data source, and click + New Stream. The Stream Query page is displayed.
- Set the stream properties such as name, owner, access groups.
- Choose the required metrics and dimensions. You can choose one of the existing templates as a starting point, or select the measures and dimensions yourself.
- Set the stream scheduling options
- Click NEXT. The Stream Table is displayed.