Last updated: 8 November 2024

Setting up the basics of Google Analytics 4 correctly

Nick van Maaren
Freelance Ads & Analytics expert

This is the third article in my Google Analytics 4 setup guide. In the first article of this GA4 guide you've learned how to create a new Google Analytics 4 property and in the second article you've learned how to implement the property on your website. Before you sit back and wait for the data to come in, there are a few things that you should configure in advance. In this blog I will help you to set up Google Analytics 4 properly.

To keep this article beginner friendly I will not cover all available settings in GA4. There are a number of things that do not need any changes when starting out. Instead, I will only discuss some basic settings that I almost always change / set up after implementing GA4.

1. Property Access Management

After creating a property, one of the first things I often do is to invite the right people. You can invite users at the account level or at the property level. There are 5 roles you can assign a user:

  • Administrator: An administrator has full access. Administrators can give or take access to or from other users and change roles on the account and/or property level.
  • Editor: An editor can edit the settings of the property. The only thing they can not do is manage the access of the account and/or property.
  • Marketer: A marketer can create, edit or delete audiences, key events, attribution-models, events and lookback windows.
  • Analyst: An analyst can create, edit, and delete certain property assets. Can collaborate on shared assets.
  • Viewer: A viewer can see settings and data; can change which data appears in reports (e.g., add comparisons, add a secondary dimension); can see shared assets via the user interface or the APIs. Cannot collaborate on shared assets. For example, shared explorations can be viewed, but not edited, by those with a Viewer role.

Next to the 5 roles, there are two data-restriction options:

  • No Cost Metrics: Regardless of the given role, cannot see metrics related to cost.
  • No Revenue Metrics: Regardless of the given role, cannot see metrics related to revenue.

Depending on the agreements you have made with others, you always decide for yourself which rights you give someone. As a customer of an agency, make sure that you always have administrative rights at account level.

2. Data Streams

A GA4 property collects data through data streams. To collect the right data, there are a few things to set up for each stream:

2.1. Define internal traffic

In Google Analytics 4 you can exclude IP addresses easily.

You can define internal traffic under: Data Streams > Click your data stream > Configure tag settings > Show all > Define internal traffic.

On the top-right corner, click the blue Create button.

You’ll see the screen below where you can make a new traffic rule.

  • The rule name is only important for your own use, it doesn’t affect anything.
  • The traffic type value is set to ‘internal’ by default. You can use the value later on to make ‘filter sets’ you can treat differently. My advice would be to leave it on ‘internal’ though.
  • Fill in your IP address in the value field and choose the correct match type. Change the match type to IP address equals if you want to exclude only that specific address.
  • You can add multiple IP addresses in a single traffic rule. Just make your filters stays structured and its clear what everything does.

After saving your rule you’ll need to activate the filters. You can do this under: Data Settings > Data Filters (check paragraph 3.3).

2.2. Cross-domain tracking

Do you have little experience with Google Analytics? Then leave cross-domain tracking to someone who has more experience with this (to avoid problems). If you have multiple domains that you would like to measure in one property, it is important to set up cross-domain tracking. This means that you use the same tracking code on multiple domains (i.e. one data stream for multiple domains).

You can set up cross domain tracking under: Data Streams > Click your data stream > Configure tag settings > Configure your domains.

You need to add all the domain names you would like to measure within one property. Suppose you have two domains: exampledomain1.com and exampledomain2.com. In this case you need to set the following under domains:

You do not need to add subdomains, if you use the same tracking code on multiple subdomains, this will automatically work. This does not require cross-domain tracking.

2.3. List unwanted referrals

You can create a list of unwanted referrals under Data Streams > Click your data stream > Configure tag settings > Show all > List unwanted referrals. Here you can specify domains that you do not want to measure as a source. A frequently used application of this is, for example, the exclusion of payment providers. When a user clicks from your website to an external website and then back again (without leaving your website open) it is good to consider excluding this domain as a ‘referral’. Failure to do so may obscure the picture of which sources are important.

3. Data Settings

Under ‘Data Settings’ there are 3 things you should change after the implementation. The Data Collection, Data Retention and Data Filters settings. For now you can ignore Channel groups.

3.1. Data Collection

If you plan to get started with remarketing, it is useful to activate Google signals and Ad personalization under ‘Data collection’. You can do this simply by clicking the ‘Get started’ button for both parts. When you enable these features, it is important to state this in your privacy policy. In one of my later articles I’ll tell you more about conforming to the GDPR.

3.2. Data Retention

By default, events in Google Analytics 4 are only kept for 2 months. This is very short. It is therefore advisable to increase the retention period from 2 to 14 months as soon as possible.

3.3. Data Filters

Creating traffic rules (as explained in paragraph 2.1.) isn’t enough for them to actually work. By default the ‘internal’ traffic filter is set to ‘Testing’ and you should manually activate it. A filter can have three statuses: testing, inactive and active. If you want to exclude IP addresses, set it to ‘Active’ and save the changes.

Learning track: How to set-up GA4?

This article is part of the learning track: "How to set-up GA4?" In this step-by-step guide, we’ll walk you through the entire process of setting up your GA4 tracking. You don't need any prior experience with setting up GA4 to follow these steps. Explore the other articles in this learning track below.

Discover this track

Join the community

Level up your analytics skills in our free Discord community.

Join MeasureBase
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.