Websites 7 min

How to Set Up Google Analytics 4

Short answer

To set up Google Analytics 4, create an account at analytics.google.com, add a GA4 property with your domain, and install the tracking snippet either directly in your site's HTML head or via Google Tag Manager. Once tracking is live, you can verify it in the Realtime report and configure events as conversions. The whole setup takes 30 to 60 minutes for a standard website.

Google Analytics 4 replaced Universal Analytics in 2023. Here is how to set it up correctly in six steps, from account creation to your first conversion.

Why GA4 Matters

Google Analytics 4 has been the only supported analytics platform from Google since July 2023, when Universal Analytics was permanently shut down. The switch is not cosmetic: GA4 uses a fundamentally different event-based data model. Where Universal Analytics counted sessions and pageviews as its core metric, GA4 records every user interaction as an event. This makes it possible to track the same user across your website and mobile app, measure scroll depth and video views out of the box, and build audiences based on specific sequences of actions. If you want to understand how visitors actually move through your site and which pages lead to contact requests or purchases, GA4 gives you the tools to do that. It also integrates directly with Google Ads, which makes campaign attribution more accurate.

The Six Steps to Get Tracking Live

Start by going to analytics.google.com and creating an account under your company name. Inside that account, create a GA4 property and enter your website domain and time zone. Google will generate a Measurement ID in the format G-XXXXXXXXXX: save this.

To install the tracking tag, the recommended route is Google Tag Manager. Create a new tag of type “Google Analytics: GA4 Configuration”, paste in your Measurement ID, and set it to fire on all pages. Publish the container. Alternatively, paste the GA4 snippet found under “Data Streams” directly into the <head> of your site template.

Once the tag is live, open your website in a browser and check the Realtime report inside GA4. Your own visit should appear within 30 seconds. If it does not, double-check that the tag published correctly and that no browser extension is blocking the request.

Setting Up Conversions

A visit only becomes valuable data when you track what that visitor did. In GA4, conversions are based on events. Some events are collected automatically: page_view, first_visit, scroll, and session_start. Others, like a contact form submission or a file download, you need to configure yourself.

The cleanest method is to create a custom event in Google Tag Manager that fires when a specific action occurs, for example when a form confirmation page loads or when a button with a particular class is clicked. Name the event clearly, for example contact_form_submit, and then go to “Configure > Events” in GA4 and toggle that event as a conversion. Within 24 to 48 hours, GA4 will start attributing that conversion to the traffic sources that brought in those visitors. This data is what connects your marketing spend to actual business outcomes.

Privacy and GDPR Considerations

GA4 can be configured to meet GDPR requirements, but it does not do so by default. IP anonymization is active in GA4 from the start, which is an improvement over Universal Analytics. However, GA4 still sends data to Google’s servers, which in the EU requires a valid legal basis and typically explicit user consent before the tag may fire.

The practical solution is to use a consent management platform (CMP) to block the GA4 tag until the visitor accepts analytics cookies. Pair this with Google Consent Mode v2, which allows GA4 to model conversions and traffic estimates even for users who decline, without collecting personal data from them. Set your data retention period to 14 months in GA4’s settings. These three measures together make GA4 workable within a GDPR framework for most European businesses.

The Reports That Matter Most for Small Businesses

You do not need to explore every corner of GA4 to get useful insights. Four reports cover most business questions. The Acquisition report tells you where your visitors come from: organic search, direct, paid, social, or referral. This helps you understand which channels are actually working. The Engagement report shows time on page, scroll depth, and which pages have the highest exit rates, pointing you toward content that needs improvement.

The Conversions report ties everything together: how many goal completions did you get, and from which source? If you have set up events correctly, this report shows you the direct link between traffic and business outcomes. Finally, the Realtime report is useful when you launch a campaign or publish new content: you can see immediately whether traffic is landing and whether the tracking is responding. Understanding these four reports puts you ahead of most small business owners who install GA4 but never open it. For a broader look at your site’s visibility in search, combine GA4 data with the guidance in our article on SEO for businesses and check the technical health signals covered in Core Web Vitals.

Our tip: Create a custom GA4 dashboard with just the Acquisition, Conversions, and top-10 pages reports and bookmark it. Check it every Monday morning for 10 minutes. Consistency beats deep-dive sessions that never happen.

Frequently asked questions

What is the difference between Google Analytics 4 and Universal Analytics?

Universal Analytics (UA) was Google's previous analytics platform that tracked sessions and pageviews as its primary unit of measurement. GA4 replaced it in July 2023 and uses an event-based model instead, where every interaction (pageview, scroll, click, form submission) is recorded as an event. This makes GA4 more flexible for tracking complex user journeys across websites and apps. The interface is significantly different from UA, and historical data from Universal Analytics cannot be imported into GA4, which is why setting up GA4 as early as possible was strongly recommended to build a data history.

Does GA4 comply with GDPR?

GA4 can be made GDPR-compliant, but it requires deliberate configuration. By default, GA4 collects IP addresses and may send data to Google's US servers, which requires a valid legal basis and, in most interpretations, explicit cookie consent. To improve compliance: enable IP anonymization (active by default in GA4), configure a data retention period of 14 months or less, use a consent management platform (CMP) to block the GA4 tag until the user consents, and implement Google Consent Mode v2 so GA4 can still model conversions for users who decline. Always consult your legal team or a privacy specialist for your specific situation.

What are the most useful GA4 reports for small businesses?

For most small businesses, four GA4 reports deliver the most value. The Acquisition report shows where your visitors come from (organic search, direct, social, paid ads) so you know which channels to invest in. The Engagement report shows which pages hold attention and which pages have high exit rates. The Conversions report shows how many goal completions you are getting and from which source. The Realtime report is useful for verifying that tracking works and for monitoring traffic spikes after a campaign launch. These four reports answer the questions most relevant to business decisions without requiring deep analytics expertise.

Want a dashboard or automation built for you?

Stuurboard BI builds custom Power BI dashboards and workflow automations. Pragmatic, fast, and without the fuss.