Google Analytics | What events does ChannelMix recommend tracking in GA4?

The Four Categories of Google Analytics Events
- Automatically collected events - basic events like page_view which are collected out of the box requiring no custom code
- Enhanced measurements events - more advanced out of the box events like scroll and file_download which can be improved with custom parameters
- Recommended events - predefined custom events that are officially recommended by Google depending on your use case(s)
- Custom events - created when none of the above categories cover your tracking needs
Recommended Events - Documentation


Recommended Events - Implementation
Best practice for Google Analytics tracking is to implement data layer support. Therefore, this article will demonstrate an example using that method.
Step 1: Data Layer Push
Building on the Twitter example above, developers should consult Twitter's official documentation which is beyond the scope of this article but relevant to the extend that the following data layer push should be executed after the Twitter API responds indicating a Tweet has been sent.
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'event': 'share',
'data' : {
'method' : 'Twitter',
'content_type' : 'image',
'item_id' : 'C_12345'
}
});
Programmatically pushing this data to the data layer makes them available for collection through GTM data layer variables.
The data layer push is the preferred method because is is more accurate and easier to maintain than capturing values from web or mobile content and interactions.
Step 2: Data Layer Variables
Create data layer variables to capture the values being pushed to the data layer in Step 1.
As an example, the screenshot below shows a data layer variable configured to capture the value for 'method' in the data layer push ('Twitter' in this example).
In this case, the name of the variable in Google Tag Manager may vary according to you preferences but the Data Layer Variable Name must match exactly what is shown in order to capture the value as structure in the data layer push code snippet.
Step 3: Tag & Trigger
Set the recommended parameters with the data layer variables created in Step 2.
The trigger for this tag is a Custom Event with an Event name that matches the 'event' value pushed to the data layer.
Conclusion
This same process can be applied and customize to meet your tracking needs. When possible, use the recommended events and parameters provided by Google. The result will be an implementation that is easier to maintain in the future.