On July 1, 2023, standard Universal Analytics properties will stop processing data. This will be replaced by Google Analytics 4 (GA4). More information on Google deprecating Universal Analytics can be found here: Universal Analytics is going away
Setting up your GA4 Integration
There are 4 types of events in GA4:
- Automatically Collected Events
- Enhanced Measurement Events
- Recommended Events
- Custom Events
Detailed information on these events can be found in the next section
For Automatic and Enhanced Events: No set-up is required for our integration. In this case, our content will be automatically reported as native to the website with data being sent to GA-4. It is still necessary for your team to migrate to GA4 in your Google account: Migrate to GA4
Note: It is necessary to use the Enhanced code when publishing your content. Please contact your account manager if this is not yet enabled, and reference the following article: Server-Side Rendering Enhanced Code for Experiences
For Recommended and Custom Events: This will require some additional implementation on our end. Please contact your account manager so we can tailor this set-up to your specific data needs.
Information on GA4 Events
There are 4 types of events in GA4 and each serves its own purpose.
Automatically Collected Events
These are the events that will be automatically collected by GA4, such as:
first_visit - This is the first time a user visits a website or launches an app
session_start - When a user engages the app or website and starts a new session
user_engagement - This event is fired, when the app is in the foreground or webpage is in focus for at least one second.
Here is the complete list of automatically collected events from the official source: Automatically collected events.
Enhanced Measurement Events
These events are by default enabled by GA4 but the users have the option to disable/enable events individually and configure each of these events.
Page view (event name: page_view) - This event is sent to GA4 when a new page loads
Scroll (event name: scroll) - This event is sent to GA4 once per page when a visitor scrolls below the 90% threshold of the page height.
Outbound link click (event name: click with the parameter outbound: true) - This event registers in GA4 for the outbound link click
Site search (event name: view_search_results) - This event is triggered when the page loads and its URL contains a query parameter
Video Engagement (events: video_start, video_progress, video_complete)
File Download (event name: file_download)
Form Tracking (events: form_start, form_submit) - These events are recorded when the website user interacts or successfully submits a lead form during their session
Here is the complete list of Enhanced Measurement events from the official source: Enhanced event measurement
These events are recommended by GA4 depending on business use cases. They have a complete list of events that they recommend for customers to use for E-commerce businesses. The list can be found here:
Ecommerce purchases report
If you don't see your desired event listed, you have the option to create Custom Events. These can be defined by your team and have up to 25 parameters attached. There are some limitations that are detailed here: Event collection limits
Here is the complete list of custom events from the official source: Custom events
Frequently asked questions
Does GA4 track in my embedded experiences?
In the case of embed or HTML widgets, some additional implementation work will be required. If your team uses either of these widgets on the experience and want to track data, please reach out to email@example.com for additional training
Can GA4 track internal links?
GA4 does not track internal links (across the same domain). However, the page_view event has a page_referrer field that can act as a tracker for internal link clicks.
How will GA4 track E-commerce events?
The E-commerce events belong to the category of Recommended events, and will require some additional implementation work. For context, E-commerce events will be configured at the widget level where your team will have the flexibility to send data such as the product ID, Variant ID, SKU etc as the event parameters.
Can GA4 track lightboxes on the experiences?
In the case of lightboxes, some additional implementation work will be required. If your team uses lightboxes in your experiences and want to track data, please reach out to firstname.lastname@example.org for additional training
- Will experiences embedded inside of Publicator be tracked?
In the case of Publicator, you can find more information on its version of the GA4 Integration here. For the time being though, Creator Experiences will not be tracked inside of a publication. It is necessary to embed the experiences on your live site for tracking to be picked up