[GA4] How to measure key events with Google Analytics

This article continues from How to report on your lead generation form and shows how to use Google Analytics to measure lead-generation form submissions as key events.

Understand key events

Whenever someone performs an action that's meaningful to your business, you can measure the action as a key event. In this case, customers filling out the lead-generation form is an important, meaningful action to the business that you could measure as a key event.

By measuring the form submissions as a key event, you will be able see the different paths users take before filling out the form, unlock new metrics (or data points) in Google Analytics (for example, the key event rate), and advertise to people who filled out the form or didn't fill out the form.

Measure lead form submissions

You can measure any action as a key event so long as you have an event for the action. For example, to measure when someone submits the lead-generation form as a key event, you need to create an event for when someone fills out the form.

Earlier in this series, you learned about some of the events that Google Analytics collects from your website automatically when you set up the measurement code on your website.

However, while Google Analytics measures form submissions in general automatically, you need an event for when someone submits the specific form you've created, rather than measuring all form submissions as key events. Then you need to mark that new event as a key event.

Create the event

Google Analytics measures when someone submits any form using the form_submit event. To create an event for when someone submits the specific form, go to Google Analytics and click Admin on the left.

You will see Events in the list of options under Data display. The Events page also allows you to create and modify events. (Note that you can also create and modify events through measurement code or by making some changes in Google Tag Manager, but for this tutorial, we'll use the Events page.)

Since you only want to measure when someone submits the new form, you need to create an event that copies the form_submit event and then narrow the new event to just measure when someone submits the form.

To create the event:

  1. In Admin, under Data Display, click Events.
    Note: The previous link opens to the last Analytics property you accessed. You can change the property using the property selector. You must be a Marketer or above at the property level to create an event.
  2. On the Events page, click Create event and then Create on the top right.
  3. In the Custom event name field, enter "lead_form_submit".
  4. In the Matching conditions field, enter the condition "event_name equals form_submit".
  5. Click Add condition.
  6. Enter the condition "form_name equals lead-form".
    This value comes from the HTML name attribute of the <form> DOM element.
  7. Click Create on the top right.

The new event will appear in the list of events on the Events page when you start to collect data for the event. The event will only be sent to Google Analytics when a form is submitted with the name "lead-form".

Mark the event as key events

You now need to measure the event as a key event. All you need to do to measure an event as a key event is to toggle the Mark as key event option on for the event. Since the event is new, Google Analytics doesn't have data for the event, so you need to preemptively mark the event as a key event.

To preemptively mark the event as a key event:

  1. In Admin, under Data Display, click Key events.
    Note: The previous link opens to the last Analytics property you accessed. You can change the property using the property selector. You must be a Marketer or above at the property level to mark an event as a key event.
  2. Click New key event.
  3. Enter the name of the new event, "lead_form_submit".
  4. Click Save.

Google Analytics now knows to treat the new event as a key event when it receives the event.

See the event in reports

The Realtime report is available in the Reports section, and it shows you what users are doing on your website as they browse your website. The Event count by Event name card in the report shows you the events that Google Analytics has collected in the last 30 minutes from your website.

When someone submits the form, you should now see the lead_form_submit event in the Event count by Event name card. You should also see the event in the Key events by Event name card in the same report.

If you don't see the event, you might need to wait a little longer for Google to process the event, or review the previous steps to make sure you set up the event correctly.

Once Analytics processes your events as key events, you can use reports and explorations to further investigate your key event data. We will talk more about the reports in the coming articles, but you can learn more about the reports in Report on key events.

Next: How to advertise to unconverted users

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
4157417597297898975
true
Search Help Center
true
true
true
true
true
69256
true
false