
Maximizing the potential of Google Analytics (or any similar tool) goes beyond the one-size-fits-all approach. Simply adding a line of JavaScript code to your website won’t provide the insights you need. To truly benefit from the platform, customizing your data collection is essential.
Every business is distinct, and understanding the performance of different aspects requires tracking specific metrics.
- A Brief Explanation of Dimensions in Google Analytics
- What is a dimension?
- GA4 Custom Dimensions vs Universal Analytics Custom Dimensions
- Scope in Universal Analytics Universal Analytics had four scopes for custom dimensions:
- How Scope Changed in Google Analytics 4 In Google Analytics 4
- Setting Up Custom Dimensions and Accessing Reports
- Finding Custom Dimensions in Google Analytics 4 Reports
One way to achieve this customization is through the use of custom dimensions. Rather than settling for generic data, you can delve deeper into your setup. While Google Analytics 4 offers improved automatic tracking capabilities compared to Universal Analytics, it may not cover all your requirements.
In this blog post, I’ll guide you through the process of configuring Custom Dimensions in Google Analytics 4 using Google Tag Manager.
A Brief Explanation of Dimensions in Google Analytics
What is a dimension?
Defining Dimensions Let’s begin with the basics for those new to the subject. A dimension is a parameter or attribute that describes data, such as the attributes of a product, event, user, or website. It helps provide context to understand what, where, and when something is happening.
For example:
- In a website transaction, dimensions can include Transaction ID, Coupon code, or Latest traffic source.
- For a user logging in, custom dimensions might include Login method or User ID.
- In the case of a purchased product, dimensions may involve Product name, Product category, Product variant, or Product size.
- For a logged-in user, dimensions can include User ID, Registration country, or Pricing plan.
In summary, dimensions help to define and describe various aspects of data. Now, let’s explore custom dimensions.
GA4 Custom Dimensions vs Universal Analytics Custom Dimensions
While Google Analytics offers various dimensions, they may not cater to every specific situation. This is where custom dimensions become indispensable. For instance, if your business involves selling online courses, GA won’t provide specific dimensions for that niche.
To fill this gap, we have Custom Dimensions.
Scope in Universal Analytics Universal Analytics had four scopes for custom dimensions:
User, Session, Hit, and Product. Each scope determined the level at which the dimension would apply.
- User-scoped custom dimensions applied to all events of a user session. If you set a User ID as a custom dimension, it would be applied to all events within that session and all future events by the same user.
- Session-scoped dimensions applied to all events within a particular session. For example, a session ID custom dimension would be applied to all events in that session, even if set with the last event.
- Hit-scoped dimension applied only to a specific event. For example, you could set an event “trial started” and include an additional parameter like “pricing plan,” which would apply only to that specific event.
- Product-scoped custom dimension applied only to a particular product tracked with Enhanced Ecommerce functionality.
Now, let’s see how GA4 has changed this.
How Scope Changed in Google Analytics 4 In Google Analytics 4
the session scope is no longer available for custom dimensions. Currently, GA4 only supports hit-scoped and user-scoped custom dimensions. User-scoped custom dimensions work similarly to their Universal Analytics counterparts but with some differences:
- In Universal Analytics, a user-scoped custom dimension applied to all events within the same session, even if set after some events occurred. In GA4, the User Property applies to all events but only from that specific moment onwards. Past events of the same session remain unmodified, as GA4 attempts to move away from the concept of a session to some extent.
- The configuration process for user-scoped custom dimensions in GA4 has also changed, and I’ll explain it later in this blog post.
- You can have up to 25 user-scoped custom dimensions in a single GA4 property, which is a significant increase compared to the “20-custom-dimensions-limit” in free Universal Analytics that applies to dimensions of all scopes.
Speaking of product-scoped custom dimensions, while you can send custom product data to GA4, viewing it properly in reports may not be possible at the moment. Hopefully, this will change in the future.
Update #1: GA4 now supports item-scoped custom dimensions.
Update #2: Google had previously mentioned that session-scoped custom dimensions in GA4 would be available at some point in the future.
Setting Up Custom Dimensions and Accessing Reports
Process of Creating Custom Dimensions in Google Analytics 4
Google Analytics 4 provides flexibility in sending custom data. If you mainly use it to stream data to BigQuery for analysis, you can send any custom parameters you want, visible in BigQuery.
To use these parameters in the GA4 interface and reports, you need to register them as custom dimensions in GA4. Here’s how you can do it:
- Register a parameter as a custom definition.
- Start sending custom parameters with the events you want.
The order of these steps doesn’t matter, but they should be done around the same time. If you delay registering a custom dimension, your reports will miss the data collected during that time. However, the raw data streamed to BigQuery will still contain the custom parameter.

Let’s take an example of tracking menu link clicks. Each time a visitor clicks on a menu item, an event will be sent with two additional parameters, menu_item_url, and menu_item_name.

To track menu link clicks, you need to create a trigger with specific conditions in Google Tag Manager. By enabling Preview mode and clicking on the menu links, you can verify that the Link Click event appears in the Preview mode’s sidebar.

If you don’t see the event, ensure that you have at least one Just Links GTM trigger activated on the page or have “File download” or “Outbound links” tracking enabled in your Enhanced Measurement Settings within GA4.

Once you’ve set up the trigger for menu link clicks, proceed to configure variables to enable link-tracking functionality in Google Tag Manager.

After creating the trigger, set up Google Analytics 4 event tags. You can send event names like “menu_click” and include parameters like “menu_item_url” and “menu_item_name” to track specific menu items.

To send custom parameters, expand the Event Parameters section in the Google Analytics 4 event tag and add rows with parameter names and corresponding values.

Once you’ve set up the event tags, assign the Just Links trigger to them. Save the tags and refresh GTM’s Preview mode to verify if the GA4 event tags for Menu Link Clicks have fired.

To view the data in GA4 reports, you must register the custom parameters as custom dimensions in Google Analytics 4.

Head to Admin > Custom Definitions > Custom Dimensions and create custom dimensions for each parameter, specifying the scope as “Event.”

Now, you’ll need to wait for up to 24 hours for the custom dimensions to start appearing in your GA4 reports.
Finding Custom Dimensions in Google Analytics 4 Reports
Google Analytics 4 provides various reports where you can find the dimensions you’ve set. Some of these reports include:
- Admin > Events: This report presents a list of events with corresponding counts.
- Reports > Engagement > Events: An overview of all events sent to your property with accompanying charts and data.
- Explore (Exploration Reports): Allows you to drill down into your data and use reports like Free Form, Funnel Exploration, Path Exploration, and more.

For example, in the Free Form report, you can explore how visitors with different device categories interact with your site’s menu bar by including the custom dimension “menu_item_url.” Filtering the report by “menu_click” events will display the relevant data.

In summary, custom dimensions are vital for maximizing the potential of Google Analytics 4. By sending custom parameters and registering them as dimensions, you can gain valuable insights into various aspects of your business.
Remember, Google Analytics 4 offers numerous reports where you can access and analyze this data, providing a comprehensive understanding of your website’s performance.
By following these steps, you can effectively leverage custom dimensions to tailor Google Analytics 4 to your specific business needs and optimize your decision-making process. So, start customizing your data collection today to unlock the full potential of GA4.