Skip to main content

Samarth Analytics

Enhanced Conversions Setup in Google Ads using GTM

A step-by-step guide to configuring Enhanced Conversions for Web and Leads through Google Tag Manager without breaking privacy compliance.

By Samarth Analytics · Published · Updated · Conversion Tracking · 9 min read

Summary: A field-tested playbook for implementing Google Ads Enhanced Conversions via GTM. Covers Web vs Leads variants, Google Ads conversion-action setup, the User-Provided Data variable, dataLayer-based PII passing, automatic SHA-256 hashing at the browser, Consent Mode v2 integration, and validation via Tag Assistant and Diagnostics.

  • Adopt Enhanced Conversions to recover lost attribution data caused by the phase-out of third-party cookies and increased browser privacy restrictions.
  • Use a server-side or dataLayer-based JavaScript approach to pass user-provided data rather than relying on fragile CSS selectors.
  • Ensure your Google Ads conversion tag is correctly mapped to a User-Provided Data variable in GTM to enable SHA-256 hashing at the browser level.
  • Link your setup with Consent Mode v2 to maintain compliance with the Digital Markets Act while maximizing conversion modeling accuracy.
  • Monitor the Enhanced Conversions diagnostics tab in the Google Ads interface for at least 48 hours to verify the match quality score and data flow.

What Enhanced Conversions actually do (and why they matter in 2026)

The landscape of digital measurement has undergone a fundamental shift. With the total depreciation of third-party cookies and the expansion of Intelligent Tracking Prevention (ITP) across all major browsers, the traditional "pixel-only" approach to conversion tracking is no longer reliable. When a user clicks your ad and later converts, the link between those two actions is often broken by the browser. Enhanced Conversions solve this by using first-party data to bridge the gap.

When a user converts on your site, they typically provide an email address, a name, or a phone number. Enhanced Conversions take this data, hash it using the SHA-256 algorithm, and send it to Google. Google then matches this hashed data against its own signed-in user database. This is a form of signal recovery that allows Google to attribute a conversion to an ad click even when the traditional cookie-based click identifier is missing. We have seen that accounts implementing Enhanced Conversions typically see a 5% to 15% increase in attributed conversion volume, which directly translates to more efficient bidding for the algorithm.

In 2026, this is not a luxury. It is a baseline requirement for any growth-stage or mid-market B2B or B2C company. Without these high-fidelity signals, your automated bidding strategies like Target CPA or Target ROAS are making decisions based on incomplete data. You are effectively bidding with one hand tied behind your back. By providing Google with deterministic match keys, you ensure that your budget is allocated based on the actual revenue your ads are generating.

Enhanced Conversions for Web vs. Enhanced Conversions for Leads

It is vital to distinguish between the two primary flavors of this technology: Enhanced Conversions for Web and Enhanced Conversions for Leads GTM.

Enhanced Conversions for Web is designed for online transactions that happen directly on your website. This is the standard path for e-commerce checkouts or SaaS sign-ups where the conversion is completed in a single session or via a web-based thank-you page. The data is captured at the moment of the conversion and sent immediately to Google.

Enhanced Conversions for Leads, on the other hand, is built for B2B companies with long sales cycles. In this scenario, a user might submit a form today (the "lead"), but only become a customer months later in your CRM (the "conversion"). Traditionally, this required a GCLID (Google Click Identifier) to be stored in your CRM and uploaded back to Google. With Enhanced Conversions for Leads, you can use the user's hashed email address as the primary key instead. This bypasses the need for complex GCLID storage and significantly simplifies the process of measuring offline revenue. For growth leads at mid-market companies, this is the most durable way to prove the ROI of top-of-funnel lead generation campaigns.

Configuring the conversion action in Google Ads the right way

Before you touch Google Tag Manager, you must prepare the Google Ads interface. If the conversion action is not explicitly configured to accept enhanced data, any variables you send from GTM will be ignored. You must navigate to the "Conversions" section, select your specific conversion action, and look for the "Enhanced conversions" section at the bottom.

When you toggle this on, Google will ask you how you want to set it up. We always recommend choosing the "Google Tag Manager" option. This keeps your tracking logic centralized. You will also be asked to agree to the Customer Data Terms. We've seen several implementations stall at this stage because the legal team hasn't reviewed the data processing terms. Ensure this is cleared early in your project timeline.

Once the toggle is active in the Google Ads UI, the platform is ready to receive the hashed user-provided data Google Ads requires for matching.

How should you structure the GTM tag for Enhanced Conversions?

The structure of your GTM tag is where the actual data mapping happens. In GTM, you will use the standard "Google Ads Conversion Tracking" tag. Inside that tag, there is a specific checkbox labeled "Include user-provided data from your website."

When you check this box, you are required to select a "User-Provided Data" variable. This variable is a unique GTM object that acts as a container for all the PII you intend to send. We've seen that many technical marketers try to map PII directly into the tag using custom fields. This is incorrect. You must use the dedicated User-Provided Data variable type. This variable allows you to map specific fields like email, phone, and address to either CSS selectors or, preferably, dataLayer variables. This unified structure is what allows Google's gtag.js library to recognize and hash the data before it leaves the browser.

Passing user-provided data: manual, CSS selectors, or JavaScript variables?

There are three ways to populate the User-Provided Data variable, but they are not created equal.

  1. Automatic Collection: Google attempts to scan the page and find email addresses or phone numbers automatically. We rarely recommend this for mid-market companies because it lacks precision and can often fail on complex or dynamic forms.
  2. CSS Selectors: You point GTM to a specific HTML element, like #email-field. This is quick to set up but extremely fragile. If your developers change the ID or the structure of the checkout page, your tracking breaks instantly.
  3. Manual Configuration (JavaScript Variables): This is the gold standard. You push the user's data into the dataLayer at the moment of conversion. This creates a stable contract between your website's backend and your tracking layer.
// Example dataLayer.push on the thank-you page
// Note: Do NOT hash these values. Google's gtag.js handles the 
// SHA-256 Google Ads Enhanced Conversions hashing automatically 
// in the browser before the data is sent.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'user_purchase_complete',
  'user_data': {
    'email': '[email protected]',
    'phone_number': '+15551234567',
    'first_name': 'Jane',
    'last_name': 'Doe',
    'address': {
      'street': '100 Main St',
      'city': 'Austin',
      'region': 'TX',
      'postal_code': '78701',
      'country': 'US'
    }
  }
});

/* GTM Configuration Note: 
Create a "User-Provided Data" variable and set the type to "Manual Configuration".
Map the Email field to a Data Layer Variable: user_data.email
Map the Phone Number field to a Data Layer Variable: user_data.phone_number
Repeat for name and address fields.
*/

Tip: CSS selectors only work reliably when your form fields have stable, named IDs. On SPAs or sites where IDs get hashed at build time, the JavaScript-variable path with a dedicated dataLayer push on the thank-you page is always the more durable option.

Hashing, privacy, and what Google actually sees

A common point of confusion is who handles the hashing. Unlike Meta's Conversions API, where you must hash the data before sending it to the endpoint, Google Ads handles the hashing for you within the browser script. This is built into the Google Ads conversion tag GTM variables architecture. When the tag fires, it looks at the plaintext data in your User-Provided Data variable, applies the SHA-256 hash, and then transmits the hashed strings.

This means that plaintext PII is never actually sent to Google's servers. Google only receives the hashed string. If they have a matching hashed string in their database for a user who clicked your ad, they record a match. If there is no match, the data is discarded. This process preserves user privacy while allowing for deterministic matching of conversion events.

Warning: The most common failure mode we see is forwarding user-provided data to Enhanced Conversions for users who have denied ad_user_data in your CMP. Google's Consent Mode handles this gracefully IF the tag is wired to respect the signal, but GTM's default behavior is to send the data anyway, which is a GDPR violation.

In 2026, Enhanced Conversions cannot exist in a vacuum. They must be integrated with Consent Mode v2. This is particularly important for companies operating in the European Economic Area (EEA). The ad_user_data parameter is the primary signal that tells Google whether you have the user's permission to use their personal data for advertising purposes.

If a user denies consent, your GTM tags must be configured to either stop firing or to fire in a way that excludes the user_provided_data variable. We recommend using GTM's native "Consent Settings" inside the tag configuration. By setting the tag to require ad_user_data to be "granted" before it can send PII, you ensure that your Enhanced Conversions setup GTM remains compliant with the Digital Markets Act. Failing to do this can lead to account-level warnings and a loss of modeling features in your Google Ads account.

Validating with Tag Assistant, Diagnostics, and real conversions

Once the implementation is live, the validation phase begins. Do not assume it is working just because the tag fires. First, use Google Ads Tag Assistant Preview Mode. When you perform a test conversion, look for the Google Ads Conversion Tracking tag in the summary. Click on it and check the "User Provided Data" tab. You should see the fields you mapped, and they should show a status indicating they have been successfully captured and hashed.

Next, you must wait. It typically takes 24 to 48 hours for data to populate in the Google Ads interface. Navigate to the "Diagnostics" tab within your conversion action. Here, Google will show you an Enhanced Conversions match quality score. This score tells you how many of your conversions included enhanced data and how successful Google was at matching that data to its users. If you see a "low" match quality, it often means you are only sending one match key, such as email. Adding phone numbers and address data can significantly improve this score.

Common mistakes we see

  • Attempting to SHA-256 hash the data in the dataLayer yourself before GTM receives it. This causes Google to hash a hash, which will never result in a match.
  • Mismatching the conversion action name. If your GTM tag is sending data for "Purchase" but the Google Ads conversion action is named "Online Sale," the data may not be correctly attributed.
  • Capturing data from the wrong page. We've seen cases where the dataLayer push happens on the checkout page, but the conversion tag only fires on the thank-you page. If the user's email is not persisted, the tag has nothing to send.
  • Ignoring the phone_number format. Google requires the E.164 format (e.g., +15551234567). If you send "555-1234", the match rate will plummet.
  • Failing to update the Global Site Tag (gtag.js) across the entire site. Enhanced Conversions work best when the tag can see the user's journey from the landing page to the conversion.
  • Not checking the Enhanced Conversions diagnostics for schema errors. Sometimes, a site update changes a variable name (e.g., from email to user_email), which silently breaks the GTM variable.

Implementation checklist

  • Enable Enhanced Conversions in the Google Ads Conversion settings and select the GTM method.
  • Sign the Google Ads Customer Data Terms in the account settings.
  • Configure a dataLayer.push on your thank-you page to expose plaintext user PII.
  • Create GTM Data Layer Variables for email, phone, and address fields.
  • Create a "User-Provided Data" variable in GTM and map it to your new variables.
  • Update your Google Ads Conversion Tracking tag to include the User-Provided Data variable.
  • Verify the implementation using Google Ads Tag Assistant Preview Mode.
  • Ensure Consent Mode v2 is active and that ad_user_data is being respected.
  • Monitor the Diagnostics tab in Google Ads after 48 hours for match quality scores.
  • Audit the site monthly to ensure that frontend changes haven't broken the dataLayer push.

How Samarth Analytics helps

Implementing Enhanced Conversions correctly is a technical hurdle that requires a deep understanding of both GTM and the Google Ads backend. At Samarth, we take the guesswork out of your tracking setup. We specialize in building durable, dataLayer-driven implementations that maximize your attribution accuracy while maintaining strict privacy compliance. Whether you are struggling with a low match quality score or need a full Consent Mode v2 integration, our team provides the senior-level consulting needed to optimize your marketing data. We ensure that the signals you send to Google are clean, deduplicated, and fully leveraged for your bidding strategies. To ensure your account is optimized for 2026, start with a free audit of your current tracking or contact us to discuss a custom measurement roadmap.

All analytics guides · Markdown version of this guide