• GA4
Share article

How do I set up a Google Analytics 4 property?

If you’ve read the other part of our GA4 series, you should now have a bit more of an idea of the functionality of GA4.

That said, maybe you’re already in the know, and want to get stuck into setting up GA4 now. Either way, here’s a quick background on the GA4 before we get stuck into the nitty gritty of setting up your property.

What is Google Analytics 4?

GA4 is the latest version of the widely-used and long-established tracking and data collection platform created by Google. Since this is the fourth iteration of Analytics, they really turned the creativity knob up to 11 and dubbed it; GA4.

All versions use a ‘JavaScript library’ that enables the platform to track activity on-site. The library’s changed with each subsequent version, along with a host of metrics and functionality updates, they were;

  • GA1 or ‘Classic’ Analytics – using the ga.js library
  • GA2 or ‘Universal’ Analytics – using the analytics.js library
  • GA3 – also known as ‘Universal’ Analytics – uses the gtag.js library

Google Analytics 4 builds on the changes made in GA3, utilising the gtag.js library still, but changing the data model from session-based to event-based.

GA4 also adopts the event+parameter model, enabling you to draw additional information alongside a tracked event. A good example would be when someone views a product, parameters allow you to pull related information – like name, category, or price – directly into GA4. Pretty cool, right?

The advances within Analytics 4 present marketers, businesses and website owners with literally thousands of new variations and tracking options to implement, but you don’t have forever to do it.

How do I set up GA4?

Head to analytics.com and set up an account. Once you get to the point of setting up your code snippet, you’ve got a decision to make.

Gtag.js snippet or Google Tag Manager?

There are two routes to installing Analytics once you’ve set up your account;

  1. You can use the gtag.js snippet – this is two pieces of code that are placed in the <head> and <body> section of your whole site’s HTML, enabling analytics to track user behaviour
  2. You can install Google Tag Manager – a similar set-up with the familiar head/body set-up, but there are some other benefits to GTM to consider, along with some constraints

Google Tag Manager is a (spoiler alert) tag management system that enables you to easily update code segments (known as tags) that enable you to track, measure and funnel on your site or app.

Installing GTM allows you to house all manner of tags in one place, rather than filling your site’s code with multiple third-party scripts. Tag Manager is specifically designed to enable deployment of tags for Google products, like Google Analytics and Ads, but also other non-Google related tags, like Facebook.

Third-party scripts are notoriously ‘heavy’, often having a detrimental effect on your site speed and user experience. By placing as many scripts and tags in your GTM container, you can keep the negative impact of third-party code to a minimum on your site.

Choosing which installation method is right for your business or site is pretty straightforward, check out this handy table to help you decide:

[ninja_tables id=”18087″]

 

For the vast majority of sites, Google Tag Manager is by far the most practical choice. It keeps things light, is easily accessible to a wider team, and in most cases, doesn’t require specialist coding knowledge to make changes.

Setting Events and Conversions in GA4

As we covered in our other blog, Google axed goals in favour of events. To track conversions with a monetary value, events in GA4 are simply marked as a conversion, with an attributed value using a custom event parameter (e.g. event_value).

Analytics 4 tracks a bunch of events out of the box, whilst some will require work in GTM or directly in the GA4 interface in order for them to track correctly.

[ninja_tables id=”18088″]

 

Configuring events for GA4 can be done one of two ways:

  1. Modifying the code, through Google Tag Manager or using an API such as the gtag.js snippet
  2. Using GA4’s inbuilt configuration, which shares parameters with GTM (for those of you already familiar)

Both methods are valid, creating and modifying in GTM arguably takes more time than within the new Analytics interface, but configuring within GA4 has limitations that are worth considering. In Google’s own words:

  • Modified and created events do not apply to historical data.
  • You can modify up to 50 existing events and create up to 50 events based on existing events.
  • An hour or more passes before modifications take effect.
  • Modifications are executed client-side before data is sent to Analytics for processing.
  • Modified events execute in the order they appear in the Event modifications list.
  • Modified events are processed before created events are processed.
  • You can’t reorder created events.
  • You can’t create and modify custom events based on parameters from the items array (e.g., item_brand, item_name, item_id) when you use gtag.js.

Hiring someone else to set up for you

If you’re reading this, thinking it sounds like too much trouble or outside of your company’s capacity, we understand why. It’s a lot to take on board when you’re not used to using platforms like Google Tag Manager on a regular basis.

The basic setup of GA4, from account setup to installation is relatively straightforward, and designed to be so. But once you get to setting up tags specific to your tracking requirements, it gets quickly complicated.

The risk of devaluing an existing event during modification is a real threat, understanding and leveraging parameters takes time, and making sure conditions match when creating custom events is essential. Our data analysis and insights team are adept at working across the Google marketing suite, including GA4, so if setting up sounds out of your reach, don’t despair.

via GIPHY

Sometimes it’s better to leave it to those who’ve already been through the mill and come out the other side largely unscathed, letting you focus on other things, better things, like crisps. Or sandwiches. Or crisp sandwiches.