Get Started Get Started

Google Analytics 4

As Google introduced the new generation of Google Analytics, called Google Analytics 4, it replaced Universal Analytics on July 1, 2024. All Universal Analytics properties have started being permanently deleted.

Therefore, it's important to make the move over to Google Analytics 4 as soon as possible to build the necessary historical data before Universal Analytics being fully deleted. 

This article will show you how to create your Google Analytics account and Google Analytics 4 property, and then instruct you to install it on your Oncord website. 

Note: If your Oncord website already has installed Google Analytics (Universal Analytics) with Google tag (gtag.js), please follow the instruction from Google to set up your Google Analytics 4 using your existing tag: https://support.google.com/analytics/answer/9744165?hl=en

Set up Google Analytics Account

Click the link below and follow the instruction to create a Google Analytics account and a Google Analytics 4 property, and then add a data stream: https://support.google.com/analytics/answer/9304153?hl=en&ref_topic=9303319

Install Google Analytics into Oncord (Using Google tag)

Once you've completed the Google Analytics account setup, it's time to configure the installation.

One of the most common ways to do the Google Analytics installation is by adding Google Tag (gtag.js) to every page of your website (within your design).

Get the Google Tag (gtag.js) from your Google Analytics 4 Property

Sign in to your Google Analytics account.
Click "Admin" at the bottom left of the window.
At the top of the "Property" column, use the dropdown selector to select the property that contains the data stream for your Google tag.
In the "Property" column, click "Data streams".
Click the web data stream that you want to edit.
Under "Google tag", click "Configure tag settings".
In the “Your Google tag” section, click "Installation instructions".
In the "Installation instructions" page, select "Install manually"
Click the Copy button at the top right of the box to get the Google Tag (gtag.js).


Add the Google Tag (gtag.js) to all Pages (Within your Design)

Where embed code needs to appear on all pages throughout your website, it should be added to your website design theme. 

Edit the website design (Dashboard > Website > Designs, select the design to edit). 
Click "SOURCE" in the left menu to view the source code of your website design.
Paste the code just before the closing </head> tag. 
Click the "Save" button located at the top left of the screen.

It should take up to 30 minutes for Google to start data collection.



Tip: It's recommended to use Google Tag Manager to manage and configure your tags. Please check out the next help article about Setting Up Google Tag Manager with Oncord.