How to Set Up Conversion Tracking with GA4 and Google Tag Manager

Track every lead, booked call and sale you actually care about: a measurement plan, Google Tag Manager, Consent Mode v2, dataLayer events for forms, bookings and phone clicks, GA4 key events, Google Ads import and the debugging steps that prove it works.

By · 27.11.2026

Ask a business owner how many leads their website produced last month and you usually get one of three answers: a guess, a number from the CRM that nobody can tie back to a marketing channel, or a GA4 report full of form_submit events that are clearly too many. Meanwhile the ad budget keeps running, optimised by Google against signals that are wrong or missing.

Conversion tracking fixes that. Done properly, you know which channel, campaign and page produced each lead or booked call, Google Ads bids for the visitors who actually convert, and your business dashboard shows a cost per lead you can trust. This guide is a build-along: by the end you will have Google Tag Manager installed, Consent Mode v2 wired to a cookie banner, reliable events for form submissions, booked calls, phone and email clicks, those events marked as key events in GA4, imported into Google Ads, and verified end to end. It is the same setup we install for clients before we build any dashboard or automation on top of their marketing data.

Copy & paste

Start here: plan it with AI

Copy this prompt into any LLM or coding agent (Claude, ChatGPT, Cursor …) to apply this guide to your own project.

Guide: https://blackcard.dev/guides/how-to-set-up-conversion-tracking-with-ga4
Markdown version (fetch this for the full method): https://blackcard.dev/guides/how-to-set-up-conversion-tracking-with-ga4.md

I want to set up conversion tracking with GA4 and Google Tag Manager, following the guide "How to Set Up Conversion Tracking with GA4 and Google Tag Manager" from blackcard.dev.

The method in short: 1) write a measurement plan first: 3-6 business outcomes (leads, booked calls, purchases, phone clicks) mapped to GA4 recommended event names such as generate_lead, with parameters and a value; 2) install one GTM container and remove any hard-coded gtag snippets; 3) set Consent Mode v2 defaults (ad_storage, ad_user_data, ad_personalization, analytics_storage) to denied before any tag, and update them from the cookie banner; 4) push dataLayer events from the code only when the outcome really happened (after a successful form response, from the booking tool's confirmation event), not from page views or clicks on submit buttons; 5) in GTM, map each dataLayer event to a GA4 event tag; 6) mark only the real outcomes as key events in GA4 and import them into Google Ads; 7) verify every event in GTM Preview, Tag Assistant and GA4 DebugView, then compare a week of GA4 numbers with the CRM.

Before suggesting anything, interview me one question at a time:
1. What is my website platform (Next.js, WordPress, Webflow, Shopify, custom) and can I edit code?
2. What counts as a conversion for my business: which forms, booking tools, phone numbers, emails, purchases?
3. Which tools are already installed (GA4, GTM, Google Ads, Meta pixel, LinkedIn Insight, a cookie banner)?
4. Do I have visitors from the EU/EEA, UK or Switzerland, and which consent tool do I use?
5. Do I run paid ads, and on which platforms?
6. Where do leads end up afterwards (CRM, inbox, spreadsheet)?

Then give me: a measurement plan table (business outcome, GA4 event name, trigger source, parameters, key event yes/no, value), a list of what to remove or fix in my current setup, and the order of implementation.

How conversion tracking actually works

Before touching any tool, it helps to see the whole chain, because most broken setups fail at one specific link:

  1. Something meaningful happens on the site. A visitor submits a contact form and the server accepts it. A booking is confirmed in an embedded scheduler. Someone taps your phone number.
  2. Your site announces it in the dataLayer. The dataLayer is a plain JavaScript array that Google Tag Manager watches. Your code pushes a small object into it — { event: "generate_lead", form_name: "contact" } — at the exact moment the outcome is confirmed.
  3. Google Tag Manager reacts. A trigger listens for that event name, and a tag sends it to GA4 (and, if you want, to Google Ads, Meta or LinkedIn), with the parameters you pass along.
  4. Consent Mode decides what may be stored. If the visitor has not consented, Google tags send cookieless signals instead of setting cookies, and Google models the missing conversions. If they consented, full data flows.
  5. GA4 counts the event as a key event. "Key event" is GA4's current name for what used to be called a conversion (renamed in 2024). Key events are what your reports, attribution and Google Ads optimise towards.
  6. Google Ads imports the key event and uses it to bid for visitors similar to the ones who converted.

The most important design choice in this whole guide is in step 2: events come from your code at the moment of truth, not from guesses in Tag Manager. Tag Manager's built-in "form submission" and "click" triggers fire when someone presses a button, not when the lead actually arrived — failed validation, spam and double-clicks all count. That is why so many GA4 properties show more "conversions" than there are leads in the inbox.

What you need before you start

  • A Google account with edit access to your GA4 property (or permission to create one) and to Google Tag Manager. If you run ads, admin access to Google Ads.
  • The ability to edit your site's code or theme. You need to add a snippet to every page and a few lines of JavaScript to forms and booking widgets. On WordPress or Webflow this is possible through theme files or custom code fields; on a custom or Next.js site through the codebase.
  • A consent management platform (CMP) if any of your visitors are in the EU/EEA, UK or Switzerland. Google requires Consent Mode v2 signals for ads measurement and remarketing in the EEA, and data protection law (in Germany the TDDDG together with GDPR) requires consent before non-essential cookies are set. Google-certified CMPs such as Cookiebot, Usercentrics, OneTrust or CookieYes integrate with Tag Manager through ready-made templates. This guide is not legal advice; have your privacy policy reviewed.
  • Chrome with the Tag Assistant companion extension, for debugging.
  • A list of where leads end up (CRM, inbox, booking tool) so you can reconcile numbers at the end.

Time estimate: a lead-generation site with one or two forms, a booking widget and a phone number takes one to two days including testing. A shop with checkout, several ad platforms and server-side tagging takes one to three weeks. GA4's standard reports need 24–48 hours to fill, so plan the final verification for a few days after launch.

Cost: GA4 and Google Tag Manager are free. A CMP costs from €0 (small sites on free tiers) to roughly €10–€100 per month depending on traffic and domains. Server-side tagging, covered at the end as an optional upgrade, adds roughly €20–€150 per month for hosting.

Step 1: Write a measurement plan

A measurement plan is a one-page table that decides what you track before anyone opens Tag Manager. It prevents the two classic failures: tracking everything (so nothing stands out) and naming the same thing three different ways.

Start from business outcomes, not from what is easy to click. For a typical service business it looks like this:

Business outcomeGA4 event nameFired fromKey parametersKey eventValue
Contact form sent successfullygenerate_leadForm success handler (after server response)form_name, lead_typeYesAverage lead value, e.g. 150 EUR
Sales call bookedbook_callBooking widget confirmation eventbooking_tool, call_typeYese.g. 400 EUR
Phone number tappedclick_phoneClick on a tel: linklink_url, placementOptionale.g. 50 EUR
Email address clickedclick_emailClick on a mailto: linklink_url, placementNonone
Newsletter sign-upsign_upSign-up success handlermethodNonone
Purchase (shops)purchaseOrder confirmation, from the servertransaction_id, value, currency, itemsYesOrder value

Rules that make the plan hold up:

  • Use Google's recommended event names where one exists. generate_lead, sign_up and purchase are recommended GA4 events; reports and Google Ads understand them out of the box. Use your own snake_case names (book_call, click_phone) only when there is no recommended one. Event names are case-sensitive and limited to 40 characters.
  • Keep key events to the outcomes that pay. A standard GA4 property allows up to 30 key events, but you should have three to six. If everything is a key event, Google Ads optimises for newsletter sign-ups as eagerly as for sales calls.
  • Give leads a value. Even a rough average ("a qualified lead is worth about 150 EUR to us") lets Google Ads bid on value and lets your reports show revenue per channel. Work it out as average deal size × close rate.
  • Decide parameters now. A form_name parameter lets you tell the contact form from the quote form in one event. Anything you want to report on later must be sent now.
  • Never send personal data. No names, email addresses or phone numbers in event parameters or URLs. It breaks Google's terms and data protection law.

Step 2: Create the GA4 property and Tag Manager container

2a. GA4

If you already have a GA4 property, check its settings rather than creating a new one — you would lose history.

  1. In analytics.google.com, go to Admin → Create → Property. Set the reporting time zone and currency to the ones your business reports in.
  2. Under Data collection and modification → Data streams, create a Web stream for your domain. Copy the Measurement ID (G-XXXXXXXXXX).
  3. In the web stream, open Enhanced measurement and keep page views, scrolls, outbound clicks, site search, video engagement and file downloads on. Turn off "Form interactions". It fires form_start and form_submit based on browser events and frequently double-counts or counts failed submissions — your own generate_lead event replaces it.
  4. Go to Admin → Data collection and modification → Data retention and change event data retention from the default 2 months to 14 months. This only affects explorations and funnel reports, but the change is not retroactive, so do it on day one.
  5. Under the web stream's Configure tag settings → List unwanted referrals, add payment providers and booking tools that redirect visitors back to your site (for example paypal.com, checkout.stripe.com, calendly.com), so the conversion is not attributed to them instead of the real source.
  6. Under Configure tag settings → Define internal traffic, add your office IP, then activate the "Internal Traffic" data filter in Admin → Data filters once you have tested it.

2b. Google Tag Manager

  1. In tagmanager.google.com, create an account and a Web container for your domain. Copy the container ID (GTM-XXXXXXX).
  2. Install the container on every page. The standard snippet goes as high in the <head> as possible, plus a <noscript> fallback after the opening <body>. GTM shows both snippets after creating the container.
  3. Remove any hard-coded GA4 (gtag.js) snippets and analytics plugins that also send data to the same Measurement ID. Two installations means doubled page views and doubled conversions — this is the single most common error we find in audits.

On Next.js (App Router), use the official @next/third-parties package, which loads GTM efficiently after hydration. This is how blackcard.dev itself is set up:

npm install @next/third-parties@latest
// src/app/layout.tsx
import { GoogleTagManager } from "@next/third-parties/google";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <GoogleTagManager gtmId="GTM-XXXXXXX" />
      <body>{children}</body>
    </html>
  );
}

On WordPress, either paste the snippets into your theme's header.php (child theme) or use a single lightweight plugin that inserts the GTM container. Do not install a separate GA4 plugin alongside it.

Verify it worked: click Preview in Tag Manager, enter your URL and confirm the Tag Assistant window says "Connected". In the browser console, type dataLayer — you should see an array with gtm.js, gtm.dom and gtm.load entries.

Step 3: Set up Consent Mode v2 before any tag fires

Consent Mode is how Google tags respect your visitors' cookie choices. It has four signals that matter for conversion tracking:

  • analytics_storage — may GA4 set analytics cookies?
  • ad_storage — may advertising cookies be set?
  • ad_user_data — may user data be sent to Google for advertising? (added in v2)
  • ad_personalization — may data be used for remarketing and personalised ads? (added in v2)

The order is non-negotiable: a default consent state must be set before any Google tag runs, and the cookie banner then sends an update when the visitor chooses.

Option A: a CMP template in Tag Manager (recommended)

  1. In GTM, go to Admin → Container Settings and tick Enable consent overview.
  2. Go to Templates → Tag Templates → Search Gallery and add your CMP's official template (Cookiebot, Usercentrics, OneTrust, CookieYes and others publish one).
  3. Create a tag from that template. Set the default state for your EEA visitors to denied for all four signals, enter your CMP's ID, and set the trigger to Consent Initialization - All Pages. This special trigger fires before every other trigger.
  4. In the CMP's dashboard, map its categories: "Statistics" → analytics_storage; "Marketing" → ad_storage, ad_user_data, ad_personalization.

Option B: set the defaults in code

If your CMP has no template, add this snippet to the <head> above the GTM snippet, then call the update from the banner's callback:

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag() { dataLayer.push(arguments); }

  // Default: nothing stored until the visitor decides.
  gtag("consent", "default", {
    ad_storage: "denied",
    ad_user_data: "denied",
    ad_personalization: "denied",
    analytics_storage: "denied",
    wait_for_update: 500 // ms to wait for the banner to report a saved choice
  });
</script>
// Call this from your cookie banner when the visitor accepts or changes their choice.
function onConsentChoice({ statistics, marketing }) {
  gtag("consent", "update", {
    analytics_storage: statistics ? "granted" : "denied",
    ad_storage: marketing ? "granted" : "denied",
    ad_user_data: marketing ? "granted" : "denied",
    ad_personalization: marketing ? "granted" : "denied",
  });
}

Basic or advanced Consent Mode?

  • Advanced (Google's default behaviour): Google tags load immediately and, while consent is denied, send cookieless pings. Google uses them to model conversions from visitors who declined, which recovers a meaningful share of the conversions you would otherwise lose.
  • Basic: Google tags are blocked completely until consent is granted. Nothing is sent from visitors who decline, and modelling is weaker.

Which one is acceptable depends on your legal assessment; many German companies choose basic mode on the advice of their data protection officer. Either way, Consent Mode is what keeps your Google Ads conversions and audiences working for EEA traffic.

Verify it worked: in GTM Preview, select the first event in the left column ("Consent Initialization") and open the Consent tab. You should see all four signals with "Default: Denied". Accept the banner, find the next event, and the "On-page Update" column should show "Granted".

Step 4: Add the GA4 Google tag in Tag Manager

  1. In GTM, go to Tags → New → Tag configuration → Google Tag.
  2. Enter your Measurement ID (G-XXXXXXXXXX).
  3. Set the trigger to Initialization - All Pages (it fires after consent initialization and before everything else).
  4. Name it GA4 - Google Tag and save.

Create a constant variable for the Measurement ID first (Variables → New → Constant, name it GA4 Measurement ID) and use {{GA4 Measurement ID}} everywhere. If the ID ever changes, you change it once.

Verify it worked: in Preview, the Google Tag should show as "Fired" on the Initialization event, and in GA4 Reports → Realtime you should see yourself as an active user within a minute (after accepting statistics cookies).

Step 5: Push conversion events from your code

This is where reliable tracking is made. For every outcome in your measurement plan, your site pushes an event into the dataLayer at the moment the outcome is confirmed.

Contact form: push after the server confirms

The pattern for any form that submits with JavaScript:

<form id="contact-form" data-form-name="contact">
  <input name="name" required />
  <input name="email" type="email" required />
  <textarea name="message" required></textarea>
  <button type="submit">Send</button>
  <p id="form-status" role="status"></p>
</form>

<script>
  const form = document.getElementById("contact-form");
  form.addEventListener("submit", async (event) => {
    event.preventDefault();
    const status = document.getElementById("form-status");

    const response = await fetch("/api/contact", {
      method: "POST",
      body: new FormData(form),
    });

    if (!response.ok) {
      status.textContent = "Something went wrong. Please try again.";
      return; // no conversion: the lead did not arrive
    }

    status.textContent = "Thanks! We will reply within one business day.";

    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: "generate_lead",
      form_name: form.dataset.formName, // "contact"
      lead_type: "contact_request",
      value: 150,
      currency: "EUR",
    });

    form.reset();
  });
</script>

The event is pushed only on a successful response — validation errors, network failures and server errors never count.

In Next.js, use sendGTMEvent from the same package in a client component:

"use client";
import { useState } from "react";
import { sendGTMEvent } from "@next/third-parties/google";

export function ContactForm() {
  const [state, setState] = useState<"idle" | "sending" | "sent" | "error">("idle");

  async function onSubmit(e: React.FormEvent<HTMLFormElement>) {
    e.preventDefault();
    setState("sending");
    const res = await fetch("/api/contact", {
      method: "POST",
      body: new FormData(e.currentTarget),
    });
    if (!res.ok) return setState("error");

    setState("sent");
    sendGTMEvent({
      event: "generate_lead",
      form_name: "contact",
      lead_type: "contact_request",
      value: 150,
      currency: "EUR",
    });
  }

  return (
    <form onSubmit={onSubmit}>
      {/* fields */}
      <button type="submit" disabled={state === "sending"}>Send</button>
      {state === "sent" && <p role="status">Thanks! We will reply within one business day.</p>}
      {state === "error" && <p role="alert">Something went wrong. Please try again.</p>}
    </form>
  );
}

On WordPress with Contact Form 7, the plugin dispatches a wpcf7mailsent DOM event only when the mail was actually sent. Add this to your footer (or a GTM Custom HTML tag fired on All Pages):

<script>
  document.addEventListener("wpcf7mailsent", function (event) {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: "generate_lead",
      form_name: "cf7_" + event.detail.contactFormId,
      lead_type: "contact_request",
      value: 150,
      currency: "EUR",
    });
  });
</script>

Other form tools (HubSpot, Gravity Forms, Typeform, Webflow) expose similar success callbacks or events; search their developer docs for "on submit success" and use the same push. Avoid "thank-you page" tracking where you can: reloads, bookmarks and direct visits to the thank-you URL all count as leads.

Booked calls: listen to the scheduler's confirmation

Embedded booking tools run in an iframe, so your page cannot see the click on "Confirm". Most of them post a message to the parent page when a booking is completed. Calendly's inline and popup embeds, for example, send calendly.event_scheduled:

<script>
  window.addEventListener("message", function (e) {
    if (e.origin !== "https://calendly.com") return;
    if (e.data && e.data.event === "calendly.event_scheduled") {
      window.dataLayer = window.dataLayer || [];
      window.dataLayer.push({
        event: "book_call",
        booking_tool: "calendly",
        call_type: "sales_call",
        value: 400,
        currency: "EUR",
      });
    }
  });
</script>

If your scheduler opens in a new tab or on another domain without such a message (many calendar booking pages do), you cannot see the booking itself. Track the click on the booking link as a softer click_book_call event (not a key event), and count confirmed bookings from the scheduler's own reports or via an automation that writes them into your CRM. Treat this as a known gap, not as a reason to guess.

Phone and email clicks: one GTM trigger, no code

  1. In GTM, go to Variables → Configure and enable the built-in Click URL and Click Text variables.
  2. Create a trigger: Triggers → New → Click - Just Links, "Some Link Clicks", condition Click URL starts with tel:. Name it Click - Phone.
  3. Create a second one with Click URL starts with mailto:. Name it Click - Email.

These are clicks, not confirmed calls — which is why phone clicks are "optional" as a key event in the plan. If phone calls are a major channel, use call tracking with dynamic numbers (a dedicated provider) that reports real, answered calls.

Step 6: Map the events to GA4 in Tag Manager

For each dataLayer event, you need data layer variables, a trigger and a GA4 event tag.

1. Data layer variables. Variables → New → Data Layer Variable, one per parameter: form_name, lead_type, booking_tool, call_type, value, currency. Name them DLV - form_name and so on.

2. Custom event triggers. Triggers → New → Custom Event:

  • Event name generate_lead → trigger CE - generate_lead
  • Event name book_call → trigger CE - book_call

The event name must match the code exactly, including case.

3. GA4 event tags. Tags → New → Google Analytics: GA4 Event:

  • GA4 - generate_lead: Measurement ID {{GA4 Measurement ID}}, event name generate_lead, event parameters form_name = {{DLV - form_name}}, lead_type = {{DLV - lead_type}}, value = {{DLV - value}}, currency = {{DLV - currency}}. Trigger: CE - generate_lead.
  • GA4 - book_call: same pattern with booking_tool, call_type, value, currency. Trigger: CE - book_call.
  • GA4 - click_phone: event name click_phone, parameters link_url = {{Click URL}}, placement = {{Click Text}}. Trigger: Click - Phone.
  • GA4 - click_email: same with Click - Email.

Google tags have built-in consent checks, so you do not need to add consent conditions to them; non-Google tags (Meta, LinkedIn) need "Require additional consent" set to ad_storage in their Advanced settings → Consent settings.

4. Register custom dimensions. GA4 receives your parameters but only shows them in reports once registered. In GA4, Admin → Data display → Custom definitions → Create custom dimension, scope "Event", for form_name, lead_type, booking_tool, call_type and placement. Registration is not retroactive, so do it before launch.

Step 7: Test everything before you publish

Never publish a container you have not watched fire. Here is the test script we run:

  1. In GTM, click Preview and open the site. Decline the cookie banner first.
  2. Submit the contact form with invalid data. Expected: no generate_lead event in the left column of Tag Assistant.
  3. Submit it correctly. Expected: a generate_lead event; click it and check that GA4 - generate_lead is in "Tags Fired" and that the Variables tab shows the right form_name and value. On the Consent tab, signals show denied — in advanced mode the tag still fires cookieless.
  4. Accept the cookie banner, repeat. Expected: the same tag fires with consent granted.
  5. Book a test call, tap the phone link, click the email link. Check each event fires exactly once.
  6. Open GA4 → Admin → Data display → DebugView. While Preview is running, your session appears here with every event in sequence; click generate_lead to see its parameters as GA4 received them.
  7. Test on a phone too (GTM Preview works on any device that opens the Tag Assistant link).

When everything passes, click Submit in GTM, name the version ("v3 – lead, booking, phone tracking + consent mode") and publish. Versions are your rollback button.

Step 8: Mark key events in GA4 and import them into Google Ads

Key events

Events appear in GA4's event list after they have been received (within about 24 hours). To mark one before it has arrived:

  1. Admin → Data display → Key events → New key event.
  2. Type the exact event name — generate_lead, then book_call.
  3. Optionally set a default value; leave it empty if you send value with the event (the event's value is used).

Once events have been collected, you can also toggle "Mark as key event" in Admin → Data display → Events.

Google Ads

  1. Link the accounts: GA4 Admin → Product links → Google Ads links → Link, and enable auto-tagging in Google Ads (Admin → Account settings → Auto-tagging).
  2. In Google Ads, go to Goals → Summary → New conversion action → Import → Google Analytics 4 properties → Web, select generate_lead and book_call, and import.
  3. Set each imported action to Primary if it should drive bidding, Secondary if you only want to observe it. Sales calls and qualified leads are typically primary; phone clicks secondary.
  4. Expect imported conversions to appear with a delay of up to about a day. If you need faster signals or plan to use enhanced conversions with hashed first-party data, you can additionally add a Google Ads Conversion Tracking tag in GTM on the same triggers — but then import from only one source per action, or you will double-count.

Verify it worked: after 24–48 hours, GA4 Reports → Engagement → Key events shows your key events with counts; Advertising → Attribution → Conversion paths shows which channels led to them. In Google Ads, the conversion action's status should change from "No recent conversions" to "Recording conversions".

Step 9: Reconcile with reality

Tracking that nobody checks drifts. After the first full week:

  1. Count the leads that arrived in your inbox or CRM and the calls booked in your scheduler.
  2. Compare with GA4's generate_lead and book_call counts for the same dates (same time zone).
  3. Expected: GA4 shows somewhat fewer — typically 5–30% fewer, depending on your audience. Visitors who decline consent in basic mode, ad blockers and privacy browsers all hide events. GA4 should almost never show more; if it does, something is double-firing.

Write the ratio down. It is the correction factor you apply when someone asks "how many leads did LinkedIn really bring?", and a sudden change in it is the earliest sign that a site change broke tracking.

To catch silent breakage, set up a custom insight in GA4 (Reports → Insights → Create) that alerts you by email when generate_lead drops by more than 50% week over week. Better still, send leads from your form handler into your CRM with the UTM parameters attached, which gives you a second, server-side source of truth — a smart workflow that takes about a day to build.

Common pitfalls and how to debug them

Conversions are doubled. Almost always two installations: a hard-coded gtag.js snippet or plugin plus the GTM Google tag, or the same event sent by both a GTM click trigger and a dataLayer push. In the browser's Network tab, filter for collect?v=2 — every GA4 hit is a request to that endpoint. Two requests per event means two senders.

The event appears in Preview but not in GA4. Check the Measurement ID in the constant variable, check that the container version was actually published (Preview uses your workspace, the live site uses the published version), and check internal traffic filters — an active filter on your own IP hides your tests from reports (DebugView still shows them).

Nothing fires until the cookie banner is accepted, even in advanced mode. The CMP is blocking Google scripts outright (some CMPs do this with "auto-blocking"), or the GTM tag itself has an extra consent requirement. Exclude Google tags from auto-blocking and remove manual consent conditions from them; Google tags handle consent themselves.

Consent tab shows no default state. The default command runs too late — after the GTM snippet, or from a tag not on the Consent Initialization trigger. Move it above the GTM snippet or onto that trigger.

The lead is attributed to "paypal.com" or "calendly.com". The visitor left and came back through a third party. Add the domain to the unwanted referrals list (Step 2a).

Single-page apps lose the source on later page views. In React and Next.js apps, use GA4's enhanced measurement "Page changes based on browser history events" (on by default) and never reload GTM on route changes. @next/third-parties handles this for you.

Values show as zero in Google Ads. The value was sent as a string with a currency symbol ("150 €") or the currency parameter is missing. Send a number and an ISO currency code ("EUR").

Custom parameters are missing in reports. They were not registered as custom dimensions, or were registered after the events were collected. Register them and wait for new data.

Optional upgrades once the basics work

  • Server-side tagging. A server-side GTM container on your own subdomain (hosted on Google Cloud Run or a managed provider) receives events from the browser and forwards them to GA4, Google Ads and Meta's Conversions API. It is more resilient to ad blockers and browser restrictions, and it gives you control over what data leaves your systems. Budget roughly €20–€150 per month for hosting plus setup time.
  • Enhanced conversions for leads. Sends a hashed email address with the conversion so Google Ads can match it to signed-in users and later to offline outcomes. Requires consent and careful implementation.
  • Offline conversion import. Send "lead qualified" and "deal won" back from your CRM to Google Ads, so ads optimise for customers, not just form fills. This is where tracking starts to pay for itself many times over.
  • BigQuery export. GA4's BigQuery link is free for standard properties (within the daily export limit) and gives you raw event data beyond the 14-month retention window — the foundation for a proper business dashboard.

FAQ

What is the difference between a conversion and a key event in GA4? They are the same idea under a new name. In 2024 Google renamed conversions in GA4 to key events, and reserved the word conversion for Google Ads. You mark the events that matter for your business as key events in GA4, then import them into Google Ads, where they become conversion actions used for bidding.

Should I track form submissions with the GTM form submission trigger? Usually not. The built-in trigger fires when the browser submits the form, which includes failed validation, spam and duplicate clicks, and it often does not work with JavaScript-based forms at all. Push a generate_lead event to the dataLayer from the form's success handler, after the server has accepted the submission, and trigger the GA4 tag from that custom event.

Do I need Consent Mode v2? If you have visitors from the EU or EEA and use Google Ads measurement or remarketing, yes: Google requires the ad_user_data and ad_personalization signals for those features. In practice it is also the cleanest way to respect cookie choices across all Google tags. Implement it with a Google-certified consent management platform and set the defaults before any tag fires.

Why does GA4 show fewer leads than my CRM? Visitors who decline cookies, ad blockers, privacy browsers and tracking prevention all hide some events, so GA4 typically shows 5 to 30 percent fewer leads than actually arrived. That is normal; measure the ratio and use it as a correction factor. If GA4 shows more leads than your CRM, an event is double-firing and needs fixing.

How long does it take for conversions to show in GA4 and Google Ads? Events appear in GA4 DebugView within seconds and in the Realtime report within a minute or two. Standard reports and key event counts take 24 to 48 hours to process. Conversions imported into Google Ads from GA4 can take up to about a day to appear.

Can I track bookings from Calendly or other scheduling tools? Yes, when the scheduler is embedded on your page and sends a confirmation message to the parent page, as Calendly does with its calendly.event_scheduled message. Listen for that message, push a book_call event to the dataLayer and map it to a GA4 event tag. If the booking happens on a separate page without such a message, track the click as a softer signal and count confirmed bookings from the scheduler or CRM.

Is Google Tag Manager slow? The container itself is light, but every tag you add runs JavaScript in the visitor's browser. Keep the container clean, remove tags nobody uses, load chat widgets and heatmaps later, and consider server-side tagging for heavy marketing stacks. On Next.js, loading GTM through @next/third-parties keeps it off the critical rendering path.

How many key events should I have? Between three and six for most businesses: the outcomes that create revenue, such as qualified leads, booked calls and purchases. GA4 allows up to 30, but every extra key event dilutes reports and can push Google Ads to optimise for cheap, low-value actions.

Where to go from here

With reliable key events in place, the interesting work starts: cost per lead by channel, which landing pages turn visitors into booked calls, and which campaigns bring customers rather than form fills. Feed those numbers into a business dashboard your team checks weekly, route new leads into your CRM automatically with smart workflows, and use the funnel data to decide where an interface audit will lift conversion the most.

Copy & paste

Do it: the full prompt

Copy this prompt into any LLM or coding agent (Claude, ChatGPT, Cursor …) to apply this guide to your own project.

Guide: https://blackcard.dev/guides/how-to-set-up-conversion-tracking-with-ga4
Markdown version (fetch this for the full method): https://blackcard.dev/guides/how-to-set-up-conversion-tracking-with-ga4.md

Act as my analytics implementation engineer and set up conversion tracking with GA4 and Google Tag Manager following the method from the guide "How to Set Up Conversion Tracking with GA4 and Google Tag Manager" (blackcard.dev).

My situation:
- Website and platform: [e.g. https://www.example.com, Next.js 14 / WordPress with Contact Form 7 / Webflow]
- Conversions that matter: [e.g. contact form, quote form, Calendly booking, phone number, newsletter]
- Average value per outcome: [e.g. lead 150 EUR, booked call 400 EUR]
- Existing tools: [GA4 property yes/no, GTM yes/no, hard-coded gtag, plugins, Google Ads, Meta pixel]
- Consent tool and audience: [e.g. Cookiebot, visitors mainly from Germany]

Steps:
1. Write my measurement plan as a table: outcome, GA4 event name (recommended names like generate_lead where they exist), trigger source, parameters, key event yes/no, value.
2. List everything to remove (duplicate gtag snippets, analytics plugins, enhanced measurement form interactions) and the GA4 settings to change (14-month retention, unwanted referrals, internal traffic).
3. Give me the exact GTM installation for my platform, and the Consent Mode v2 setup: CMP template on the Consent Initialization trigger, or a gtag consent default snippet above GTM with all four signals denied plus the update call for my banner.
4. Write the code that pushes each conversion to the dataLayer only after it is confirmed (form success handler after a successful server response, booking tool confirmation message), for my platform.
5. Give me every GTM variable, trigger and GA4 event tag with exact names and settings, plus the custom dimensions to register in GA4.
6. Give me a step-by-step test script for GTM Preview, the Consent tab and GA4 DebugView, including negative tests (invalid form, declined consent).
7. Give me the steps to mark key events, link and import them into Google Ads as primary or secondary, and a one-week reconciliation check against my CRM.

Deliver every snippet in full and wait for my test results before moving on to Google Ads.

Getting one form tracked is an afternoon. Getting tracking your marketing budget can rely on — consent handled correctly for German and EU visitors, every lead and booked call counted exactly once, Google Ads optimising for real outcomes, and the numbers flowing into a dashboard and CRM your team actually uses — is the work we do at BlackCard. We have cleaned up enough doubled, broken and non-compliant setups to know where they fail, and we hand over a documented container, a measurement plan and a reconciliation routine so the data stays trustworthy. If you want it done right the first time, book a free call and bring your current GA4 numbers and last month's lead count — we will show you where the gap is. You can read more about how we connect marketing data to decisions on our Business Dashboards, Development and Smart Workflows pages.