1. Create a GA4 Property
To start using GA4, the first thing you need to do is set up a GA4 property. If you’re already using Universal Analytics, you can upgrade your existing property to GA4.
- In Google Analytics, go to Admin.
- Under the Property column, click GA4 Setup Assistant.
- Follow the prompts to create your GA4 property.
2. Install the GA4 Tracking Code
To collect data, you’ll need to add the GA4 tracking code to your website. If you’re using Google Tag Manager (GTM), this process is streamlined:
- In GTM, create a new tag.
- Select Google Analytics: GA4 Configuration.
- Enter your GA4 Measurement ID (you can find this in your GA4 property settings).
- Publish your tag.
Alternatively, you can directly add the tracking code to your website’s header.
3. Configure Events
GA4 tracks several key events by default, such as page views, scrolls, outbound link clicks, and file downloads. However, for more advanced tracking (e.g., button clicks, video plays, etc.), you’ll want to set up custom events. You can define these in your GA4 settings or using Google Tag Manager.
4. Set Up Conversions (Key Events)
To track important user actions as conversions (like form submissions or purchases), go to your GA4 property and:
- Navigate to Events.
- Mark any event that signifies a conversion as a Conversion Event (now known as key events). This helps you measure key performance indicators (KPIs) that align with your business goals.