Skip to main content

How can you use Google Analytics 4 on your website?

Updated over 3 months ago

To use Google Analytics 4 on your website, it is important to follow a few steps:

  1. Create a Google Analytics 4 account: go to the Google Analytics site and create a new account by selecting the "Google Analytics 4" account type.

  2. Configure a property: once the account has been created, you need to configure a property for your website. You need to provide information such as the name of the site, the URL, the time zone, etc (for more information click here).

  3. Get the tracking code: once you have set up the property, Google Analytics will generate a unique tracking code(this GA4 identifier is recognisable from the old identifiers because it starts with G- and no longer UA-). This code should be added to each page of your site, usually in the <head> tag or just before the </head> closing tag.

  4. Configure event tracking: with Google Analytics 4, event tracking is essential. You need to define the events you want to track such as button clicks, file downloads, form submissions, etc. You can customise the events according to the specific actions you want to measure(for more information click here).

  5. Test and verify tracking: once the tracking code has been added to your site, you can run tests to ensure that events are being tracked correctly. Use the Google Analytics Debugger extension to check tracking calls in your browser console.

  6. Explore the reports: once you've configured and verified tracking, you can start exploring the reports in your Google Analytics 4 account. Here you'll find information about users, events, conversions, traffic sources and so on. You can also define custom goals and conversions to track specific user actions on your site(for more information click here).

The GA4 tracking code is entered in the Website menu, Statistics tab of your elloha platform.

Capture

Events used by Google Analytics 4

The events used in Google Analytics 4 (GA4) are used to collect data on user interactions with your website or your booking engine. They are used to track specific actions performed by users, such as button clicks, file downloads, video views, shopping cart additions, form submissions, etc.

GA4 offers an event-based approach to tracking user interactions, unlike the previous version of Google Analytics (Universal Analytics) which focused primarily on page views. GA4 events offer greater flexibility to measure specific actions that are important to your business.

Events are not configured by default in Google Analytics; it is up to you, the tool user, to configure them according to the data you wish to collect.

Below is a table summarising the events that need to be tracked in order to monitor and study your customers' behaviour. This will help you build your conversion funnels.

Events to track

Name of event

Remarks

View Magic or Basic site

view_website

Display a list of concierge establishments

view_concierge_list

Detail page for a location

view_item_list

Compatible with the Analytics e-commerce module

Add to basket

add_to_cart

Compatible with the Analytics e-commerce module

Remove from basket

remove_from_cart

Compatible with the Analytics e-commerce module

Cross-selling display

view_cross_selling

Click & Collect display

view_click_and_collect

Upsell display

view_upsell

Display of the customer details form

view_cart

Compatible with the Analytics e-commerce module

Display choice of payment methods

begin_checkout

Compatible with the Analytics e-commerce module

Display of confirmation page

purchase

Compatible with the Analytics e-commerce module

Display error page

view_error

Did this answer your question?