# Conversion tracking tags on every ad platform

> How conversion tracking tags work on Google Ads, the Meta pixel, Microsoft UET and the ChatGPT Ads pixel, with server-side events and how to test them.

A conversion tracking tag is code on your website that tells an ad platform when someone who clicked or saw your ad does something valuable, such as buying, signing up or booking. Google Ads uses the Google tag, Microsoft Advertising uses the UET tag, Meta uses the Meta pixel and ChatGPT Ads uses OpenAI's measurement pixel, and each also accepts server-side events. This guide shows how to set up each one, which events to send and how to check it actually works.

## In short

- Every platform needs its own tag on your site, plus a conversion action or goal that says which events count.
- Send real business outcomes (purchases, leads, sign-ups) as conversions, with their value where you have it. Page views are not results.
- Server-side events (the Conversions APIs of Meta, Microsoft and OpenAI, or Google's server-side tagging) recover conversions the browser misses. Google's enhanced conversions add hashed first-party data to improve matching.
- When you send the same conversion from the browser and the server, give both the same event ID so it is counted once.
- Test every tag with the platform's own tool, then compare a week of conversions with your own sales or lead records.

## How does conversion tracking work?

The same pattern runs on every platform:

1. **A click identifier.** When someone clicks your ad, the platform adds an identifier to the landing page address (such as Google's gclid or Microsoft's msclkid) or stores one in a first-party cookie.
2. **A base tag on every page.** The tag loads on your site and remembers that visit.
3. **An event when something valuable happens.** On the thank-you page, or when a form is submitted, the tag sends an event such as "purchase" with its value.
4. **A conversion action or goal.** In the ad platform, you say which events count as conversions and how. Bidding then optimizes towards them.
5. **Optional server events.** Your server sends the same event directly, which survives ad blockers and browser limits better.

Here is how the four platforms compare:

| Platform | Browser tag | Server-side option | Where you test it |
| --- | --- | --- | --- |
| Google Ads | Google tag (gtag.js), or Google Tag Manager | Enhanced conversions and server-side tagging | Google Tag Assistant, conversion status in Goals |
| Microsoft Advertising | UET tag | Conversions API (CAPI) | UET Tag Helper, tag status |
| Meta | Meta pixel | Conversions API | Test Events in Events Manager, Meta Ads Data Advisor |
| ChatGPT Ads | OpenAI measurement pixel | OpenAI Conversions API | Pixel test session and Event Stream in Ads Manager |

## How do I set up Google Ads conversion tracking?

[Google's setup guide](https://support.google.com/google-ads/answer/6095821) starts from the **Goals** menu:

1. Open **Goals**, then **Summary**, and select **Edit data sources** for conversions on a website.
2. Enter your domain and select **Scan**. Google checks whether a Google tag is already on your site.
3. Choose the category that matches the action, such as purchase, submit lead form or sign-up.
4. Create the conversion from a Google tag event, or from a Google Analytics event if your Google Analytics property is linked.
5. Choose how to measure it: **automatically without code** (by matching a page URL, such as "URL contains /thank-you"), **manually using code** (an event snippet for button clicks or dynamic values), or **set up in Google Tag Manager**.
6. Finish the setup, including enhanced conversions if you want them, and select **Agree and finish**.

### What are enhanced conversions?

[Enhanced conversions](https://support.google.com/google-ads/answer/9888656) add first-party data, such as the email address someone entered at checkout, to your conversion tags. The data is hashed with SHA-256 before it leaves your site, and Google uses it to match conversions to signed-in Google accounts that clicked your ads. Enhanced conversions for leads do the same for leads that turn into sales offline. Turn them on if your forms collect email addresses and your privacy policy allows it.

### Primary or secondary?

Each conversion action is primary or secondary. Primary actions appear in the Conversions column and feed bidding; secondary ones are for reporting only. Keep only real business outcomes primary. A page view or a scroll marked as primary teaches smart bidding to buy cheap clicks that never become customers, and makes [wasted spend](/guides/how-to-reduce-google-ads-wasted-spend) hard to see.

### How do I check Google's tag works?

Go back to **Goals**, then **Summary**, and look at the **Status** column for each action. A new tag shows as unverified for a while. [Google suggests Tag Assistant](https://support.google.com/google-ads/answer/10989978) when an action stays **Unverified** or shows **Tag inactive** or **Needs attention**: it loads your site, shows which tags fire and flags errors. Complete a real test conversion and check it arrives.

## How do I set up the Microsoft UET tag?

Microsoft Advertising tracks conversions through a Universal Event Tracking (UET) tag. One tag goes on every page of your site, and conversion goals decide which visits or events count.

1. In Microsoft Advertising, create a UET tag in the UET section of your account, or reuse one you already have.
2. Add the tag code to every page of your site, directly or through Google Tag Manager.
3. Create a conversion goal on that tag. A goal can be a destination URL (a thank-you page), an event (such as a form submission sent with the tag's event code), a visit length or pages per visit. [Microsoft's guide to creating a conversion goal](https://learn.microsoft.com/en-us/advertising/msa-help/hlp_ba_proc_uetv2creategoal) covers the options.
4. Turn on auto-tagging, so Microsoft adds its msclkid click ID to your landing pages.

### How do I check the UET tag?

The tag has a status: **Unverified** until Microsoft receives data (which can take up to a day), **Active** when it is receiving data and **Inactive** when no data has arrived in the last 24 hours. Goals on an active tag show whether they are recording conversions.

Microsoft's **UET Tag Helper** browser extension, for Edge and Chrome, checks a page for you. Turn it on, reload your site and it shows whether your tags fire and flags problems. Wait until the tag has been on your site for more than 24 hours before you rely on its results.

### Server-side: Microsoft's Conversions API

Microsoft documents a [Conversions API (CAPI)](https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration) for sending website, CRM, offline and app events from your server. Microsoft recommends using it together with UET, and when both send the same conversion, using the same `eventId` and event name so it isn't counted twice. You get its token from your UET tag's settings by choosing **Use Conversions API**. If you don't see that option, check with Microsoft whether it is available on your account.

## How do I set up the Meta pixel?

The Meta pixel is the browser tag for Facebook and Instagram ads. Its events go to a dataset in Meta Events Manager, which can also receive events from your server.

1. In Meta Events Manager, create a dataset (pixel) for your website, or open the one you have.
2. Add the pixel's base code to every page, directly, through a partner integration for your website platform or through a tag manager.
3. Add standard events where actions happen. Meta's [standard events](https://developers.facebook.com/docs/meta-pixel/reference) include `Purchase`, `Lead`, `CompleteRegistration`, `AddToCart`, `InitiateCheckout`, `ViewContent`, `Subscribe` and `StartTrial`. Send a purchase with its `value` and `currency`.
4. If you need a conversion that no standard event covers, create a custom conversion from an event or a URL rule.

A Sales or Leads campaign then optimizes for one of these events. Our guide on [running Meta ads](/guides/how-to-run-meta-ads-with-ai) covers how campaigns use them.

### Meta's Conversions API

The [Conversions API](https://developers.facebook.com/docs/marketing-api/conversions-api) sends events from your server, website platform or CRM to the same dataset. Meta says that if you already have a pixel, you can set it up for website events from Events Manager without writing code; developers can also call the API directly.

When you send the same event from the pixel and the server, Meta [deduplicates them](https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events) by matching the event name and the event ID. The pixel's `eventID` must equal the server's `event_id`, and the two must arrive within 48 hours of each other.

### How do I check the Meta pixel works?

- **Meta Ads Data Advisor,** the browser extension formerly called Meta Pixel Helper, works in Chrome and Edge. Open your site, turn off any ad blocker, trigger the action and check the event shows as successful.
- **Test Events** in Events Manager shows browser and server events as they arrive, so you can confirm both sides and the deduplication.
- **Event Match Quality** in Events Manager scores how well your server events can be matched to Meta accounts. More customer details (hashed email, phone) usually mean a higher score.

## How does ChatGPT Ads conversion tracking work?

ChatGPT Ads measures conversions with the OpenAI measurement pixel, a browser SDK, and an optional Conversions API for server events. [OpenAI's help article on conversion measurement](https://help.openai.com/en/articles/20001409-conversion-measurement) explains that you create a data source in Ads Manager and send events through the pixel, the Conversions API or both, and that the pixel stores the ad click reference in a first-party cookie.

According to [OpenAI's pixel documentation](https://developers.openai.com/ads/measurement-pixel):

1. Create a pixel in the **Conversions** area of ChatGPT Ads Manager and copy its Pixel ID.
2. Add the pixel snippet near the top of the `<head>` of your pages.
3. Initialize it with `oaiq("init", { pixelId: "..." })`.
4. Send conversions with `oaiq("measure", ...)` and a standard event name. Standard events include `order_created`, `lead_created`, `registration_completed`, `checkout_started`, `items_added`, `subscription_created`, `trial_started` and `appointment_scheduled`.
5. If you also send the event from your server, pass the same `event_id` in both. OpenAI deduplicates on the Pixel ID, event name and event ID.

App installs and app opens aren't supported by the pixel; OpenAI says to send those through the Conversions API.

### How do I check the OpenAI pixel works?

- In Ads Manager, open **Conversions**, then **Data Source**, open the menu for your web pixel and choose **Test**. Enter a page where the pixel is installed and start testing.
- Act on your site, then look in **Event Stream**. Test events are labelled "Test".
- During development, add `debug: true` to the init call to log the pixel's activity in the browser console.

For campaign setup on the platform, see our guide on [how to run ChatGPT ads](/guides/how-to-run-chatgpt-ads).

## How do I know my conversion tracking is right?

A tag that fires is not the same as tracking that is right. Run these checks on every platform:

1. **Make a test conversion** and watch it arrive in the platform's testing tool.
2. **Compare a week** of reported conversions with your own orders or leads. A small gap is normal. Double the number, or half, means something is wrong.
3. **Look for double counting.** Two primary actions for the same sign-up, or a browser and server event without a shared event ID, count one customer twice.
4. **Check the counting rule.** For leads, count one conversion per click; for purchases, count every one.
5. **Watch for more conversions than clicks.** On a search campaign, this usually means a page view or a repeated event counts as a conversion.
6. **Check consent.** If your site asks for cookie consent, check how each tag behaves when people decline, and whether you pass consent signals to the platform.

Expect platforms to disagree with each other and with your analytics. OpenAI's help article lists the usual reasons: different attribution windows and methods, time zones, consent and storage conditions, deduplication and campaign settings. Each platform also only sees the people its own ads reached.

## Doing this with Roasby

Roasby reads conversion tracking on all four platforms: Google Ads conversion actions and goals, Microsoft Ads goals and UET tag status, Meta pixels and custom conversions, and ChatGPT Ads conversion events. Ask your AI assistant to audit it, and it gets a summary per source plus health checks, such as primary actions that stopped recording, active UET tags whose goals recorded nothing in 7 days or have no goals, mostly engagement actions counted as primary, more conversions than clicks and Meta pixel events no ad set uses. With your confirmation, it can fix settings like primary or secondary, counting and value. Roasby doesn't install tags on your site: you add them through each platform, as above. Creating a Meta custom conversion or a ChatGPT Ads conversion event can't be reverted, so it is off unless your workspace allows [changes that can't be reverted](/docs/safety-model#changes-that-cant-be-reverted) and you confirm twice in chat. See the [conversion tracking check](/use-cases/conversion-tracking) and [Conversions](/docs/conversions) in the docs.

## Questions, answered

### What is the Meta pixel?

The Meta pixel is a piece of JavaScript you add to your website so Meta can record what people do after seeing or clicking your Facebook and Instagram ads, such as a purchase or a lead. Its events go to a dataset in Events Manager, which can also receive server events through the Conversions API.

### What is a UET tag?

UET stands for Universal Event Tracking. It is the Microsoft Advertising tag you place on every page of your site so Microsoft can record conversions from Bing and the rest of the Microsoft network. You then create conversion goals that use the tag's data.

### Do I need the Conversions API if I already have a pixel?

You do not strictly need it, but Meta, Microsoft and OpenAI all recommend sending server events alongside the browser tag. Browsers, ad blockers and consent choices stop some browser events, and a server event fills the gap. Send both with the same event ID so the platform counts the conversion once.

### How does ChatGPT Ads track conversions?

OpenAI's measurement pixel runs on your site and records events such as order_created or lead_created after someone clicks an ad in ChatGPT. You create the pixel in the Conversions area of Ads Manager, and you can also send events from your server through OpenAI's Conversions API.

### Why do my ad platforms report different conversion numbers?

Each platform uses its own attribution window and model, counts in its own time zone and only sees the clicks and views it served. Consent choices and deduplication also differ. Some difference between platforms, and between a platform and your analytics, is normal.
