GA4 is a new event driven data model which means that everything is an event, even page views.
It is also different from Universal Analytics in that it allows you to easily collect enhanced measurements. This means that besides pageviews, the GA4 site tag can also track Scrolls, Outbound Clicks, Site search, Video engagement, and File Downloads by default (which can be toggled on or off directly from inside of your Google Analytics account).
However, when you also want to track other advanced metrics with GA4, such as Button Clicks or Form Submissions, you can do so from inside the builder, as seen below.
NOTE: If you do not wish to use the native feature, you can also track Form Submissions and Button Clicks with custom code as explained in this guide.
1. First connect your page with the GA4 integration as seen here: https://d.pr/aBdVSI. The page needs to be integrated in order to assign custom events to different elements inside the builder.
2. Click on the element that you want to track inside your Google Analytics account and set up a redirect by clicking on Link setup > Outside URL/Landing pages
These elements can be:
- text elements (paragraph, headline)
Note: At the moment, you can track form submissions and link clicks, which have a redirect set up (Outside URLs and Landing Page: https://d.pr/i/DzWiaf). This will not work for on page redirects or pop-ups.
3. Once the redirect has been set, you will see the option to Assign a GA event. Here, you can put the name of your event, and if you want to, you can assign one or more parameters for this event, but it is not mandatory.
4. Save and update your page.
5. Debug your event to see if it is firing.
To do so, you can add your page URL to the Tag Assistant here: https://tagassistant.google.com/ and click on Connect. This will open your page in a debug version.
To see if the events are firing, you will need to click on Admin in your GA account. Then, under Property Settings, click on Data Display, and here you will have DebugView. Perform an action for which you have set the event (click the button, or the text element, etc.) on the debug page; in this view, you should see the event firing.