Set up Google Analytics 4 on a Composer site

Google recently released a new analytics property known as Google Analytics 4, which is intended to replace Universal Analytics in 2023. 

As of July 1, 2023, standard Google Universal Analytics (UA) properties will no longer process data. New data will only flow into Google Analytics 4 properties. You'll be able to see your UA reports for a period of time after July 1, 2023.

Add GA4 Measurement ID to Composer

Composer now natively supports GA4 Measurement IDs ("G-XXXXXXX") through the interface. 

Step 1: Create a GA4 property

Follow the instructions from Google to set up your account and create a Google Analytics 4 property for your site.

Step 2: Copy your GA4 Measurement ID

Then, copy the GA4 Measurement ID to add it to Composer. You can find it in the “Property Settings” of your Google Analytics account. 

Step 3: Paste Your GA4 Measurement ID in Composer

In Composer, click the three-dot menu next to the domain in the Pages menu, then select “Settings.”

Go to the “SEO” tab and paste the Measurement ID into the “Google GA4 ID" field.

Note: You can keep your Google Universal Analytics ID in the settings, as well. Until Google stops supporting UA in 2023, both may be used simultaneously to collect data.

Click “Apply” to save the changes.

Create custom dimensions

To allow for more comprehensive reporting and attribution in Google Analytics, we’ve set up automatic event tracking for several features on your Composer site.

To leverage these custom events, you’ll need to configure custom dimensions in your GA4 property.

  1. Select “Configure” in the left navigation of Google Analytics.
  2. Select “Custom dimensions” and enter the following:
Dimension Name Description Scope
User Property/Parameter
button_text Button Text Event button_text
click_text Click Text Event click_text
element_text Element Text Event element_text
element_url Element URL Event element_url
form_text Form Text Event form_text
media_title Media Title Event media_title
resource_title Resource Title Event resource_title
resource_url Resource URL Event resource_url
url_path URL Path Event url_path
video_name Video Name Event video_name
video_state Video State Event video_state
video_title Video Title Event video_title


Acknowledge user data collection policies

Google has specific policy requirements for its advertising features, so you’ll need to ensure your privacy policy is up to date to leverage Google’s cross-device tracking.

Once you have updated your privacy policy to meet Google’s requirements, click “I acknowledge” in the “User Data Collection Acknowledgment” in your Google Analytics Admin Settings.

Was this article helpful?
1 out of 1 found this helpful



Please Sign in to leave a comment if you don't see the comment box below.