Conversion Tracking in GA4: The Complete Setup Guide for 2026
· 12 min · Technical Guide
Conversion tracking is the foundation of marketing analytics. Here's how to set it up properly in GA4 — from basic events to enhanced e-commerce, with Google Tag Manager.
Why Conversion Tracking Is the Foundation
Without proper conversion tracking, every marketing decision is guesswork. You can't calculate ROI, you can't optimize campaigns, and you can't identify what's working.
Yet over 40% of GA4 properties have misconfigured conversion tracking, according to industry audits. Common problems include missing events, duplicate counting, and events that fire on page load instead of actual user actions.
This guide walks you through setting up conversion tracking correctly in GA4 — for both e-commerce and lead generation sites.
Step 1: Define Your Conversions
Before touching any code, list every action that has business value:
For e-commerce sites: • Purchase completed • Add to cart • Begin checkout • Newsletter signup • Account creation
For lead generation sites: • Contact form submission • Demo request • Phone call click • PDF download • Free trial signup
Rule of thumb: Limit yourself to 5–8 conversion events. If everything is a conversion, nothing is. Mark secondary actions as regular events instead.
Step 2: Understand GA4's Event Model
GA4 uses an event-based data model. Every interaction is an event. Events can carry parameters (additional data).
There are four types of events:
Automatically collected events: page_view, first_visit, session_start — these work out of the box Enhanced measurement events: scroll, outbound_click, file_download, video_engagement — toggled on in GA4 settings Recommended events: purchase, add_to_cart, sign_up, generate_lead — Google suggests names and parameters Custom events: Anything specific to your business
Important: Always use Google's recommended event names when applicable. This ensures compatibility with GA4's built-in reports, audiences, and predictive metrics.
Step 3: Set Up Google Tag Manager (GTM)
While you can implement events directly in GA4, Google Tag Manager gives you more control and makes maintenance easier.
Install GTM
Add the GTM container snippet to your site's <head> and <body> tags. If you're using a CMS like WordPress, use a plugin like "Google Tag Manager for WordPress."
Create Your GA4 Configuration Tag
In GTM, create a new tag → Google Analytics: GA4 Configuration Enter your Measurement ID (starts with G-) Set the trigger to "All Pages" Save and publish
Create Event Tags
For each conversion, create a GA4 Event tag:
Example: Form submission
Tag: • Type: Google Analytics: GA4 Event • Configuration Tag: (your GA4 config) • Event Name: generate_lead • Parameters: form_name = {{Form Name Variable}}
Trigger: • Type: Form Submission • Conditions: Page URL contains /contact
Step 4: Configure E-commerce Tracking
GA4's enhanced e-commerce tracking requires a data layer — a JavaScript object that passes product and transaction data to GTM.
Data Layer for Product Views
``javascript dataLayer.push({ event: 'view_item', ecommerce: { currency: 'EUR', value: 49.99, items: [{ item_id: 'SKU-12345', item_name: 'Product Name', price: 49.99, item_category: 'Category', quantity: 1 }] } }); `
Data Layer for Purchases
`javascript dataLayer.push({ event: 'purchase', ecommerce: { transaction_id: 'T-98765', value: 149.97, tax: 24.99, shipping: 5.99, currency: 'EUR', items: [ { item_id: 'SKU-12345', item_name: 'Product A', price: 49.99, quantity: 2 }, { item_id: 'SKU-67890', item_name: 'Product B', price: 49.99, quantity: 1 } ] } }); `
GTM Tags for E-commerce
Create a GA4 Event tag for each e-commerce event (view_item, add_to_cart, begin_checkout, purchase). Enable "Send Ecommerce data" in the tag configuration to automatically read from the data layer.
Step 5: Mark Events as Conversions in GA4
Once your events are firing, go to GA4:
Admin → Events → Find your event Toggle the "Mark as conversion" switch Wait 24–48 hours for data to appear in reports
In GA4 since 2024: Events marked as conversions are now called "Key Events." The functionality is the same — only the label changed in the interface.
Step 6: Verify Your Setup
Use GA4 DebugView
Install the Google Analytics Debugger Chrome extension Enable debug mode Go to GA4 → Admin → DebugView Perform the conversion action on your site Verify the event appears with correct parameters