Digital Marketing

How to Set Up Google Analytics [GA4] – A Step-By-Step Guide

zorbisbusiness
zorbisbusiness
6 min read

Google Analytics (GA) is a free web analytics service offered by Google that allows you to track and report on website and app data. GA gives you insights into your users and their behavior on your digital properties. With GA, you can understand:

Where do your website visitors come fromWhat pages do they visitHow long they stay on your siteWhat actions do they take (e.g. make a purchase)

This information helps you make data-driven decisions to optimize your website and marketing campaigns for better results. For example, you can identify high-traffic landing pages to focus on or uncover areas where users are churning to fix UX issues.

This guide will walk through the key steps to set up Google Analytics 4 (GA4), the newest version of Google Analytics, on your website and mobile apps. Following best practices from the start will set you up for success.

Sign Up for a Google Account

To use Google Analytics 4 (GA4), you'll first need to have a Google account. If you already have a Gmail address or other Google service, you can use that existing account.

Having a Google account is necessary not only to access GA4, but also to manage user permissions, view reports, set up integrations with other Google products, and more.

Create a GA4 Property

To create a new property in Google Analytics 4 (GA4), follow these steps:

Open your GA4 account and click on "Admin" in the left sidebar.On the Admin page, click on "Create Property".Enter a name for your property. Make sure it's something descriptive that you'll easily recognize.Select your time zone from the dropdown menu. This sets the timezone that your analytics data will be displayed in.Click on "Show advanced options" and configure additional settings like:Currency - The currency your business operates in.Site URL - The website URL you want to track data for.Industry category - Helps GA4 determine default reports.Reporting time zone - Timezone to display reports. Default is the account timezone.Click "Create" when ready.

Your new property is now created! You can create additional properties to track data for other sites, apps, or business units. The next step is setting up data streams to start collecting analytics data for your property.

Set Up Data Streams

One of the first things you'll want to do in GA4 is set up data streams. Data streams allow you to send data from your website, app, or other sources to Google Analytics.

There are two main types of data streams:

Web Data Stream

This allows you to connect your website to GA4 and send web analytics data. When you create a web data stream, GA4 will give you a tracking code snippet to add to your site. This enables GA4 to start collecting analytics data from page views, events, etc.

To create a web data stream:

In the Admin section, go to Data Streams.Click + Create Data Stream.Select Web.Enter a name and click Create.Copy the tracking code snippet and add it to your website's HTML code.

Once installed, your website data will start populating in GA4 within a day or so.

Connect GA4 to Your Website

To start collecting data, you need to connect your GA4 property to your website by installing the GA4 tracking code. Here are the steps:

In your GA4 property, go to the Admin section and select the Data Streams tab.Click on the Web stream and then select Install Code.Select the Global Site Tag (gtag.js) option. This is the latest GA tracking code that supports all GA4 features.Copy the Global Site Tag tracking code. It will look something like this:

 

<!-- Global Site Tag (gtag.js) - Google Analytics →

<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

  gtag('config', 'GA_MEASUREMENT_ID');

</script>

 

Paste this code on every page of your website before the closing </head> tag. Replace GA_MEASUREMENT_ID with your actual property ID.For WordPress sites, you can install a plugin like MonsterInsights to add the code automatically.For Google Ads tracking, add the gtag.js conversion tracking code on the confirmation page after a conversion event like a purchase.Verify the installation by previewing your site and checking the real-time reports in GA4. It may take up to 24 hours for data to show up.Once connected, GA4 will start collecting page views, events, and other data configured for your property. Customize data collection further using tracking parameters.

Conclusion

By following these steps, you can successfully set up Google Analytics 4 tracking for your mobile apps alongside your website data. The unified cross-platform reporting provides a complete view of customer interactions.

Want to find the best digital marketing company in the USA for your business? We at Zorbis can help you reach your goals, no matter what they are. With our full-service facilities, premium service, and barrels of knowledge, we can help your online advertising reach new heights of success. Talk to one of our marketing experts right now to find out what we can do for you.

 

 

Discussion (0 comments)

0 comments

No comments yet. Be the first!