An event is the user’s interaction/activity with a web page element embedded on a website and/or mobile app.
Following are examples of web page elements: video, image, button, form, scroll bar, external link, lightbox etc
Following are the examples of user activities that can be tracked as events in GA4:
Log-ins
Clicking on a button
Scrolling down the page
Downloading a file
Loading of a page in the browser window (pageview) etc.
Any user interactions with content from a web page or a screen load can be tracked as an event.
In the earlier legacy version of Google Analytics, every event needed to be configured separately, either using the global site tag (gtag.js) or Google Tag Manager (GTM).
But in the case of GA4, events are completely different and require a new setup since many of them come preconfigured now.
Yes, you heard right!! Google Analytics 4 can log many events automatically without any additional coding or tagging.
These events are also automatically triggered and logged on certain pre-defined user activities. But the events are logged only when you have enabled enhanced measurement.
To learn more about these events, check out the following two articles:
Recommended events are the events recommended by Google. They do not automatically get triggered and logged unless you manually implement them.
However, for a recommended event to work correctly, you must use the exact same event name and parameter(s) as supplied by Google.
Failing to do so, Google will not recognize your event as one of their recommended events, and your event may either not work the way you want or do not get triggered at all.
Google recommends that before you create a custom event, make sure that there is no automatic, enhanced measurement or recommended event that already provides what you need.
Note: Custom events don’t show up in most standard reports. So you would need to use custom reporting.
You can set custom events and their parameters in two ways:
Using Global Site Tag (gtag.js) – requires hard coding on the website
GA4 has certain limitations on collecting events on a per property basis. Once your event or event parameter exceeds these collection limits, they are no longer recorded by GA4.
Please keep the below limitations in mind while setting up custom events:
Item Description
Limit
Can I delete items if I’m close to the limit?
Distinctly named events
500 per app (Data stream) instance
No
Length of the event name
40 characters
N/A
Event parameters per event
25 parameters
Yes
Length of event-parameter name
40 characters
N/A
Length of event-parameter value
100 characters
N/A
Setting up event-scoped custom dimensions and metrics reporting
In the earlier legacy version, we used to pass event details as event category, event action and event label. A few additions were optional, like event value and other custom dimensions.
In the case of GA 4, you can set the event scoped custom dimensions and custom metrics while setting up the event parameter in Google Tag Manager. You can then configure the GA4 console with the same parameter name you gave while setting up the custom event, and it will be reflected in the ‘Events’ reporting tab.
Remember we passed ‘button_name’ as an extra event parameter while setting up a custom button click event in GTM. Now let’s configure this parameter (custom dimension) in GA4. Follow the below steps to configure the event scoped custom dimension.
Step 1: Click on ‘Configure’ in the GA4 reporting menu.
Step 2: Click on ‘Custom Definitions’.
Step 3: Now click on ‘Create custom dimension’.
Step 4: An overlay will appear like below. Select the scope to ‘Event’, then add the dimension name as ‘Button Name’. Now select the parameter name from the dropdown under ‘Event parameter’. This is the name you’ll see in reports, so use a descriptive name. Click on ‘Save’.
Step 5: You can debug your custom parameter in real-time as well. Just click on the button on the webpage. Navigate to the GA4 console and click on the ‘All Events’ tab. You should be able to see the parameter name and its value as well:
Modify and create events in the analytics interface
Google Analytics 4 also provides the option to modify and create events in the analytics console only. Note that you can create or modify events based on the occurrence of other events and parameters.
Modify event:
You can modify existing events. For example, if you collect two different events (Event Name: Button Click 1 and Button Click 2), you can modify these events under one name as simple ‘Button Click’. You can also fix typos in event or parameter names, and you can modify event names and parameters as well.
To start event modification, follow the below steps.
Step 1: Go to your Analytics 4 property and click on ‘Configure’.
Step 2: Click on ‘Events’.
Step 3: Click on ‘Modify event’.
Step 4: An overlay will appear like the one below. Click on ‘Create’.
Step 5: Enter the modification name (new event name).
Step 6: Click on the parameter to define your condition. It will pop up a drop-down list with available parameters that can be modified.
Step 7: Since we are doing event name modification, I will choose the event_name parameter. Now click on ‘Operator’, where you will get another drop-down menu with different conditional operators.
In our case, we will use equals. Select ‘equals’ and in the value input box, enter the first event value to modify (Button Click 1).
Step 8: Now, under ‘Modify parameters’, you will see that ‘event_name’ is already present. Type the modification name you want in the input box under ‘New Value’. In our case, we will type ‘Button Click’
Step 9: Now click on ‘Create’.
Step-10: Now repeat the same steps from starting to create modifications for the second event, which is ‘Button Click 2’.
Congratulations!! You have successfully modified your events. You can go to the ‘All Events’ tab and check. Instead of Button Click 1 and Button click 2 events, there is just one ‘Button Click’ event.
Create Event:
Just like modifying an existing event, you can also create a new event from the existing events.
For example, suppose you already have a button click event on your home page banner and another button click event on your product category page with a promotional banner. If you want to fire a third event as ‘Promotion click’ when somebody clicks the banner button on the product page, you can use the create event function in GA4 and specify when it fires based on a parameter condition.
In this example, we are already tracking the button click event on the product page. So, we can use this condition in our parameter settings to create a new event as ‘Promotion click’.
The condition will be as below:
Event: Button Click
AND
Parameter: page_title = product_page
Follow the below steps to create a new event with these conditions.
Step 1: Go to your Analytics 4 property and click ‘Configure’.
Step 2: Click on ‘Events’.
Step 3: Click on ‘Create event’.
Step 4: An overlay will appear like below. Click on ‘Create’.
Step 5: The next steps are similar to the steps we performed while modifying the events. So, we will use the following configuration settings:
Custom Event Name: Promotion_Click
Matching Condition (Click on Add Condition)
Parameter 1: event_name equals ‘Button Click’
Parameter 2: page_title equals ‘Product_page’
Step 6: Click on ‘Create’.
Congratulations!! You have successfully created a new event. You can go to the ‘All Events’ tab and check if the ‘Promotion Click’ event appears.
So, that is how you set up event tracking in Google Analytics 4.
Other articles related to GA4 (Google Analytics 4)
Frequently asked questions about GA4 event tracking
What are events in Google Analytics 4 (GA4)?
An event is the user’s interaction/activity with a web page element embedded on a website and/or mobile app. Any user interactions with content from a web page or a screen load can be tracked as an event.
How are events configured in GA4 compared to GA3?
In the earlier legacy version of Google Analytics, every event needed to be configured separately, either using the global site tag (gtag.js) or Google Tag Manager (GTM). However, in the case of GA4, events are completely different and require a new setup since many of them come preconfigured. Google Analytics 4 can log many events automatically without any additional coding or tagging.
What are the categories of events in GA4?
There are four categories of events in GA4: #1 Automatically Collected Events #2 Enhanced Measurement Events #3 Recommended Events #4 Custom Events
What are the event parameters in GA4?
You can send additional information about an event in Google Analytics 4 via one or more parameters. There are three types of event parameters: #1 Automatically Collected Parameters – GA4 automatically collects these parameters #2 Custom Parameters – These are the parameters that you manually send along with an event. #3 User properties – They are like user scoped custom dimensions of Universal Analytics. They are used to describe the attributes of your website/app users.
Register for the FREE TRAINING...
"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."
Here’s what we’re going to cover in this training…
#1 Why digital analytics is the key to online business success.
#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.
#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.
#4 Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.
#5 The number 1 reason why conversion optimization is not working for your business.
#6 How to advertise on any marketing platform for FREE with an unlimited budget.
#7 How to learn and master digital analytics and conversion optimization in record time.
My best selling books on Digital Analytics and Conversion Optimization
Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.
Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.
Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.
Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
Learn and Master Google Analytics 4 (GA4) - 126 pages ebook
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.