This is the new standard for Google tracking as you may already know. You will need to create a new GA4 property and provide the data stream measurement id e.g. G-xxxxxxxx . Ideally we will also need to be given access to this account so we can double check the tracking initially and setup the tracking for the Search results.
Please give access to retailsportssystems.co.uk@gmail.com unless it already has access.
You will find numerous guides online on how to create the GA4 property and give access, bearing in mind GA4 is still a work in progress so things, menus etc. can still change.
v2.2.2
Any shop site
Once this has been provided it needs to be added into the back office and Google Tag Manager.
While we're here in the Analytics we can also go through this bit of the setup.
From the same screen mentioned above where you can see the measurement ID look in the Events section, > Enhanced measurement > Measuring > click on the settings / cog icon (Configure enhanced measurement)
In the section that opens go against site search and click on show advanced settings and add the word “criteria†in the search term query parameter input > and then click Save at the top
file maintenance > sys config > google > GA4 measurement ID.
Please do not skip adding the GA4 measurement ID into the back office otherwise
it will not trigger any tracking.
You will also need to make sure there is a Google Tag Manager id as we will be carrying on the rest of the setup in Google Tag Manager
Navigate to the club's tag manager account and ensure the id at the top right matches what is setup in the back office and what is coming from your Google Analytics GA4 property
From within Google Tag Manager click on the admin tab at the top and then on import container under the container dropdown.
In the window that opens:
browse for the import file
should be attached to this document, but if you don’t have one you can request the “GA4 Configuration Import file for GTM†via our Helpdesk (GTM GA4 Configuration.json)
select the default workspace
Choose the merge import option
Overwrite conflicting tags or Rename if that makes sense for you scenario
click the Confirm button at the bottom
Tags, you should expect to see at least these:
[CHANGE ME] GA4 Configuration - [club name] | Google Analytics: GA4 Configuration | Initialization - All Pages |
add_payment_info | Google Analytics: GA4 Event | add_payment_info |
add_shipping_info | Google Analytics: GA4 Event | add_shipping_info |
add_to_cart | Google Analytics: GA4 Event | add_to_cart |
begin_checkout | Google Analytics: GA4 Event | begin_checkout |
purchase | Google Analytics: GA4 Event | purchase |
remove_from_cart | Google Analytics: GA4 Event | remove_from_cart |
search | Google Analytics: GA4 Event | search |
select_item | Google Analytics: GA4 Event | select_item |
view_cart | Google Analytics: GA4 Event | view_cart |
view_item | Google Analytics: GA4 Event | view_item |
view_item_list | Google Analytics: GA4 Event | view_item_list |
Triggers
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event | |
Custom Event |
Variables
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable | |
Data Layer Variable |
As per the import the GA4 Configuration Tag will be setup as a dummy one.
In order to link GA4 to this Tag Manager property you need to go into tags from the sidebar and click on the tag responsible for the GA4 Configuration. It will likely look something like this, click on it:
[CHANGE ME] GA4 Configuration - [club name]
In the window that opens:
change the name to “GA4 Configuration - [club name]â€
DO NOT SKIP this step - populate the measurement ID with the G-xxxxxxx id from your Analytics account (same as back office)
click the Save button
You will need to go through each GA4 Event and update the Measurement ID with the one belonging to your account.
In GTM click on the blue Submit button at the top right of the screen.
Give your version a name like “GA4 Configuration†and then you can double check further down the screen that you’re only submitting changes done by you as others may have made changes to your GTM previously if you have given access to 3rd parties to add other tracking / widget code which has not been published yet.
If you are all happy you can click on Publish.
Next to the Submit button at the top there is a Preview button which you need to click.
Next up it will ask for the site URL.
This will open another tab for you with the website where you can navigate and this will show you the tracking events fired in the other tab.
Example for add to cart event:
click on the event
see if the event is also showing up under Tags Fired, if so you can click it to double check the data being passed
the event will only be picked up by Tag Manager and Analytics if it shows up in the Tags Fired section
Upon clicking on the event under Tags Fired you should see something like this