Skip to main content
Rohan Growth Lab
0%
HomeGoogle Ads AcademyModule 19
MODULE 19 / 27Expert20 min studyLast reviewed: December 3, 2026

Conversion Tracking, GA4, Google Tag Manager & Enhanced Leads

Complete zero-PII technical implementation guide covering Google Tag, GTM, Conversion Linker, server-confirmed form events, Tag Assistant, GA4 DebugView, and duplicate prevention.

What You Will Master in Module 19

  • Separate Primary bidding conversions (server-confirmed leads) from Secondary engagement signals
  • Preserve GCLID, GBRAID, WBRAID, and UTMs cleanly into your CRM without leaking PII into GA4 URLs
  • Verify Enhanced Conversions for Leads and diagnose duplicate or dropped events in Tag Assistant

Everything in modern Google Ads—Smart Bidding, Broad Match testing, ROAS modeling, and CRM attribution—stands or falls on clean conversion tracking. This technical module walks through Google Tag, GTM, GA4, GCLID/GBRAID/WBRAID, Enhanced Conversions for Leads, and zero-PII Next.js tracking code.

1 Guided Lesson

What You Will Learn (In 1 Line)

Set up bulletproof, privacy-safe conversion tracking (GTM + GA4 + GCLID) in 4 clean steps.

Real-Life Analogy (Easy to Picture)

Think of GCLID like a tracking barcode printed on every courier parcel: when a buyer clicks your ad, Google stamps a unique `gclid` code on their visit. Saving that code with their lead form lets you tell Google weeks later: "Parcel #8492 just bought a ₹3 Cr apartment!"

In Simple Words

Conversion tracking connects a paid Google Ads click (via GCLID, GBRAID, or WBRAID cookies) to a verified server-confirmed enquiry—without leaking personal data (PII) into GA4 event payloads or browser URLs.

आसान हिंदी में समझें (Simple Hindi Note)

महत्वपूर्ण सुरक्षा नियम: कभी भी ग्राहक का नाम, फोन नंबर या ईमेल सीधे URL (?email=...) या सामान्य GA4 इवेंट में न भेजें—यह Google Analytics की नीति के खिलाफ है। Enhanced Conversions के लिए केवल सुरक्षित hashed (SHA-256) तरीका ही इस्तेमाल करें।

Step-by-Step Practical Guide (With Example at Every Step)

0/4 Steps Checked
1

Step 1 of 4

Install Google Tag Manager (GTM) & Publish "Conversion Linker" on All Pages

Put one clean GTM container on your website. Inside GTM, create Tag #1: `Conversion Linker` triggered on `All Pages` so browser cookies preserve Google Ads click IDs (`gclid`, `gbraid`, `wbraid`).

Practical Example (Step 1)

Without Conversion Linker, Safari/Chrome drop click attribution between your landing page and `/thank-you` page—causing 20%–35% of real leads to show as "Unattributed".

2

Step 2 of 4

Capture `gclid` + UTMs in Hidden Form Fields (Zero PII in URLs!)

Read `?gclid=...`, `utm_source`, `utm_campaign`, and `utm_term` from the URL when the buyer lands, store them in sessionStorage, and pass them silently inside hidden inputs when they submit your enquiry form.

Practical Example (Step 2)

Buyer clicks your ad → lands on `/gurgaon-3bhk?gclid=EAIaIQobChMI...&utm_campaign=search_gurgaon_3bhk` → submits form → your CRM saves Name, Phone, Project + exact `gclid` automatically!

Watch Out: NEVER put the buyer’s phone number or email into page URLs or plain `localStorage`—keep PII strictly inside your secure backend/CRM.
3

Step 3 of 4

Fire Primary Conversion ONLY on Verified Lead Submission

Fire your Google Ads Conversion Tag (`AW-XXXXXXX/label`) + GA4 `generate_lead` event ONLY when your server returns `200 OK` (or on `/thank-you`). Enable Enhanced Conversions (hashed SHA-256 email/phone) for higher match accuracy.

Practical Example (Step 3)

Open GTM Preview Mode (Tag Assistant) → submit a test lead on your landing page → confirm `Google Ads Conversion Tracking` fires **once** and `Conversion Linker` fired on Page View.

4

Step 4 of 4

Mark Only 1–2 Real Outcomes as "Primary" Conversions in Google Ads

Go to Goals → Conversions → Summary. Keep `Verified_Form_Lead` and `Offline_Site_Visit` as **Primary**; set `WhatsApp_Click`, `Scroll_50%`, or `Brochure_Click` to **Secondary (Observation Only)**.

Practical Example (Step 4)

If both "WhatsApp Click" AND "Form Submit" are Primary, one user clicking both counts as 2 conversions—making Google think CPL is half the real cost!

Complete End-to-End Real Estate Case Example

Inspect the production-ready, zero-PII Next.js / React `dataLayer` tracking pattern below—notice how zero phone/email strings ever touch URLs or standard GA4 properties, while `transaction_id` prevents duplicate conversion inflation.

Zero-PII Server-Confirmed Next.js Lead Conversion Push (Educational Reference)
// Client-side handler after your /api/leads endpoint validates & saves to CRM
interface LeadApiResponse {
  ok: boolean;
  leadReferenceId: string; // Server-issued unique ID for deduplication
}

export async function submitQualifiedEnquiry(payload: {
  fullName: string;
  phone: string;
  email: string;
  budgetBand: string;
  configuration: string;
  clickIds: { gclid?: string; gbraid?: string; wbraid?: string };
}) {
  const res = await fetch('/api/leads', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload), // PII sent ONLY over HTTPS POST to your server/CRM
  });

  if (!res.ok) return { submitted: false };
  const data = (await res.json()) as LeadApiResponse;

  // Push ONLY non-PII attributes + deduplication ID to GTM dataLayer
  const dl = (window as unknown as { dataLayer?: Record<string, unknown>[] }).dataLayer;
  if (dl && data.ok && data.leadReferenceId) {
    dl.push({
      event: 'real_estate_lead_confirmed',
      transaction_id: data.leadReferenceId,
      property_configuration: payload.configuration,
      budget_band: payload.budgetBand,
      // Zero plaintext phone, email, or name in standard GA4 event payload!
    });
  }
  return { submitted: true, referenceId: data.leadReferenceId };
}

Pushes clean conversion metadata to GTM dataLayer ONLY after server validation passes—zero plaintext PII exposed to GA4 or URLs.

3 Things to Remember From This Lesson

  • Fire lead conversions ONLY on server-confirmed `200 OK` responses with a unique `transaction_id`.
  • Capture `gclid`, `gbraid`, `wbraid`, and UTMs for your CRM—never leak plaintext PII into GA4 or URLs.
  • Never mark both native Google Ads conversion tags and duplicate GA4 imports as Primary simultaneously.
Module 19 Knowledge Check

Verify Your Mastery Before Moving On

Q1. Which Google Ads conversion Count setting should be used for real estate lead enquiries?