serkankaya.
Türkçe sürüm
Let’s work together ↗

GA4 Conversion Tracking: Event Design and Key Events

How do you set up GA4 conversion tracking? Event plan, marking key events, parameters, GTM dataLayer examples, DebugView testing and common mistakes.

GA4 conversion tracking means designing an event that measures a valuable action on your site, marking it as a key event in Google Analytics 4 and, if needed, turning it into a conversion for Google Ads. The real work is not the marking. It is sending the right event at the right moment with the right parameters. Measurement is ready when the event shows up in DebugView with the expected values.

In this article I explain the difference between events, key events and conversions in GA4, how to build an event plan and how to set it up with Google Tag Manager (GTM). At the end I share the testing steps, the mistakes I see most often and my pre-launch checklist.

What is the difference between a conversion and a key event in GA4?

In GA4, a key event is the event that measures a valuable action in Analytics reports, while a conversion is a record created from a key event and used to measure ad campaigns and optimize the bidding strategy. Google made this distinction to unify how conversions are defined across Google Ads and Analytics.[1] Events that used to be marked as conversions in GA4 are now called key events.

Event Key event Conversion Google Ads bidding
Every key event is an event, and every conversion is created from a key event.

In practice this means the following: marking an event as a key event in GA4 highlights it in behavioral reports. For the event to become a bidding signal in Google Ads, it also has to be turned into a conversion. According to Google’s help page, this conversion can be created either from GA4 or from Google Ads.[1] I covered the Google Ads side in detail in my Google Ads conversion tracking article.

Google also states openly that the numbers on the two platforms can differ. The settings that cause differences include the attribution model, the channels that can receive credit, the conversion window and the counting method.[1] So instead of trying to match GA4 and Google Ads reports one to one, I recommend documenting the settings on both sides.

What types of events are there in GA4?

GA4 has four event types: automatically collected events, enhanced measurement events, recommended events and custom events. Conversion design starts with deciding which of these types reliably measures the business outcome.

TypeExampleSuitability for conversions
Automatically collectedpage_view, session_start, first_visitNot suitable on its own, fires on every visit
Enhanced measurementscroll, file_download, form_submitMeasures intent, does not confirm success
Recommendedgenerate_lead, sign_up, purchaseBest fit, name and parameters defined by Google
Customappointment_request, whatsapp_clickUsed when no recommended name exists

Automatically collected events arrive on their own once the Google tag is installed. Enhanced measurement events are switched on and off in the data stream settings. A recommended event is one whose name and parameters Google has defined in advance. Inventing your own name for an action that already has a match in Google’s recommended events list means giving up built-in reports and integrations.

I reserve custom events for actions that have no match in the recommended list. In health tourism, for example, the step where a patient uploads photos to request a pre-assessment has no ready-made equivalent. In that case I set a consistent naming rule and use a custom event.

How do you build an event plan for GA4 conversion tracking?

An event plan is a table that lists, for every action to be measured on the site, the event name, the moment it fires, its parameters and whether it will be a key event. Writing this table before the setup prevents naming mistakes that are hard to change later. I get the plan approved together with the marketing, development and sales teams.

ActionEvent nameWhen it firesParametersKey event?
Lead form submissiongenerate_leadWhen the server accepts the formform_name, value, currencyYes
PurchasepurchaseWhen payment is confirmedtransaction_id, value, currency, itemsYes (default)
WhatsApp button clickwhatsapp_clickOn clickbutton_locationDepends
Form startform_startFirst field interactionform_nameNo

An event parameter is a name-value pair added to an event that carries extra information about the action. form_name or transaction_id are examples. To see a parameter in reports, you need to define it as a custom dimension in GA4.

When writing the plan, you need to account for GA4’s limits. According to Google’s collection limits, an event name can be at most 40 characters. An event can carry up to 25 parameters, and a parameter value is generally limited to 100 characters.[3] Data that exceeds the limit is not processed. Google also notes that if an event longer than 40 characters is marked as a key event, it will not be reported as a key event.[3]

The number of key events is limited too. Standard properties can mark up to 30 events as key events, and Analytics 360 properties up to 50.[2] The purchase event is a key event by default.[2] For me, this limit is a discipline tool: I only mark actions that correspond to a business outcome.

How do you set up GA4 conversion tracking?

Short answer

How do you set up GA4 conversion tracking?

To set up GA4 conversion tracking, first define the action to measure and its event name. When the action completes, the site pushes an event to the dataLayer, and GTM forwards it to GA4. The event is verified in DebugView and marked as a key event in the admin panel. If ad optimization is needed, it is turned into a conversion in Google Ads.

  1. Write the actions to measure into an event plan
  2. Push an event to the dataLayer when the action completes
  3. Create a Google Analytics event tag in GTM
  4. Test the event in DebugView
  5. Mark it as a key event in the GA4 admin panel
  6. Turn it into a conversion in Google Ads if needed

The foundation of the setup is the site pushing an event to the data layer (dataLayer) when the action is completed. GTM catches this event with a custom event trigger and forwards it to GA4 with a Google Analytics event tag. For a lead form, the code pushed to the data layer can look like this:

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'generate_lead',
  form_name: 'pre_assessment',
  value: 1,
  currency: 'TRY'
});

This code should run not when the button is clicked, but when the server accepts the form and returns a success response. A submission that fails form validation is not a lead. The enhanced measurement form_submit event, on the other hand, does not wait for a success confirmation. That is why I do not use it for leads.

The purchase event in ecommerce

In ecommerce, the main conversion is the purchase event sent when payment is confirmed. In the example in Google’s ecommerce measurement guide, this event carries the transaction_id, value, currency and items fields.[5] When working with GTM, you need to clear the previous ecommerce object before pushing the new event:

window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T-10482',
    value: 1250.00,
    currency: 'TRY',
    items: [{ item_id: 'SKU-1042', item_name: 'Product name', price: 1250.00, quantity: 1 }]
  }
});

The value field should be read from the actual order amount. Giving every order a unique transaction_id lets you tell apart an event that is sent again when the thank-you page is refreshed. On ready-made platforms such as Shopify, this event is usually sent by the integration. Before sending the same event through GTM as well, check which source already produces the purchase event.

Creating events without code

If you have no access to a developer, you can derive a new event from an existing one in GA4. According to Google’s guide to creating events, you can create a new event from the page_view event based on the thank-you page URL and mark it as a key event. This method is quick, but it also counts when the page is opened directly or refreshed. I use it as a temporary solution until development time is available.

Fragile setup

  • The lead fires when the form button is clicked
  • The thank-you page page_view is made a key event
  • Event names are written differently on each page
  • value and currency are not sent

Robust setup

  • The lead fires when the server accepts the form
  • The event comes directly from the dataLayer
  • Recommended names and a single naming rule are used
  • value and currency are sent with every key event
A key event is only as reliable as the moment it fires.

How do you mark a key event and choose the counting method?

A key event is marked in the GA4 admin panel, under Data display in the Events section, by clicking the star icon next to the event name. According to Google, this requires at least the Marketer role at the property level.[2] A new event that has not received data yet can also be defined as a key event in advance.[2]

Marking does not change historical data; it only affects data from that point on. Google says it can take up to 24 hours for a key event to appear in standard reports.[2] Realtime reports, on the other hand, update within a few minutes. Unmarking an event also does not delete key event data collected in the past.[2]

When you create a new key event, you choose a default value and a counting method.[2] The counting method has two options: count every event, or count once per session. For purchases, counting every event is right, because one session can contain two separate orders. On a lead generation site, a second form in the same session is often not a new request; counting once per session can make more sense there.

How do you test GA4 conversion tracking?

GA4 conversion tracking is tested by enabling debug mode, performing the action yourself and seeing the event with its parameters in DebugView. According to Google, debug mode for your own device is enabled with Tag Assistant or GTM preview mode.[4] DebugView sits in the admin panel under Data display.

The DebugView screen has three columns. The middle stream shows the events of the last 60 seconds, and the left stream shows the last 30 minutes.[4] Clicking an event shows the parameters that were sent. Here, check that the value, currency and transaction_id fields arrive with the expected values.

There is one trap I run into often during testing. According to Google, on a site using consent mode, events do not appear in DebugView if the visitor has not consented to Analytics cookies.[4] Accept the cookie banner before you test. I explained how consent management affects GA4 in my Consent Mode v2 article.

Common GA4 conversion tracking mistakes

In the GA4 setups I audit, mistakes usually fall into a few recurring patterns:

  • Every event is a key event. Intent events such as scroll and form start get mixed up with business outcomes.
  • Firing that does not confirm success. The lead fires on a button click, so forms that fail validation are counted too.
  • Double source. A platform integration and GTM both send the same purchase event.
  • Inconsistent names. The same action is sent with different names on different pages and gets split in reports.
  • Missing parameters. value and currency are not sent, so revenue and value reports stay empty.
  • Double counting in GA4 and Google Ads. The same sale is both imported from GA4 and counted as primary by the Google Ads tag.

Browser restrictions and ad blockers also stop some events from ever reaching GA4. The way to reduce measurement loss is to send events through a server-side tracking setup. I shared the setup steps in my server-side GTM setup article. For sites that collect leads mainly through WhatsApp, the WhatsApp conversion tracking article also helps.

GA4 conversion tracking pre-launch checklist0/8

Conclusion

GA4 conversion tracking starts by separating the event, key event and conversion layers. Write an event plan first, use recommended event names and tie each event to the moment the action is actually completed. Then test in DebugView and mark only the events that measure a business outcome as key events.

The next step is carrying these key events correctly over to the advertising side. I explain how I set up measurement together with ad accounts on my performance marketing page.

Key terms

Key event
Key event is a GA4 event that measures an action particularly valuable to the success of the business and is tracked separately in reports. Its former name was a GA4 conversion. Any event can be marked as a key event with the star icon in the admin panel.
Event parameter
Event parameter is a name-value pair added to a GA4 event that carries extra information about that action. Examples include value, currency, form_name and transaction_id. An event can carry up to 25 parameters; to use one in reports you need to define a custom dimension.
Recommended event
Recommended event is a GA4 event whose name and parameters Google has defined in advance and which is sent with fixed names such as generate_lead, sign_up or purchase. Data sent with these names works better with built-in reports and linked products such as Google Ads.
DebugView
DebugView is a GA4 testing screen that shows, in real time, the events and user properties coming from a device with debug mode enabled. It lists the event streams of the last 60 seconds and the last 30 minutes and is used to verify parameters during setup.

Frequently asked questions

Are conversions and key events the same thing in GA4?

No. A key event is an event that measures a valuable action for the business and is highlighted in GA4 reports. A conversion is a record created from a key event and used to measure ad campaigns and optimize bidding. The flow goes from event to key event to conversion.

How many events can be marked as key events in GA4?

According to Google, standard GA4 properties can mark up to 30 events as key events, and Analytics 360 properties up to 50. The purchase event is a key event by default. Because of this limit, you should mark only the events that match a real business outcome, not every event.

Why doesn't the key event I marked show up in GA4 reports?

Google says it can take up to 24 hours for a newly marked key event to appear in standard reports. Marking an event does not change historical data; it only affects data from that point on. Realtime reports, on the other hand, update within a few minutes.

Can I track GA4 conversions with a thank-you page?

Yes. In GA4 you can create a new event from the page_view event based on the thank-you page URL and mark it as a key event. This method needs no code. Because it also counts page refreshes and direct visits, I treat it as a temporary solution.

Why don't events show up in DebugView?

DebugView only shows events from devices with debug mode enabled, which Tag Assistant or GTM preview mode provides. According to Google, on a site using consent mode, events do not appear in DebugView if the visitor has not consented to Analytics cookies. Accept the cookie banner before testing.

Sources

  1. Google Analytics Help: Conversions vs. key events
  2. Google Analytics Help: Mark events as key events
  3. Google Analytics Help: Event collection limits
  4. Google Analytics Help: Monitor events in DebugView
  5. Google for Developers: Measure ecommerce (GA4)