๐Ÿ“ŠAnalytics & Tracking

Setting Up Conversion Tracking with Google Tag Manager and GA4: A Complete Guide

Published 26 March 2026
11 min read
18 views

Why Conversion Tracking Matters

Without conversion tracking, you're making marketing decisions based on guesswork. You might know how much traffic your website gets, but not which channels, campaigns, or pages actually drive revenue.

According to a 2025 Semrush study, 73% of marketing teams struggle with GA4 setup โ€” which means the majority of businesses are either tracking incorrectly or not tracking at all. Getting this right gives you a significant competitive advantage.

Proper conversion tracking answers the questions that matter:

  • Which marketing channels generate the most leads or sales?
  • What's the actual ROI of your ad spend?
  • Where do visitors drop off in your sales funnel?
  • Which pages and content drive the most valuable actions?

The Modern Tracking Stack

In 2026, a complete tracking setup typically consists of three components:

  1. Google Tag Manager (GTM) โ€” A container that manages all your tracking codes in one place without requiring developer involvement for every change
  2. Google Analytics 4 (GA4) โ€” Your analytics platform that collects, processes, and reports on user behaviour
  3. Platform-specific pixels โ€” Meta Pixel, LinkedIn Insight Tag, Google Ads conversion tags, etc.

GTM is the central hub. Instead of adding tracking codes directly to your website, you add them through GTM โ€” making management, debugging, and updates dramatically easier.


Step 1: Setting Up Google Tag Manager

Installation

  1. Create a GTM account at tagmanager.google.com
  2. Create a container for your website (one per domain)
  3. Add the GTM code snippets to your website:
    • The first snippet goes in the <head> section of every page
    • The second snippet goes immediately after the opening <body> tag
  4. Verify installation using the GTM Preview mode or the Tag Assistant Chrome extension

GTM Concepts

  • Tags: Pieces of code that fire on your site (e.g., GA4 tracking, Meta Pixel, Google Ads conversion)
  • Triggers: Conditions that determine WHEN a tag fires (e.g., page load, button click, form submission)
  • Variables: Dynamic values used by tags and triggers (e.g., page URL, click text, form field values)
  • Data Layer: A JavaScript object that passes information from your website to GTM

Best Practices

  • Use a consistent naming convention: [Tag Type] - [Description] (e.g., "GA4 - Page View", "Meta - Purchase Event")
  • Always test in Preview mode before publishing
  • Use version notes when publishing to document what changed
  • Create a folder structure to organise tags by platform or purpose

Step 2: Configuring GA4

Creating the GA4 Tag in GTM

  1. In GTM, create a new tag of type "Google Analytics: GA4 Configuration"
  2. Enter your GA4 Measurement ID (starts with G-)
  3. Set the trigger to "All Pages"
  4. Publish the container

This sends a page_view event to GA4 every time someone loads a page on your site.

GA4's Event-Based Model

Unlike the old Universal Analytics (which tracked pageviews and sessions), GA4 tracks everything as events. Understanding the event hierarchy is crucial:

  • Automatically collected events: page_view, first_visit, session_start โ€” these work out of the box
  • Enhanced measurement events: scroll, outbound_click, site_search, video_engagement, file_download โ€” toggle these on in GA4 settings
  • Recommended events: add_to_cart, purchase, sign_up, generate_lead โ€” you set these up manually following Google's naming conventions
  • Custom events: Any event specific to your business that doesn't fit the categories above

Key GA4 Settings to Configure

  1. Enhanced Measurement: Go to Admin > Data Streams > your stream > Enhanced Measurement. Enable scroll tracking, outbound clicks, site search, video engagement, and file downloads
  2. Data Retention: Go to Admin > Data Settings > Data Retention. Set to 14 months (the maximum) for more historical data
  3. Google Signals: Enable under Admin > Data Settings > Data Collection for cross-device tracking
  4. Conversions: Mark your most important events as conversions (called Key Events in GA4)

Step 3: Tracking Key Conversions

Form Submissions

Form submissions are the most common conversion for service-based businesses. Here's how to track them:

Method 1: Thank You Page (Simplest)

  1. Create a redirect to a thank-you page after form submission (e.g., /thank-you)
  2. In GTM, create a GA4 Event tag with event name generate_lead
  3. Set the trigger to fire on Page View where Page URL contains /thank-you

Method 2: Form Submission Trigger (More Flexible)

  1. In GTM, enable the built-in Form Submission variable
  2. Create a trigger: Trigger Type = Form Submission, filter by form ID or page URL
  3. Create a GA4 Event tag with event name generate_lead using this trigger

Method 3: Data Layer Push (Most Reliable)

  1. Have your developer push an event to the data layer when the form submits successfully:
dataLayer.push({
  event: 'form_submission',
  form_name: 'contact_form',
  form_location: 'homepage'
});
  1. In GTM, create a Custom Event trigger listening for form_submission
  2. Create a GA4 Event tag that fires on this trigger

Phone Calls

  • Track clicks on phone number links using a Click trigger filtered by tel: in the Click URL
  • Event name: phone_call or use the recommended contact event
  • Consider using a call tracking service (like CallRail or CallTrackingMetrics) for more detailed attribution

Button Clicks

  1. Enable built-in Click variables in GTM (Click Element, Click Classes, Click ID, Click Text, Click URL)
  2. Use GTM Preview mode to identify the click attributes of your target button
  3. Create a Click trigger filtered by the button's unique identifier (ID, class, or text)
  4. Fire a GA4 Event tag with a descriptive event name

E-Commerce Tracking

For online stores, GA4 e-commerce tracking provides revenue attribution:

Key e-commerce events:

  • view_item โ€” product page viewed
  • add_to_cart โ€” item added to cart
  • begin_checkout โ€” checkout process started
  • purchase โ€” transaction completed

Each event requires specific parameters (item name, price, quantity, transaction ID). Most e-commerce platforms (Shopify, WooCommerce, Squarespace) have built-in GA4 integrations or plugins that handle this automatically.

For custom implementations, push e-commerce data to the data layer:

dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T12345',
    value: 149.99,
    currency: 'NZD',
    items: [{
      item_id: 'SKU001',
      item_name: 'Website Audit',
      price: 149.99,
      quantity: 1
    }]
  }
});

Step 4: Google Ads Conversion Tracking

If you're running Google Ads, proper conversion tracking is essential for Smart Bidding to work effectively.

Setting Up via GTM

  1. In Google Ads, go to Goals > Conversions > New conversion action > Website
  2. Choose "Use Google Tag Manager" and copy the Conversion ID and Conversion Label
  3. In GTM, create a new "Google Ads Conversion Tracking" tag
  4. Enter the Conversion ID and Label
  5. Set the trigger to fire on your conversion event (e.g., thank you page, purchase)

Importing GA4 Conversions into Google Ads

Alternatively, you can import GA4 key events directly into Google Ads:

  1. Link your GA4 property to Google Ads (GA4 Admin > Product Links > Google Ads)
  2. In Google Ads, go to Goals > Conversions > Import > Google Analytics 4
  3. Select the events you want to import

Important: Don't double-count. If you use GA4 event imports, set any native Google Ads conversion tags for the same actions to "Secondary" (not "Primary").

Enhanced Conversions

Enhanced conversions improve tracking accuracy by sending hashed first-party data (email, phone, address) alongside conversion tags. This helps Google match conversions even when cookies are blocked.

  1. Enable Enhanced Conversions in your Google Ads conversion settings
  2. Configure via GTM by mapping user-provided data fields
  3. This is increasingly important as third-party cookies phase out

Step 5: Meta (Facebook/Instagram) Pixel Setup

Installation via GTM

  1. Get your Meta Pixel ID from Events Manager
  2. In GTM, use the "Custom HTML" tag type to add the Meta Pixel base code
  3. Set trigger to "All Pages" for the base PageView event
  4. Create additional Custom HTML tags for specific events (Lead, Purchase, etc.)

Conversions API (CAPI)

For more reliable tracking, implement the Meta Conversions API alongside the Pixel:

  • Server-side tracking that isn't affected by ad blockers or browser privacy settings
  • Set up through your platform's integration (Shopify, WordPress plugins) or via a server-side GTM container
  • Use event deduplication (matching event IDs) to prevent double-counting between Pixel and CAPI

Step 6: Debugging and Validation

Tracking that fires incorrectly is worse than no tracking at all โ€” it leads to bad decisions.

GTM Preview Mode

  • Click "Preview" in GTM to enter debug mode
  • Navigate your site and see exactly which tags fire on each interaction
  • Check that tags fire on the correct triggers with the right variables
  • Verify the data being sent in each tag

GA4 DebugView

  • Enable debug mode by installing the GA4 Debugger Chrome extension
  • In GA4, go to Admin > DebugView to see events arriving in real-time
  • Verify event names, parameters, and user properties are correct

GA4 Realtime Report

  • Go to Reports > Realtime to see events as they occur
  • Useful for verifying that events are being received (but less detail than DebugView)

Common Issues and Fixes

| Issue | Cause | Fix | |-------|-------|-----| | Tag not firing | Trigger conditions not met | Check trigger filters in Preview mode | | Duplicate events | Multiple tags firing for same action | Review triggers for overlap, add exclusions | | Missing event parameters | Variables not configured | Check variable setup in GTM | | Events showing in GTM but not GA4 | Measurement ID mismatch | Verify GA4 Configuration tag has correct ID | | Conversion count discrepancy | Attribution differences between platforms | Different platforms use different attribution windows โ€” this is normal |


Step 7: Building Conversion Reports in GA4

Once tracking is in place, set up reports that answer your key business questions.

Key Reports to Build

  1. Traffic Acquisition + Conversions: Which channels drive the most valuable traffic?

    • Reports > Acquisition > Traffic Acquisition > Add "Key Events" column
  2. Landing Page Performance: Which pages generate the most conversions?

    • Reports > Engagement > Landing Page > Add conversion metrics
  3. Conversion Funnel: Where do users drop off in your sales process?

    • Explore > Funnel Exploration > Define your funnel steps
  4. User Journey: What paths do converters take through your site?

    • Explore > Path Exploration > Set conversion event as the endpoint

Custom Audiences

Create audiences in GA4 for remarketing:

  • Visitors who viewed specific product/service pages but didn't convert
  • Users who started but didn't complete a form
  • Past purchasers (for cross-sell campaigns)
  • High-engagement users (visited 3+ pages, spent 2+ minutes)

These audiences can be shared with Google Ads for targeted remarketing campaigns.


Conversion Tracking Checklist

Use this checklist to ensure your tracking setup is complete:

  • [ ] GTM installed and verified on all pages
  • [ ] GA4 Configuration tag firing on all pages
  • [ ] Enhanced Measurement enabled in GA4
  • [ ] Form submissions tracked as events
  • [ ] Phone call clicks tracked
  • [ ] Key button clicks tracked
  • [ ] E-commerce events configured (if applicable)
  • [ ] Key events marked as conversions in GA4
  • [ ] Google Ads conversion tracking set up (if running ads)
  • [ ] Meta Pixel installed (if running Meta ads)
  • [ ] All events validated in GTM Preview mode
  • [ ] Events confirmed arriving in GA4 DebugView
  • [ ] Data retention set to 14 months
  • [ ] Key reports and dashboards created
  • [ ] Conversion data shared with relevant ad platforms

Maintaining Your Tracking

Conversion tracking isn't set-and-forget. Schedule regular audits:

  • Monthly: Verify key conversion events are still firing correctly
  • Quarterly: Review conversion data for anomalies or drops that might indicate broken tracking
  • After any website changes: Test that tracking still works whenever pages, forms, or checkout processes are modified
  • Annually: Review your entire tracking setup against business goals โ€” add new events for new objectives, remove obsolete ones

Reliable data is the foundation of every good marketing decision. Invest the time to set up tracking properly, and every marketing dollar you spend afterwards will be more effective because of it.

RELATED TOPICS

conversion trackinggoogle tag managerGA4google analyticsevent trackinge-commerce trackinggoogle ads conversions

Related Articles

Funnel Analysis: Finding and Fixing Where You're Losing Customers

You're driving traffic. People are visiting your site. But somewhere between the first click and the final conversion, most of them disappear. Funnel analysis shows you exactly where โ€” and more importantly, why.

11 min read

Customer Lifetime Value: The Metric That Should Be Driving Every Marketing Decision

You spent $200 acquiring a customer who made a $150 purchase. Looks like a loss. But that customer bought again 4 more times over 3 years, spending $2,400 total. Suddenly that $200 acquisition cost looks like a bargain. CLV changes how you think about every dollar you spend.

10 min read

Server-Side Tracking: Why Your Analytics Data Is Incomplete and How to Fix It

Ad blockers strip your tracking. Safari deletes your cookies after 7 days. Privacy regulations restrict what you can collect. If you're relying solely on client-side tracking in 2026, you're missing 20-40% of your data. Server-side tracking reclaims it.

9 min read

Need Help Implementing This?

Our team at Tiberius specializes in analytics & tracking and can help you achieve your goals.