New · A dedicated AI SEO channel: see conversions from ChatGPT, Perplexity, Claude & Gemini →
← Blog
Part of: SEO Conversion Tracking: Measure Conversions and Value from Organic Search →

What Is Conversion Tracking? How It Works, Setup and Examples

Portrait of Samy ThuillierBy ··13 min read
Diagram explaining what is conversion tracking: an ad click and an organic visit lead to a purchase that is recorded and credited to its source

Conversion tracking is the practice of recording when a visitor does something valuable on your site or app, such as buying, submitting a form, calling or signing up, and tying that action back to the ad, channel or page that brought them. A small piece of code records the action, and the data tells you which marketing produces results instead of just clicks.

This guide covers how conversion tracking works under the hood, what you can track, how Google Ads, Meta and GA4 each do it, how to set it up and test it, and why their numbers never match. It also covers what most guides skip: tracking conversions from channels that have no ad click, like organic search and AI assistants, and a worked example with real arithmetic.

What Is Conversion Tracking?

A conversion is a visitor completing the action you want. Conversion tracking is the system that notices each one and records where it came from. That second part is what makes it useful. In a hypothetical store, the order system knows you sold 120 things this month. Conversion tracking tells you that 45 of them came from one Google Ads campaign, 30 from organic search and 8 from an email.

The term is used in two slightly different ways. In ad platforms like Google Ads and Meta, “conversion tracking” means the feature that counts conversions after someone interacts with your ads, so you can report on them and let the platform bid toward them. In analytics, it means recording important actions from every traffic source, paid or not. Both rely on the same mechanics.

What Counts as a Conversion

Anything measurable that moves someone closer to paying you. Common examples, grouped the way ad platforms group them:

TypeExamplesUsually primary or secondary
SalesPurchase, subscription start, paid upgradePrimary
LeadsContact or quote form, demo request, booked appointmentPrimary
CallsCalls from an ad, clicks on a tel: link, calls to a tracked number on your sitePrimary for local and service businesses
AppInstall, first open, in-app purchasePrimary for app businesses
OfflineClosed deal in a CRM, in-store sale after an online visitPrimary when you can import it
Micro stepsAdd to cart, newsletter signup, pricing page view, file downloadSecondary

For a deeper list with counting rules for each, see our guide to conversion events.

How Conversion Tracking Works

Every setup, whatever the platform, follows the same three steps.

  1. Remember where the visitor came from. When someone clicks an ad, the platform adds a click ID to the landing URL (Google uses gclid, Meta uses fbclid). A tag on your site stores it, usually in a first-party cookie. Analytics tools also read the referrer and any UTM parameters to work out the source.
  2. Notice the action. A tag, also called a pixel or snippet, fires when the conversion happens: on the thank-you page that only loads after a purchase, or on the form submit or button click itself. It sends an event with details such as the value and an order ID.
  3. Match the action to the source. The platform links the conversion to the stored click or visit and credits the ad, keyword, campaign or channel, according to its attribution rules and time window.

Google describes its own version plainly: you add the Google tag to your site, a cookie is set when someone clicks your ad, and when they complete the action the tag recognizes it and records a conversion. Some conversions need no tag at all, such as calls through Google forwarding numbers or app installs from Google Play (Google Ads Help, About conversion measurement).

Why Conversion Tracking Matters

  • You see what pays, not what gets clicked. A campaign with lots of cheap clicks can produce nothing. Conversion data shows which campaigns, keywords and pages lead to revenue.
  • You can move budget with evidence. Cost per conversion and return on ad spend let you cut what loses money and scale what earns it.
  • Automated bidding needs it. Google and Meta bidding strategies that aim for conversions or a target cost learn from the conversions you send them. No data, or bad data, means the system optimizes toward the wrong thing.
  • You find where people drop off. Tracking steps such as add to cart, checkout start and purchase shows the stage where a funnel leaks, which points to the page or form to fix.
  • You can prove results. Agencies and in-house teams can report sales and leads, not traffic, which is what owners actually ask about.

The Metrics Conversion Tracking Produces

Once conversions are recorded, a handful of numbers follow directly:

Conversion rate = conversions ÷ clicks (or sessions) × 100
Cost per conversion (CPA) = ad spend ÷ conversions
Return on ad spend (ROAS) = conversion value ÷ ad spend

An illustrative example: 2,000 clicks and 60 conversions is a 3% conversion rate. If those clicks cost $1,800, each conversion cost $30.

A naming mix-up you will run into

Some glossaries define “CTR” as “conversion tracking rate,” meaning conversions divided by clicks. In Google Ads, Meta and almost every analytics tool, CTR means click-through rate (clicks divided by impressions), and conversions divided by clicks is called the conversion rate. Use the standard terms so your reports match what the platforms show.

Conversion value is what turns these counts into money. Purchases carry their order value. Leads need a value you assign, based on how often they close and what a customer is worth. Our guide on how to calculate conversion value walks through the formula.

Conversion Tracking Methods Compared

There are several ways to record a conversion. Most accounts use two or three of them together.

MethodHow it records the conversionGood forWeak spot
Thank-you page (URL rule)Counts a conversion whenever a confirmation URL loadsSimple forms and checkouts with a unique confirmation pageReloads and bookmarks count again; useless if the form does not change the URL
Event tagA snippet or Tag Manager trigger fires on the submit, click or purchase eventForms on one page, button clicks, single-page appsNeeds testing after every site change
Analytics importMark an event as a key event in GA4 and import it into Google AdsSites already using GA4 wellSlower to report and credited by GA4 rules
Click ID or CRM importStore the click ID with the lead, then upload the closed sale laterLead generation with a sales team, phone sales, long cyclesNeeds the click ID saved at form submit
Server-sideYour server or a server container sends the conversion, for example Meta’s Conversions API or server-side Tag ManagerRecovering events lost to ad blockers and browser limitsMore setup and hosting; must deduplicate with browser events
Hashed customer dataSends hashed email or phone with the conversion (Google Enhanced Conversions) so the platform can match it to a signed-in userCross-device journeys and cookie lossNeeds consent and an email or phone at conversion
Call trackingForwarding numbers or tracked numbers record calls and their sourceLocal and service businessesOnly counts calls to the tracked number
Link or UTM trackingTags each link so the landing visit carries a known sourceEmail, social, SMS, QR codesUTMs get dropped when links are copied or stripped

If you want to go further on server-side setups, see server-side GTM.

Conversion Tracking in Google Ads, Meta and GA4

Google Ads

You create a conversion action under Goals, Conversions, choose its category (purchase, lead, and so on), how to count it (every conversion or one per click), its value, and its windows. The Google tag goes on every page, and the conversion is triggered either by a page URL or an event snippet. Google can also track calls and app installs, and accepts offline conversions uploaded with the click ID. The same Google Ads help article notes that click IDs used for offline imports must be within 90 days.

Meta (Facebook and Instagram)

The Meta Pixel loads on every page and sends standard events such as Lead, Purchase or Contact when they happen. The Conversions API sends the same events from your server, website platform or CRM. When you run both, give each event the same event ID so Meta counts it once.

Google Analytics 4

GA4 records events from all traffic, paid or not. You mark the events that matter as key events (GA4’s name for what it used to call conversions), and you can import them into Google Ads. Our GA4 conversion tracking guide has the full setup.

Conversion Tracking vs a Retargeting Pixel

The same base tag often does both jobs, which is why they get confused. A retargeting pixel observes behavior: pages viewed, products browsed. Platforms use it to build audiences you can show ads to later. Conversion tracking confirms an outcome: this person bought, this person submitted the form. One fills audiences, the other measures results. You need both if you run paid social or display, and having the pixel installed does not mean conversions are being counted until you define them.

Click-Through vs View-Through Conversions

A click-through conversion follows a click on your ad. A view-through conversion follows an ad impression with no click, within a set window. Search ads mostly drive click-through conversions. Display, video and social ads claim many view-through conversions, because people see an ad, do nothing, and buy days later.

Windows control how long after the click or view a conversion can still be credited. In Google Ads the click-through window defaults to 30 days and can be set from 1 to 90 days for Search and Display, the engaged-view window defaults to 3 days, and the view-through window defaults to 1 day (Google Ads Help, About conversion windows). Pick windows that match how long your customers actually take to decide; our guide to the attribution window compares platform defaults.

Treat view-through numbers with care. Someone who saw your ad and later bought may have bought anyway. The only way to know whether ads caused the extra sales is an incrementality test: hold some audiences or regions back from seeing ads and compare conversions.

Attribution: Which Touchpoint Gets the Credit

Buyers often touch several channels before converting. The attribution model decides how the credit is split:

  • Last click: all credit to the final click. Simple, and it favors channels that close. More on last click attribution.
  • First click: all credit to the touchpoint that started the journey.
  • Linear, time decay and position based: fixed rules that spread credit across touchpoints. Google Ads and GA4 have retired these rule-based options, but many other tools still offer them.
  • Data-driven: credit assigned from patterns in your own conversion paths. It is the default in Google Ads and GA4.

How to Set Up Conversion Tracking

The platform menus differ, but the work is the same everywhere.

Step 1: Decide what counts as a conversion

List the actions that make you money. Mark one or two as primary (purchase, qualified lead) and the rest as secondary. Bidding optimizes toward primary conversions, so a newsletter signup marked primary will pull spend toward cheap signups. Give each conversion a value.

Step 2: Install the base tag on every page

Add the Google tag, Meta Pixel or your analytics snippet site wide, either in the site’s head or through Google Tag Manager. The tag must be on the landing page to capture the click ID, not only on the thank-you page.

Step 3: Define the conversion

Use a URL rule if the action always loads a unique confirmation page. Use an event (form submit, button click, purchase event) if it does not, which is common with embedded forms and single-page sites.

Step 4: Send value and a unique ID

For purchases, pass the order total and the order or transaction ID. The ID lets platforms drop duplicates when a page reloads or the same event arrives from both the browser and the server.

Step 5: Test it

Complete the action yourself and confirm exactly one conversion is recorded with the right value. The next section shows how.

Step 6: Connect offline results and compare to your records

If sales close later by phone or with a sales team, save the click ID with each lead and import closed deals from your CRM. Then compare tracked totals with your order system or CRM every month.

How to Check Conversion Tracking Is Working

  • Watch the tag fire. Use Google Tag Assistant, the Meta Pixel Helper or GA4 DebugView while you complete a real conversion on the live site, not only in preview mode.
  • Read the status. In Google Ads, a new conversion action shows as Unverified until it records its first conversion or a successful test event. Data from GA4 links and offline imports can take 24 to 48 hours to appear (Google Ads Help).
  • Count once. Reload the thank-you page. If a second conversion appears, add a transaction ID or switch to an event trigger.
  • Reconcile with the backend. Compare a week of tracked conversions with your orders or CRM leads. Some loss is normal; a large or sudden gap means something broke.

Common Reasons Conversion Tracking Breaks

SymptomLikely causeFix
Zero conversionsTag missing from the conversion page, or the conversion action is not set as primaryCheck with Tag Assistant; confirm the action is primary and enabled
Conversions doubledThank-you page reloads, or the same event sent by browser and server without a shared IDSend a transaction or event ID; count one per click for leads
Form leads not countedThe form submits without loading a new URL, so a URL rule never matchesTrigger on the form submit event or a success message instead
Sales credited to a payment siteBuyers leave for PayPal or Stripe and return, starting a new referral visitIn GA4, add the processor under List unwanted referrals
Paid sales showing as directCheckout on another domain loses the click IDSet up cross-domain measurement so the ID carries across
Sudden drop after a redesignTag Manager triggers point to old button IDs or URLsRetest every conversion after each site release
Lower counts in some regionsConsent banner blocks tags until visitors acceptImplement consent mode and expect some modeled data

Google’s documentation names the payment processor case directly as a reason to list unwanted referrals (Analytics Help, Identify unwanted referrals). For consent settings, see consent mode v2.

Why Google Ads, Meta and GA4 Never Agree

Each ad platform counts the conversions it can link to its own ads, using its own windows and its own view-through rules. None of them knows about the others. When one buyer clicks a Google ad on Monday, sees a Meta ad on Wednesday and buys on Friday, both platforms claim the sale. GA4 sees the whole site and gives the sale to one channel.

So adding up platform reports will often give you more conversions than you actually had. That is not a bug in any one tool. It means platform numbers are for optimizing inside that platform, and a single neutral source (your analytics or your backend) is for comparing channels.

Worked Example: From Tracked Conversions to Real Returns

The numbers below are illustrative, for a small online store in one month, to show the arithmetic from start to finish.

Illustrative month
Backend: 120 orders, $12,000 revenue ($100 average)
Google Ads spend: $3,000
Meta spend: $2,000
SourceConversionsValueSpendCost per conversionROAS
Google Ads (own report)70$7,000$3,000$42.862.33
Meta (own report, incl. view-through)55$5,500$2,000$36.362.75
Google Ads paid (GA4)45$4,500$3,000$66.671.50
Meta paid (GA4)25$2,500$2,000$80.001.25
Organic search (GA4)30$3,000---
Direct and email (GA4)20$2,000---

What the example shows:

  • The two ad platforms claim 70 + 55 = 125 conversions. The store only had 120 orders, and GA4 says 50 of them came from channels that were not ads at all.
  • By its own report, Meta looks like the better buy (ROAS 2.75 vs 2.33). On the GA4 view it is the weaker one (1.25 vs 1.50). The ranking flips depending on which source you trust.
  • At a 40% gross margin, a ROAS of 1.25 returns $1.25 × 40% = $0.50 of gross profit per $1 spent, so Meta loses money on the GA4 view, while the platform report says it is the star. That gap is the decision you need conversion tracking to make well.
  • Organic search produced 30 orders ($3,000) with no ad spend, and neither ad platform reports any of it.

Conversion Tracking Without Ads: Organic Search and AI Assistants

Almost every guide to conversion tracking is about ads, because ads come with click IDs. Organic search and AI assistants like ChatGPT and Perplexity do not. There is no gclid on a Google organic result and no click ID on a cited link in an AI answer, so ad platforms cannot see these conversions at all. Only tools that see your whole site can.

  • The source comes from the referrer. A visit from google.com is organic search; a visit from chatgpt.com or perplexity.ai is an AI assistant. When an app or browser strips the referrer, the visit lands in Direct, and no tool can honestly recover it.
  • Keywords are hidden, so report by landing page. Search engines do not pass the search term, so the useful unit is the landing page: which organic pages start the sessions that convert, and what those conversions are worth.
  • Value matters more than count. A blog post that brings 3 demo requests worth $600 each beats a page that brings 40 newsletter signups. Assign values and compare pages in dollars.

Our pillar guides cover both in depth: SEO conversion tracking and AI conversion tracking. If you want this without building it in GA4, SEOConversion is a cookieless, first-party tracker that records conversions from organic search and AI assistants and reports conversions and value by landing page, from one script.

Privacy, Cookies and Lost Conversions

Conversion tracking has always depended on remembering a visitor between the click and the action. Browser privacy features shorten how long cookies last, ad blockers stop tags from loading, and consent rules mean some visitors are never tracked. The result is that every browser-based setup misses some conversions.

Platforms respond in three ways: server-side sending (Conversions API, server-side Tag Manager), hashed customer data (Enhanced Conversions), and modeling of the conversions they cannot observe. Each recovers some signal; none makes the numbers exact. If you want to measure without third-party or persistent cookies, see cookieless tracking.

FAQ

What is the purpose of conversion tracking?

Its purpose is to connect money spent on marketing to the results it produces. Without it you only know clicks and visits. With it you know which ads, keywords, channels and landing pages lead to sales or leads, what each one costs, and where to move budget. Ad platforms also use the data to bid automatically toward people likely to convert.

What does “conversion” mean in simple terms?

A conversion is a visitor doing the thing you wanted them to do. For a store it is usually a purchase. For a service business it is a form submission, a call or a booked appointment. Smaller steps, like a newsletter signup or an add to cart, can also be tracked as secondary conversions.

How do I test if Google Ads conversion tracking is working?

Open your site with Google Tag Assistant connected, complete the conversion yourself, and confirm the conversion tag fires on the right page or event. In Google Ads, check the status column under Goals, Conversions: a new action shows Unverified until it records a first conversion or test event. Then compare a week of Google Ads conversions with your own order or lead records.

Why isn’t my Google Ads conversion tracking working?

The usual causes are a tag missing from the page where the conversion happens, a conversion event that never fires because the form does not load a new URL, consent settings that block the tag, or a checkout on another domain that drops the click ID. Also check that the conversion action is set as primary, and allow up to a day before deciding nothing is being recorded.

How do I set up Google conversion tracking?

In Google Ads, go to Goals, Conversions and create a new conversion action for your website. Install the Google tag on every page, then define the conversion either by a thank-you page URL or by an event snippet that fires on the action. Add a value and a transaction ID for purchases, test it, and if you already use GA4 you can import key events instead.

Is conversion tracking the same as Google Analytics?

No. Google Analytics records what all visitors do, from every source, and lets you mark important events as key events. Conversion tracking in an ad platform records only the conversions it can tie to its own ads, for reporting and bidding. Many sites use both, and the numbers differ because each tool credits conversions by its own rules.

Track the conversions your ad platforms cannot see.

SEOConversion records conversions from organic search and AI assistants with one cookieless script, lets you put a value on each one, and reports conversions and value by landing page.

Start free