Skip to content

Server-Side TrackingPublished 12 min read

First-Party Data for Ad Tracking: A Guide for Agencies

What first-party data actually is, why it now carries most of the weight in Google Ads, GA4 and Meta measurement, and how to collect and send it without breaking consent rules.

Muhammad Qitmeer, founder of Augere Labs
Muhammad Qitmeer
Co-founder and CEO, Augere Labs
Share

First-party data is information a customer gives directly to the business they are dealing with: the email on a lead form, the phone number on a booking, the order in the store, the deal stage in the CRM. Google's own policy defines it as "customer information that's shared directly with you by the customer." For ad tracking it now does most of the work that third-party cookies used to do. Enhanced conversions, enhanced conversions for leads, offline imports, Meta's Conversions API and Customer Match all run on it. Used well, it recovers conversions that cookies miss. Used carelessly, it breaks consent rules and sends junk that no platform can match.

This guide is for agencies setting up or auditing client tracking. It covers the definitions people mix up, what browsers actually do to cookies in 2026, where first-party data plugs into Google Ads, GA4 and Meta, how to hash it correctly for each platform, and the consent rules that sit on top of all of it.

First-party, second-party and third-party data

The terms get used loosely, so it helps to pin them down before talking to a client.

TypeWhat it isExample
First-party dataCollected by the business directly from its own customers and visitorsLead form fields, CRM records, purchase history, on-site behaviour measured by the business's own tags
Second-party dataAnother company's first-party data, shared directly under an agreementA retail partner sharing its customer list with a brand for a joint campaign
Third-party dataCollected by a company with no direct relationship with the people in it, then sold or shared widelyPurchased audience segments, data broker lists

Google's customer data policy is the definition that matters most in practice: unless an advertiser sells through retailers, it may only upload first-party data to Google Ads. A purchased list is not allowed into Customer Match or enhanced conversions, whatever the vendor says.

First-party data is not the same as first-party cookies

A first-party cookie is set on the domain the visitor is actually browsing, so the cookie's domain matches the address bar. A third-party cookie belongs to a different domain, usually an ad tech service loaded on the page. The Google Ads _gcl_aw cookie and Meta's _fbp cookie are first-party cookies, even though they are set by Google and Meta scripts, because they live on the client's domain.

First-party cookies are a delivery mechanism. First-party data is the information itself. A setup can use first-party cookies and still have almost no first-party data, for example a site that measures page views but never passes the email from its lead form to anything.

What browsers do to cookies in 2026

The reason first-party data matters so much is that the browser-only picture keeps getting less complete. The current state:

  • Chrome did not remove third-party cookies. In April 2025 Google said it would not roll out a standalone prompt and that users would keep managing third-party cookies in Chrome's privacy settings. In October 2025 Google announced it was retiring most Privacy Sandbox technologies, including the Attribution Reporting API and Topics, citing low adoption.
  • Safari blocks all third-party cookies by default. Its Intelligent Tracking Prevention also deletes cookies set by JavaScript after 7 days without user interaction, and caps JavaScript cookies at 24 hours when the visitor arrives from a link that carries a click ID. That last rule hits gclid and fbclid landings directly.
  • Firefox turns on Total Cookie Protection by default, which gives every site its own cookie jar so third-party cookies cannot follow people across sites.

Add ad blockers and consent refusals, and a real share of conversions never reach the ad platforms through browser tags alone. First-party data sent alongside, or from the server, is how platforms match those conversions back to people.

Where first-party data plugs into Google Ads

Enhanced conversions for web

Enhanced conversions add hashed customer details, such as email, phone, name and address, to the conversion tag when someone converts on the site. Google matches the hashed values to signed-in Google accounts inside what it calls a confidential computing environment, and credits conversions that the cookie alone would have lost. For lead forms and checkouts this is usually the single most valuable first-party data change. Our enhanced conversions setup guide walks through the GTM and Google tag options.

Enhanced conversions for leads and offline imports

For lead generation the sale happens later, in the CRM. Enhanced conversions for leads captures the hashed email or phone when the form is submitted, then imports the outcome (qualified, booked, closed) against that same identifier. Google describes it as an upgraded version of offline conversion import that uses user-provided data, and recommends including the GCLID too where you have it.

Since June 15, 2026, new offline conversion imports and enhanced conversions for leads uploads go through Data Manager or the Data Manager API rather than the Google Ads API. See the Data Manager API change and our CRM offline import guide for the setup.

Customer Match

Customer Match uses uploaded customer lists for targeting and exclusions. It has eligibility rules: a good policy compliance history and payment history, and for full access at least 90 days of account history and more than USD 50,000 lifetime spend. Accounts that do not meet those get observation and exclusion use only. For users in the EEA, UK and Switzerland you need legally required consent, and since March 2024 EEA lists must carry the consent fields as granted.

Google tag gateway (formerly "first-party mode")

Google tag gateway for advertisers serves the Google tag from the client's own domain through a CDN, load balancer or web server, so some measurement requests reach Google via a first-party path. Google renamed it from "first-party mode" in 2025 and recommends it for the most durable tag configuration. Cloudflare has a guided setup, and a Google Cloud load balancer option became available in 2026.

Be precise with clients about what it does. It routes some requests through the first-party domain and helps tags survive blocking. It does not replace consent, it does not add first-party data to conversions on its own, and with the self-service setup you have to change the tag's script source on every page or browsers keep loading it from Google. It complements server-side tagging rather than replacing it; see is server-side tracking worth it for when the heavier setup pays off.

Where first-party data plugs into GA4

  • User-provided data collection lets GA4 receive hashed email, phone, name and address. It needs a linked Google Ads account, accepting the policy is permanent, and it is not available for properties in the health category. On the website GA4 can hash the values for you; through the Measurement Protocol you must hash them yourself.
  • User-ID sends your own ID for a signed-in person so GA4 can join their sessions across devices. It must not contain anything a third party could use to identify the person (no emails), it is limited to 256 characters, and it should be set to null on logout rather than to a blank or dummy value.
  • Offline events from the CRM can go in through the Measurement Protocol; our guide to GA4 Measurement Protocol offline events covers the pitfalls.

Where first-party data plugs into Meta

  • Conversions API. Server events carry a user_data object (our Meta Conversions API guide covers the setup options). Email, phone, names, date of birth, gender, city, state, zip and country must be hashed. external_id should be hashed. IP address, user agent, fbc and fbp must never be hashed. More identifiers, correctly formatted, means higher event match quality.
  • Advanced Matching on the Pixel sends customer details from the browser. Automatic Advanced Matching is switched on in Events Manager; manual Advanced Matching passes values in fbq('init'), and the Pixel hashes them itself.
  • Customer list Custom Audiences accept SHA-256 hashed lists for targeting and exclusions, after the Custom Audience terms are accepted.

If a client runs the Pixel and the Conversions API together, the same conversion has to carry a shared event ID or it gets counted twice. The deduplication guide covers that step.

Normalize and hash correctly, per platform

Hashing is where most first-party setups quietly fail. SHA-256 of a badly formatted value produces a perfectly valid-looking hash that matches nobody. Normalize first, then hash, and note that Google and Meta disagree on phone numbers.

FieldGoogle Ads (enhanced conversions)Meta (Conversions API)
EmailTrim, lowercase. For gmail.com and googlemail.com only, remove dots and any "+" suffix before the @Trim, lowercase
PhoneE.164 format with the plus sign, e.g. +16505551212Digits only with country code, no plus sign or leading zeros, e.g. 16505551212
First and last nameTrim, lowercaseLowercase, no punctuation, UTF-8
City, region, postcode, countrySent unhashed in the address fields; country as a two-letter ISO codeHashed; country as a lowercase two-letter ISO code
Output64-character lowercase hex SHA-25664-character lowercase hex SHA-256

Three errors account for most failures in audits: hashing the phone number with the wrong format for the platform, hashing before lowercasing, and double hashing where a plugin hashes a value and a server tag hashes it again. If you let the platform tag hash the value (Google tag, Meta Pixel), do not hash it yourself as well.

Consent comes first

First-party does not mean consent-free. Google's EU user consent policy requires advertisers with users in the EEA, UK and Switzerland to get consent for cookies and for the use of personal data for ad personalization, to keep records of it, and to name the parties who use the data. In practice that runs through Consent Mode v2:

  • ad_user_data controls whether user data related to advertising can be sent to Google. It is required for measurement features such as enhanced conversions.
  • ad_personalization controls personalized advertising, including remarketing. Both have to be granted for personalized ads.
  • Moving tracking to the server does not move it outside consent. A server container should respect the same choice the banner recorded.

The client's legal advisor decides what the banner and privacy notice must say. Our job is to make the tags follow that decision exactly. The Consent Mode v2 implementation guide covers the setup, and privacy-safe ad tracking covers what to do for clients who cannot send personal data at all.

A first-party data checklist for a client account

  1. List what the business already collects and where it lives: form fields, booking tools, checkout, CRM stages, call tracking.
  2. Confirm consent and disclosure with the client: does the privacy notice cover sharing customer data with ad platforms for measurement, and does the banner set ad_user_data correctly?
  3. Turn on enhanced conversions for the main conversion actions, and check in the diagnostics that hashed data actually arrives.
  4. Capture click IDs and hashed identifiers with every lead and store them in the CRM, so later outcomes can be imported. Our GCLID guide covers keeping click IDs alive.
  5. Send Meta server events with customer information and a shared event ID, then check event match quality per event.
  6. Import qualified outcomes through Data Manager for Google and through CRM events for Meta, so bidding learns from real leads rather than form fills.
  7. Verify with test conversions, not with settings screens. A logged test lead, with the identifiers you expect visible in each platform's diagnostics, is the only proof that it works.

Getting it set up

For most agency clients, the gap is not a lack of first-party data. The data is sitting in the form and the CRM; it just never reaches the ad platforms in a usable shape. Our CRM lead attribution and privacy and consent services connect it properly, and the tracking health check gives a quick first read on a client site.

Just one quick fix, not a whole account? Our founder takes small fixed-price jobs on Fiverr: Meta Conversions API and duplicate event fix

Frequently asked questions

What is first-party data in simple terms?

Information customers give directly to the business they are dealing with, such as the email on a lead form, a phone number on a booking or an order in the store. Google defines it as customer information that's shared directly with you by the customer.

What is the difference between first-party data and third-party data?

First-party data comes straight from the business's own customers and visitors. Third-party data is collected by a company with no direct relationship with the people in it and then sold or shared. Google Ads only accepts first-party data for uploads such as Customer Match and enhanced conversions, unless the advertiser sells through retailers.

Is first-party mode the same as Google tag gateway?

Yes. Google renamed first-party mode to Google tag gateway for advertisers in 2025. It serves the Google tag from your own domain through a CDN or load balancer. It helps tags survive blocking but does not replace consent or add customer data to conversions by itself.

Do I need consent to use first-party data for ads?

Where the law requires it, yes. Google's EU user consent policy covers users in the EEA, UK and Switzerland, and Consent Mode v2's ad_user_data signal must be granted before user data is sent to Google for advertising, including enhanced conversions.

Should phone numbers include the plus sign before hashing?

It depends on the platform. Google's enhanced conversions expect E.164 format with the plus sign. Meta's Conversions API expects digits only with the country code and no plus sign. Normalize for each platform separately before hashing.

Muhammad Qitmeer

Written by

Muhammad Qitmeer, founder of Augere Labs

Augere Labs is the white-label tracking partner behind marketing agencies. If a client account has numbers you don't trust, I'm happy to look at it with you and tell you straight what's wrong.

Connect on LinkedIn