GA4 Custom Dimensions
Custom Dimensions in GA4 allow us to measure and track more bespoke elements. By defining custom events and triggers in GTM, we can then add more variables in GA4.
These are built based on a requirement. If you would like to discuss setting up your own Custom Dimension to track something specific within Google Analytics, please get in touch.
Return to full list:
List of Custom Dimensions
userAudience
userAudience is a data layer string that is dynamically created by SiteBuilder when the page loads. It allows us to identify the relative spread of users based on their logged in status.
Options include:
- NotLoggedIn
- UG
- Staff
- PG(T) and PG(R)
- Applicant
- Alumni
- External
search_term and search_element
These two parameters are used to capture any search terms that are entered into SiteBuilder.
How this works:
- Custom script in GTM triggers when users enter information into a search field that is 2+ characters and waits a short delay.
- This is passed through to the data layer before being submitted to GA4.
We exclude all form text fields.
userDepartment
Similar to userAudience userDepartment allows us to track which department a user is from when they are logged into Sitebuilder.
link_click_internal
This tracks any click on an internal link, which includes warwick.ac.uk. This is so we can track clicks on groups of links across different areas (such as the footer).
Others
event_category and event_label
- Are these something to do with the virtual tour?
query_string
- This splits out the query string from the page path URL in order to better track queries such as pre-selecting filters on the feed filter page template.