ChatGPT Ads dynamic URL parameters: macros, UTMs, and stitching clicks to revenue

Tarun Kapoor, founder of Context Hints, seated at a wooden desk with a soft city light behind him.Tarun Kapoor Updated November 17, 2026 22 min read

ChatGPT Ads supports dynamic URL parameters — macros such as {campaign_id}, {ad_group_id}, {ad_id} and {ad_account_id} that you place in your landing page query string and OpenAI populates automatically at delivery time. They are how you get campaign structure out of Ads Manager and into GA4, your CRM, and your warehouse, so you can attribute pipeline to the specific ad group that produced it rather than to "ChatGPT" as an undifferentiated blob. This guide covers each macro, how to build a tracking template, how they relate to UTMs and to oppref, and the mistakes that quietly break the join.

The short answer

Add UTM parameters to ChatGPT ads in the Landing page query parameters field (query_string_template in the API) at account, campaign, ad group or ad level. A working example: utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}. Macros fill in at delivery, the most specific level wins on duplicate keys, and oppref must never be stripped.

What is the oppref parameter in ChatGPT ads?

oppref is an opaque, OpenAI-provided click identifier that ChatGPT Ads adds to your destination URL on every ad click. The Measurement Pixel saves it in a first-party __oppref cookie for 30 days; the Conversions API needs you to pass it yourself, unmodified. It identifies the click, not the person, and it is how OpenAI attributes conversions.

A thin blue thread of light carrying three glass tags to a landing page card, showing ChatGPT ads UTM parameters travelling with each click.
Every ChatGPT Ads click can carry two kinds of tags: your UTM labels and the platform’s macro IDs, plus OpenAI’s own oppref click reference.

What is a destination URL in ChatGPT Ads?

The destination URL is the landing page a ChatGPT ad sends people to when they click it. Each ad has one. In Ads Manager it is the ad’s landing page URL; in the Ads API it is the ad’s destination. It is the base that everything else in this guide gets appended to: your tracking template first, then OpenAI’s own oppref click reference.

RuleWhat OpenAI saysSource
Protocol and lengthMust be an HTTP or HTTPS URL no longer than 2,048 charactersOpenAI Developers, campaign management
Crawler accessMust be accessible to OpenAI’s ad crawlers; don’t block OAI-AdsBot or OAI-SearchBot. See how OAI-AdsBot reads your landing pageOpenAI Developers; OpenAI Help Center (Create ads)
Which pageLink to the most relevant product, collection or content page, not a generic homepageOpenAI Help Center (Create ads)
Valid and consistentThe page must work and must match what the ad promises; misleading or inconsistent ads can be rejectedOpenAI Help Center (Create ads)
One per adSingle-image and multi-image ads each point to one destinationOpenAI Help Center (Create ads)

The URL a visitor actually lands on is built in three layers:

https://example.com/pricing + ?utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id} + &oppref=…

Keep the destination itself clean, with no UTMs pasted in by hand, and let the tracking template add them. That way one template change updates every ad. Because the template and oppref are appended after the destination, leave room under the 2,048-character limit rather than shipping a destination that is already long. For how creative and the destination should match, see the ChatGPT ads creative guide.

Three glass segments forming one URL bar, the destination URL, your tracking template and the oppref parameter in ChatGPT ads, joined by a thread of blue light to a landing page card.
The final click URL: your destination, then your tracking template, then OpenAI’s oppref click reference.

Where to add UTM parameters in ChatGPT Ads

You do not have to paste tracking onto every destination URL by hand. ChatGPT Ads has a dedicated tracking-template field: in Ads Manager it is labelled Landing page query parameters, and in the Ads API it is landing_page_configuration.query_string_template. OpenAI’s developer documentation says the template can be set at the campaign, ad group or ad level, and that account tracking settings supply defaults underneath all three.

In Ads Manager, AnyTrack’s setup documentation describes the path as Campaigns → the three-dot menu on a campaign → Edit campaign → Landing page query parameters. You paste the query string without a leading ?, for example:

utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&ch_adgroup={ad_group_id}

Setting it once at campaign level is the low-maintenance default. Use an ad-group or ad-level template only when you need a different value there, such as a different utm_content label for a creative test. If you set tracking up through the API or a partner, the field is the same one; see the Ads Manager setup guide for where account-level settings live.

Which level wins when parameters are set twice

Parameters from different levels combine. If the campaign template sets utm_source and the ad template sets utm_content, the final URL carries both. The only conflict is when the same key appears at more than one level. Then, per OpenAI’s developer docs, the highest-priority value wins, and that applies to custom keys like ch_adgroup as well as to utm_* keys.

Priority (low → high)LevelPractical use
1 (lowest)Product feed URL (if applicable)Parameters already in your feed’s product links
2Account tracking settingsHouse defaults: utm_source, utm_medium
3CampaignThe standard place for your template
4Ad groupA per-hint-theme label, if you want one in the URL
5 (highest)AdCreative-test labels

OpenAI’s documented example: a feed link carrying utm_medium=search plus a campaign template setting utm_medium=paid lands as utm_medium=paid. A feed parameter with no matching configured key, like offer=spring, stays in the final URL.

Product feed advertisers: check your ordering mode

Under the older Legacy ordering, feed URL values took the highest priority (Account < Campaign < Ad group < Ad < Feed), and some feed-specific utm_* parameters could be removed. OpenAI’s developer docs gave accounts on Legacy ordering until November 5, 2026 to migrate, and that date has now passed. If Ads Manager still shows you the “Feed tracking is changing” banner, your account hasn’t switched: treat it as overdue, not optional. An account admin opts in with Switch now on the “Feed tracking is changing” banner in Ads Manager. If your product feed campaigns rely on UTMs baked into the feed, re-check them after you switch, because your campaign template will now overwrite matching keys.

Five glass steps rising to a blue orb on the top step, illustrating ChatGPT ads URL parameter precedence from feed to ad level.
Parameters stack from feed to account, campaign, ad group and ad. When two levels set the same key, the more specific level wins.

Tracking parameters for product feeds and multi-image ads

Two newer ad types change where your tags can live, and both trip up teams who are used to tagging every destination by hand.

Product feed campaigns: one template for every product

In a product feed campaign the selected product supplies the image and the destination URL, so there’s no per-ad target_url to edit. OpenAI’s product feed docs say individual products “have no separate configurable ad entity”: the ad’s tracking settings apply to every product destination. Put your template on the account, campaign, ad group or ad, and let the precedence rules above merge it with any parameters already in the feed URL. If you need a product-level label, it has to come from the feed URL itself (for example an offer= or SKU key your template doesn’t override). Our ChatGPT product feed guide covers the feed side.

Multi-image ads: one destination for all 4–6 images

OpenAI’s developer changelog for October 26, 2026 added ads with 4–6 square images. The campaign management docs say an explicit target_url “applies to every image”, so you can’t send image two to a different tagged URL than image one. Use {ad_id} to tell multi-image ads apart from single-image ads in your analytics; there’s no image-level macro. If you want to know which image earns the click, test the images as separate ads. Formats are covered in our ChatGPT visual ads guide.

The supported macros

Four ID macros are supported in landing page query parameters, and OpenAI’s developer docs also show an {oppref} macro in their example template. Each is written in braces, and each is substituted at delivery time — meaning the value is resolved when the ad is served, not when you save the campaign.

A stripped click reference does not fail silently forever — it surfaces as the “ad click information is missing or cannot be connected” event quality warning, which is the fastest way to confirm a redirect is eating your parameter.

MacroResolves toUse it for
{campaign_id}The ID of the campaign serving the adCampaign-level reporting joins and budget attribution
{ad_group_id}The ID of the ad group serving the adThe most valuable one — ad groups are where context hints live
{ad_id}The ID of the specific ad creativeCreative-level performance and creative testing
{ad_account_id}The ID of the ad accountMulti-account agencies and multi-brand advertisers
{oppref}OpenAI’s click reference for this ad interactionCopying the click ID into your own key (e.g. click_id={oppref}) for a server-side or CRM join. The standard oppref parameter still arrives as normal.

For most advertisers {ad_group_id} is the one that changes how you work. Because a ChatGPT Ads ad group is the container for context hints, ad-group-level attribution is effectively hint-theme-level attribution — the closest thing this platform has to knowing which buyer intent produced the revenue. That is the single most useful join available to you, and it is the reason to implement these macros even if you are otherwise happy with your reporting.

Parameters are one layer of the measurement stack. If you want the whole stack — pixel, Conversions API, parameters and CRM hand-off — installed and QA’d for you, see our ChatGPT Ads conversion tracking setup.

Two kinds of macros: URL macros vs product-ad template macros

ChatGPT Ads uses braces in two unrelated places, and mixing them up is a common reason a template “does nothing”.

 URL (tracking) macrosProduct-ad template macros
SyntaxSingle braces: {campaign_id}, {ad_group_id}, {ad_id}, {ad_account_id}, {oppref}Double braces: {{brand}}, {{product.title}}, {{product.body}}, {{product.price}}
Where they goLanding page query parameters / query_string_templateThe ad’s title, body and price fields in a product_ad_template
What they fill inCampaign structure IDs and the click referenceThe selected product’s brand, title, description and price
Who sees the resultYour analytics, CRM and warehouseThe person reading the ad in ChatGPT

A {{product.title}} in your URL template won’t become a product name, and a {campaign_id} in an ad title won’t become an ID. Keep each kind in its own field.

A slim glass URL tag linked by a blue thread to a glass product card, showing the two kinds of ChatGPT ads macros: URL tracking macros and product-ad template macros.
Single-brace macros tag the URL for your analytics. Double-brace macros fill the product ad people see.

Building a tracking template

Whether you paste it into the Landing page query parameters field or append it to a destination URL yourself, a template with macros looks like an ordinary URL with placeholder values:

https://example.com/pricing?utm_source=chatgpt&utm_medium=cpc&utm_campaign=q3-launch&ch_campaign={campaign_id}&ch_adgroup={ad_group_id}&ch_ad={ad_id}

At delivery, the macros are replaced with real IDs and the visitor lands on a URL carrying both your human-readable campaign labels and the platform's machine-readable structure. A few rules make this durable:

Build the template once, then reuse it across ad groups. Our UTM builder is useful for the human-readable half; the macro half you append by hand.

Mapping macros to UTM parameters

Macros and UTMs solve different problems and you want both. UTMs are the labels you chose and are readable by any analytics tool without a lookup. Macro IDs are what the platform knows and are the only values that reliably join back to Ads Manager reporting after somebody renames a campaign.

ParameterSuggested valueWhy
utm_sourcechatgptStable channel identity across reports
utm_mediumcpcGroups correctly with other paid channels
utm_campaignYour campaign labelReadable in GA4 without a join
utm_contentYour creative labelReadable creative-level split
ch_campaign{campaign_id}Survives campaign renames
ch_adgroup{ad_group_id}Joins revenue to a hint theme
ch_ad{ad_id}Exact creative attribution

Pick one spelling for each value and write it down before launch: all lowercase, and one medium value. eSEOspace suggests cpc or a dedicated paid_ai if you want AI-platform ads in a group of their own, and AdVenture Media warns that mixing ChatGPT, chatgpt and chat-gpt splits one channel into three report rows. If you want the hint theme readable without a join, utm_term is a natural home for an ad-group label; name ad groups after the theme you wrote the context hints for.

The renaming point deserves emphasis. Labels drift — somebody renames a campaign mid-quarter and every historical UTM row silently stops matching the current name. IDs do not drift. If you only have budget for one of the two, take the IDs and reconstruct the labels from a lookup table.

ChatGPT Ads UTM parameters: copy-paste examples

Paste these into the Landing page query parameters field without a leading ?. Each one keeps oppref untouched, because OpenAI appends it separately.

Use caseTemplateWhy it’s built this way
Standard setuputm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&ch_adgroup={ad_group_id}Paid medium separates ads from organic chatgpt.com clicks; the ad group ID is your hint-theme label.
OpenAI’s own documented exampleutm_source=openai&utm_medium=paid&utm_campaign={campaign_id}&utm_content={ad_id}From OpenAI’s campaign docs. Fine to use, but pick one source value and keep it everywhere.
Server-side or CRM joinutm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&click_id={oppref}OpenAI’s docs show click_id={oppref}: a copy of the click reference under a key your form or backend already reads.
Product feed campaign (account or campaign level)utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&ch_adgroup={ad_group_id}Applies to every product destination. Feed keys you don’t repeat (like offer=) survive.
Agency or multi-brandutm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&ch_account={ad_account_id}One template across client accounts; the account ID tells them apart in a shared warehouse.

The source value matters less than consistency. Mixing openai, chatgpt and chatgpt.com across campaigns splits one channel into three rows. Set the house default once in account tracking settings and override only the keys that genuinely change.

Running product feeds or multi-image ads across several accounts?

On the White-Glove plan ($1,499 a month), Tarun sets one tracking template per account, checks that feed parameters and oppref survive to the final URL, and maps every ad group ID to its context-hint theme, so you can read revenue per intent instead of per campaign. Media stays in your own OpenAI Ads account with no markup. See the plan and pricing.

What is the oppref parameter? How it differs from macros, and why you need both

There is a third value in play and conflating it with the macros causes real confusion. oppref is OpenAI's privacy-preserving click identifier, appended to your landing page URL automatically and captured by the oaiq pixel into a first-party cookie named __oppref. It identifies this click and it is what makes conversion attribution work.

 Macrosoppref
IdentifiesCampaign structureAn individual ad interaction
You configure itYes, in your URLNo, added automatically
Used byYour analytics and CRMOpenAI's attribution
CardinalityLow — a handful of IDsHigh — one per click

In short: oppref is how OpenAI credits a conversion to an ad; macros are how you credit a customer to an ad group. Neither substitutes for the other, and stripping oppref at your edge — a redirect, a consent wall, a CDN rule — breaks conversion tracking entirely. See conversion tracking for the full mechanics.

What oppref is, and what it isn’t

OpenAI’s Conversions API reference describes oppref as “an opaque, OpenAI-provided attribution identifier.” Opaque means you can’t read anything out of it. It contains no campaign name, no user details, and none of the conversation that triggered the ad. Treat it as a string you store and pass back, never as something you parse. OpenAI’s pages don’t expand the name, so be wary of guides that claim to know what the letters stand for.

It also isn’t a traffic-source label. GA4 doesn’t read oppref as a source or medium, so a click that arrives with oppref but no UTMs still shows up as a plain chatgpt.com referral. That is why you need both: oppref for OpenAI’s attribution and your template for your own analytics. The privacy model behind this, where advertisers get aggregate results and no conversation data, is covered in how ChatGPT ads work.

CookieWritten byLifetime (per OpenAI)Where it goes in the Conversions API
__opprefMeasurement Pixel, from the oppref URL parameter30 days after the Pixel writes it. Each new non-empty capture restarts the 30 days, but reading it on a later visit without the parameter does not.Event-level oppref field, the original string, unmodified
__obrefMeasurement Pixel365 days after creationevents[].user.obref, unhashed

Both cookies are written only when measurement consent is granted. Calling oaiq("consent", false) removes them, and OpenAI notes that browser restrictions or cleared cookies can shorten either lifetime. In practice, a buyer who clicks today and converts five weeks later, with no second ad click in between, will no longer carry an __oppref cookie.

A clear glass card holding a blue chip labelled oppref in front of a softly blurred dial, showing how long the ChatGPT ads oppref parameter cookie lasts.
The Pixel keeps oppref in a first-party __oppref cookie for 30 days from the last click that carried it.

Passing oppref to the Conversions API

The browser Pixel captures oppref for you. The server side doesn’t: OpenAI’s API reference says plainly that “the API does not capture oppref for you.” Your server has to read it from the landing URL or the __oppref cookie, keep it with the lead or order, and send it back on the event. Three rules from OpenAI’s docs:

If you want the click reference under your own key as well (for a CRM field called click_id, say), OpenAI’s campaign-management example adds click_id={oppref} to the tracking template. The standard oppref parameter still arrives as normal. The full Pixel-plus-API setup, including deduplication, is in our conversion tracking guide.

Keeping oppref through redirects

Most lost oppref values aren’t lost at OpenAI. Something between the click and the page drops the query string. Check every hop from the destination URL to the page where the Pixel runs:

The test is simple. Open your destination with ?oppref=test123 appended, click through every redirect, and confirm that test123 is still in the address bar and in the __oppref cookie on the final page. A 200 status on the final page proves nothing if the parameter fell off on the way.

oppref claims you’ll see elsewhere, checked against OpenAI’s docs

Claim in third-party guidesWhat OpenAI’s documentation says
The __oppref cookie lasts 90 days30 days after the Pixel writes it; a new click with oppref restarts the clock
oppref stands for a specific phraseNo expansion given; OpenAI calls it an opaque identifier
Send oppref inside the user objectoppref is event-level; only obref goes in user
Dynamic macros like {campaign_id} aren’t availableThe campaign-management docs use {campaign_id}, {ad_id} and {oppref} in example templates
Only send conversions that have an opprefOpenAI recommends sending all conversion events

Losing oppref somewhere between the click and the checkout?

On the White-Glove plan ($1,499 a month), Tarun personally audits every redirect hop, the Pixel consent flow and the Conversions API payload, so oppref survives from the ChatGPT ad click to the order. He also runs your context hints, creative and bids in your own OpenAI Ads account, with no markup on media. See the plan and pricing.

This is the mistake that quietly wrecks ChatGPT reporting. ChatGPT already tags its organic links: AmICited, citing PPC Land, reports that utm_source=chatgpt.com has been appended to citation and brand links since mid-2025. An ad click with no tracking template also arrives as a chatgpt.com referral. Unless your ads carry their own medium, paid and organic ChatGPT traffic merge into one line. Pause the campaign and “organic” traffic appears to drop the same day.

 Paid ChatGPT ad clickOrganic ChatGPT citation click
Who sets the tagsYou, via the tracking templateChatGPT
Typical sourcechatgpt (your choice)chatgpt.com
Mediumcpc or paid_aiReferral (no paid medium)
Carries opprefYesNo
Carries your macro IDsYes, if templatedNo

Two rules follow. First, tag every ad before launch, because untagged clicks cannot be reclassified afterwards. Second, give paid traffic a medium that organic traffic never has. Whether your source reads chatgpt or chatgpt.com matters less than that medium.

To report the two separately, create a GA4 custom channel group (Admin → Data display → Channel groups) with a ChatGPT Ads channel (session source contains chatgpt AND session medium is cpc or paid_ai) and an AI Referral channel for chatgpt, perplexity, gemini, copilot and claude sources. As AmICited points out, order matters: put the paid rule above the AI Referral rule, or your ad clicks will be counted as AI referrals.

If you also track how often ChatGPT organically names your brand, keep that measurement separate from ad reporting. How ChatGPT ads work covers why ads and answers run on separate systems.

What utm_source=chatgpt.com means (and why it isn’t your ads)

If you see utm_source=chatgpt.com in GA4 or on a URL, it usually means ChatGPT cited your site in an answer and someone clicked the link. Genrank describes it as ChatGPT having “cited your site and someone clicked through from its answer”, and AmICited, citing PPC Land, says ChatGPT has appended it to citation and brand links since mid-2025. That is earned, organic traffic.

The practical rule is the one from the section above: give your ads a paid medium that organic citation clicks never carry. If you also want to grow the organic side, our guide to how ChatGPT ads work explains why ad placement and answer citations run on separate systems.

Reading the parameters in GA4

GA4 collects your UTM parameters natively but ignores custom parameters like ch_adgroup unless you tell it not to. The sequence:

  1. Capture the query parameter on page load — in GTM, a URL Variable of type Query with the key ch_adgroup.
  2. Send it as an event parameter on your page_view and conversion events.
  3. Register it in GA4 as a custom dimension (Admin → Custom definitions), scoped to event or user as appropriate.
  4. Persist it. A parameter present only on the landing page is lost by the time somebody converts three pages later — write it to a first-party cookie or session storage and read it back at conversion time.

That fourth step is the one implementations skip, and it is why so many accounts have a custom dimension that is populated on 4% of sessions and empty everywhere else.

What UTM parameters can’t see: view-through conversions

A UTM tag only exists if someone clicked. OpenAI’s Conversions API docs say web events support click-through attribution and, “when available for your account”, view-through attribution too. View-through conversions use “a fixed one-day window after an eligible ad impression”, and if a conversion qualifies for both, the click takes precedence. Because there was no click, a view-through conversion has no oppref, no macro values and no UTMs, so it can never appear in a UTM-based GA4 or CRM report.

That is the most common reason Ads Manager and your analytics disagree. The docs also state that Ads Manager reports view-through as a separate, campaign-level metric that is not included in the Conversions total, and that CPA, post-click conversion rate, bidding, billing and conversion optimization stay click-through-based.

SourceCounts clicks?Counts view-through?Carries your UTMs?
Ads Manager “Conversions”Yes (configured click window)No, reported separatelyn/a
Ads Manager view-through metricNoYes (fixed one-day window, if available)n/a
GA4 / CRM / warehouse by UTMYes, if the tag survivedNo, there is no URL to tagYes

Two practical rules follow. First, do not try to close the gap by inventing extra parameters: a view-through has no landing URL to carry them. Second, OpenAI’s own recommendation is to send all conversion events through the Conversions API, “not just those with an oppref”, so view-through conversions can feed campaign metrics. A pipeline that drops every event lacking an oppref quietly throws that signal away. The mechanics are in our view-through section of the conversion tracking guide and the attribution windows section of the ROI guide.

A glass brand orb sending one long solid blue path and one short fading dashed arc toward a glass card, showing click-through conversions that carry ChatGPT ads UTM parameters versus view-through conversions that do not.
The solid path is a click, which can carry UTMs and oppref. The short fading arc is a one-day view-through, which carries neither.

Ads Manager and GA4 disagree and nobody can say why?

On the White-Glove plan ($1,499 a month), Tarun reconciles click-through, view-through and UTM-tagged sessions in one view, so you know which gap is measurement and which is a real performance problem. He also runs your context hints, creative and bids inside your own OpenAI Ads account, with no markup on media. See the plan and pricing.

Tracking app installs: UTMs end at the store

A web UTM cannot follow a click into an app store. What OpenAI documents for apps is narrow: send app_installed and app_opened from your server through the Conversions API with action_source set to mobile_app, using the Pixel ID of an existing web data source. The docs say native mobile SDK setup and mobile data sources are “not currently supported”, and that app lifecycle events and mobile measurement integrations remain click-through-based.

If you run both a web funnel and an app, keep one tracking template per destination type. The web template is in building a tracking template; the app side usually belongs to your measurement partner, covered in our ChatGPT Ads measurement partners guide.

A glass smartphone connected to a glass server block by a blue line carrying a hint card, showing app install events sent server-side for ChatGPT ads tracking.
App installs reach OpenAI as server-side events with action_source set to mobile_app, not as UTM-tagged page views.

Passing IDs into your CRM

For lead-generation businesses this is where the macros earn their keep. Revenue lives in the CRM, not in Ads Manager, and the join between them is the ID you captured on arrival.

Write ch_campaign, ch_adgroup and ch_ad into hidden fields on every form, map those fields to custom properties on the lead record, and make sure they survive the lead-to-opportunity conversion in your CRM's object model. Once they do, you can report closed-won revenue by ad group — which means you can report closed-won revenue by context hint theme, and start making budget decisions on pipeline instead of on clicks.

Two cautions. First, if you are running Automatic Advanced Matching, remember that hidden fields are still form fields — keep IDs and hashed identity values clearly distinct so nothing gets double-hashed. Second, if you send conversions back from the warehouse via a partner, carry the same IDs through so both directions of the pipeline agree; our measurement partners guide covers that path.

Want revenue by hint theme without building the plumbing?

On the White-Glove plan ($1,499 a month), Tarun personally runs your ChatGPT Ads account. That includes the tracking template, the GA4 channel group and the ad-group ID map, so every report ties spend to the context-hint theme that produced pipeline. Media stays in your own OpenAI Ads account with no markup. See the plan and pricing.

IDs versus readable names

Macros return IDs, not names. A row reading ch_adgroup=48211903 is precise and completely unreadable, which is why the mature setup keeps a small mapping table — ad group ID to a human label — maintained in a sheet or a warehouse dimension table and joined at report time.

Build that table when you launch, not six months later when nobody remembers what 48211903 was. Add a row every time you create an ad group. It takes seconds at creation time and is genuinely painful to reconstruct after the fact, particularly once ad groups have been paused or renamed.

ChatGPT Ads macros vs Google Ads ValueTrack and Meta URL parameters

If you’re porting a tracking template from another channel, the concepts map one to one, but the syntax doesn’t. Copying a Google or Meta placeholder into ChatGPT Ads gives you literal text, not an ID.

LevelChatGPT AdsGoogle Ads (ValueTrack)Meta Ads
Campaign{campaign_id}{campaignid}{{campaign.id}}
Ad group / ad set{ad_group_id}{adgroupid}{{adset.id}}
Ad{ad_id}{creative}{{ad.id}}
Click IDoppref (auto-appended)gclid (auto-tagging)fbclid

Google’s mapping comes from its Ads API ValueTrack documentation; the Meta placeholders are as given in Meta-integration vendor docs such as Klar’s. One difference matters more than syntax: a ChatGPT ad group holds context hints rather than keywords or audiences, so {ad_group_id} stands for a buyer intent. For more on how the two auctions differ, see ChatGPT Ads vs Google Ads.

What URL parameters can and can’t tell you

URL parameters describe your campaign structure. They never describe the user’s conversation. ChatGPT picks an ad from the context of the current conversation, your landing page, your copy and your context hints. OpenAI’s help center answers “Do you share my conversations with advertisers?” with “No”. Advertisers get aggregate performance, not chat content.

So the most precise attribution available is ad group = hint theme. Keep one buyer intent per ad group and {ad_group_id} becomes a clean intent label; mix intents and it does not. Our guide to intent targeting in OpenAI Ads covers how to split ad groups that way.

Keep personal data out of URL parameters

URL parameters end up in server logs, analytics tools and browser history, so they’re the wrong place for anything that identifies a person. OpenAI’s Image Tag docs are explicit for their own no-JavaScript tag: “Don’t put personal data, secrets, session IDs, customer identifiers, or order identifiers in any query parameter.” Apply the same rule to your tracking template.

This lines up with how the platform treats people on its side. OpenAI says it doesn’t share conversations with advertisers, and the sections above show that no macro exposes a prompt or a matched hint. If you write hints with that in mind, our guide to writing context hints shows how to keep each ad group to one intent so the ID alone is meaningful.

Three glass tracking tags threaded into a landing page card while a dark padlock stays apart, illustrating keeping personal data out of ChatGPT ads UTM parameters.
Tags describe your campaign. Identity data goes through hashed Pixel or Conversions API fields, never the URL.

QA checklist before you launch

  1. Paste the template into the Landing page query parameters field at campaign level, without a leading ? and with raw braces.
  2. Check every ad-group and ad-level template for duplicate keys you did not intend to override.
  3. For feed campaigns, confirm which ordering mode the account uses and which feed parameters will be overwritten.
  4. Click a live delivered ad (not a preview) and read the landing URL. The IDs should be numeric, and oppref should be present.
  5. Follow the click through every redirect and the consent banner, and confirm all parameters survive to the final URL.
  6. Confirm the session lands in your ChatGPT Ads channel in GA4 Realtime, not in AI Referral or Unassigned.
  7. Submit a test form and check that the hidden fields reached the CRM record.
  8. Add the new ad-group IDs to your ID-to-label mapping table.

Failure modes that quietly break the join

Done for you: Conversion Tracking Implementation

If the conversion column reads zero and nothing in the interface says why, that is usually measurement. Our conversion tracking implementation installs the pixel and Conversions API, matches events exactly, and proves it with a written QA matrix — from $3,999.

ChatGPT Ads URL parameters: frequently asked questions

What dynamic URL parameters does ChatGPT Ads support?

Four ID macros are supported in landing page query parameters: {campaign_id}, {ad_group_id}, {ad_id} and {ad_account_id}. OpenAI’s developer docs also show {oppref} in an example template, which copies the click reference into a key you choose. Each is replaced automatically at delivery time.

How do I add UTM parameters to ChatGPT Ads?

Paste a query string into the Landing page query parameters field in Ads Manager (or query_string_template in the API), for example utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&ch_adgroup={ad_group_id}. Set it once at campaign level, then override only where an ad group or ad needs a different value. Use both UTMs and IDs: UTMs are readable, IDs survive renames.

What is a ChatGPT Ads UTM parameters example?

A solid default is utm_source=chatgpt&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id}&ch_adgroup={ad_group_id}, pasted into the Landing page query parameters field without a leading ?. OpenAI’s own docs use utm_source=openai&utm_medium=paid; either works if you use one spelling everywhere.

What does utm_source=chatgpt.com mean?

It usually means ChatGPT cited your site in an answer and someone clicked the link, so it’s organic, earned traffic. ChatGPT adds it, not you. It isn’t an ad tag: ChatGPT Ads appends only oppref by default, so give your ads a paid medium such as cpc to keep the two apart.

Should utm_source be openai or chatgpt for ChatGPT ads?

Either. OpenAI’s campaign docs use utm_source=openai&utm_medium=paid in their example; many advertisers use chatgpt. What matters is using one value across every campaign and a paid medium, so ads don’t merge with organic chatgpt.com referrals.

What is the difference between a macro and oppref?

Macros identify campaign structure and you configure them yourself in the URL; oppref identifies an individual ad interaction and OpenAI appends it automatically. Macros feed your analytics and CRM; oppref feeds OpenAI's conversion attribution. Removing oppref breaks conversion tracking.

Why are my macros showing up as literal text like {ad_group_id}?

The three usual causes are URL-encoded braces (%7B instead of {), the macro being placed in a parameter key rather than a value, or looking at a preview rather than a delivered ad — substitution happens at delivery time. Verify with a real click before changing anything.

Can I see the ad group name instead of the ad group ID?

No — the macros return IDs only. Keep a mapping table of ad group ID to human-readable label and join it at report time. Build it as you create ad groups; reconstructing it later is painful, especially once groups have been renamed or paused.

How do I track ChatGPT Ads in GA4?

Standard UTM parameters are picked up natively. For the ID macros, capture the query parameter (a GTM URL Variable works), send it as an event parameter, register it as a custom dimension in GA4, and persist it to a cookie or session storage so it is still available when the conversion fires several pages later.

Do dynamic URL parameters work with product feed campaigns?

The macros populate landing page query parameters at delivery time and are not specific to a single creative type. As with any tracking change, verify on a live click in the campaign type you actually run rather than assuming parity across campaign modes.

Will adding URL parameters hurt my landing page SEO?

Not if the page carries a self-referencing canonical tag pointing at the clean URL, which is standard practice for any paid landing page. The parameters are for your analytics, not for search engines.

Where do I add UTM parameters in ChatGPT Ads Manager?

In the Landing page query parameters field. AnyTrack’s docs describe the path as Campaigns → the three-dot menu on a campaign → Edit campaign. You can also set it on an ad group or ad, and account tracking settings provide defaults. Paste the string without a leading ?.

If I set URL parameters at campaign and ad level, which one wins?

Both apply, because parameters from different levels combine. If the same key is set twice, OpenAI’s developer docs give precedence from lowest to highest as Feed < Account < Campaign < Ad group < Ad, so the ad-level value wins. Legacy product-feed ordering, where the feed value won, had a migration deadline of November 5, 2026, so any account still on it is overdue.

Should utm_source be chatgpt or chatgpt.com for ChatGPT ads?

Either works, but ChatGPT already tags organic citation links with utm_source=chatgpt.com, so the value that separates paid from organic is the medium. Give ads utm_medium=cpc (or paid_ai), which organic traffic never has, and use the same spelling everywhere.

How do I separate ChatGPT ads from organic ChatGPT traffic in GA4?

Create a custom channel group with a ChatGPT Ads rule (source contains chatgpt and medium is cpc or paid_ai) placed above an AI Referral rule for chatgpt, perplexity, gemini, copilot and claude sources. If the order is reversed, ad clicks get counted as AI referrals. Clicks from before you tagged your ads cannot be reclassified.

Do ChatGPT ads pass the conversation or matched context hint in the URL?

No. The macros identify campaign, ad group, ad and account, and oppref identifies the click. OpenAI says it does not share conversations with advertisers. The closest available signal is the ad group ID, so keep one hint theme per ad group if you want clean intent-level reporting.

What is the oppref parameter in ChatGPT ads?

oppref is an opaque, OpenAI-provided click identifier added to your destination URL when someone clicks a ChatGPT ad. The Measurement Pixel stores it in a first-party __oppref cookie, and your server passes it back unmodified on Conversions API events. It identifies the click, not the person, and it is how OpenAI attributes conversions to ads.

What is a destination URL in ChatGPT ads?

It is the landing page an ad sends people to. OpenAI requires an HTTP or HTTPS URL no longer than 2,048 characters that its ad crawlers can access, and recommends the most relevant product, collection or content page rather than your homepage. Your tracking template and the oppref click reference are appended to it at click time.

How long does the oppref cookie last?

OpenAI’s Measurement Pixel docs say the __oppref cookie expires 30 days after the Pixel writes it. A later click that carries a new oppref restarts the 30 days; a visit without the parameter does not. The separate __obref cookie lasts 365 days. Both need consent, and browser restrictions can shorten them.

Does the Conversions API capture oppref automatically?

No. OpenAI’s API reference says the API does not capture oppref for you. Your server must read it from the landing URL or the __oppref cookie, store it with the lead or order, and send it as the event-level oppref field, unmodified.

What does oppref stand for?

OpenAI’s documentation doesn’t expand it. It describes oppref only as an opaque, privacy-preserving attribution identifier. Expansions you see in third-party blogs aren’t from OpenAI.

Why does oppref disappear from my landing page URL?

Usually because a redirect, vanity link, locale switch, consent interstitial or single-page-app router drops the query string before the Pixel loads. Append ?oppref=test123 to your destination, click through every hop, and confirm the value survives to the final page and into the __oppref cookie.

What is the difference between {campaign_id} and {{product.title}} in ChatGPT Ads?

Single-brace macros like {campaign_id} go in your landing page query parameters and fill in IDs for your analytics. Double-brace macros like {{product.title}} go in a product-ad template’s title, body or price and fill in product details people see. Neither works in the other’s field.

Can I set different tracking parameters for each product in a feed campaign?

Not in Ads Manager. OpenAI’s docs say individual products have no separate configurable ad entity, so the ad’s tracking settings apply to every product destination. A product-level label has to come from the feed URL itself, using a key your template doesn’t override.

Can each image in a multi-image ChatGPT ad have its own tagged URL?

No. OpenAI’s docs say an explicit target_url applies to every image in a 4–6 image ad, and there’s no image-level macro. Use {ad_id} to report on the ad as a whole, and test images as separate ads if you need per-image results.

Can I put an email or customer ID in my ChatGPT Ads tracking template?

No. OpenAI’s Image Tag docs say not to put personal data, secrets, session IDs, customer identifiers or order identifiers in any query parameter. Keep templates to UTMs, ID macros and your own labels, and send identity data through the hashed Pixel or Conversions API fields.

Do Google Ads ValueTrack parameters work in ChatGPT Ads?

No. ChatGPT Ads has its own macros: {campaign_id}, {ad_group_id}, {ad_id} and {ad_account_id}. Google’s {campaignid} or Meta’s {{campaign.id}} arrive as literal text. Swap the placeholders when you port a template.

Why doesn't ChatGPT Ads Manager match GA4?

Usually because they count different things. Ads Manager's Conversions total is click-through only, and view-through conversions (a fixed one-day window after an impression) are reported separately at campaign level. GA4 only sees sessions that arrived with a UTM or other referrer, so a view-through can never appear there.

Do view-through conversions carry UTM parameters?

No. A view-through conversion has no click, so there is no landing URL to carry UTMs, macros or oppref. OpenAI's docs say it uses a fixed one-day window after an eligible impression and is reported as a separate campaign-level metric.

Should I send Conversions API events that have no oppref?

Yes. OpenAI's Conversions API docs recommend sending all conversion events, not just those with an oppref, so view-through conversions can be included in your campaign's performance metrics.

How do I track app installs from ChatGPT ads?

Send app_installed and app_opened from your server through the Conversions API with action_source set to mobile_app. OpenAI's docs say native mobile SDK setup is not currently supported and app events stay click-through-based. Most teams route the ad through a measurement partner's tracking link that passes {oppref} as the click ID.

Sources and further reading

Get ChatGPT Ads tracking that reconciles Ads Manager, GA4 and your CRM

The White-Glove plan is $1,499 a month: Tarun personally runs your ChatGPT Ads account, including the UTM template, macro IDs, product-feed and multi-image tagging, oppref preservation through redirects, the Conversions API hand-off (including events without an oppref and app installs), the GA4 channel group and CRM sync, alongside context hints, creative and weekly optimization, for up to $10K of managed monthly ad spend. Media stays in your own OpenAI Ads account with no markup. See the plan and pricing, or book a 30-minute tracking audit call first.

Book a discovery call
Tarun Kapoor, founder of Context Hints, seated at a wooden desk with a soft city light behind him.
Tarun Kapoor
Founder & CEO, Context Hints

Twelve years of media buying across GroupM, WPP, Ogilvy & Mather, and Neil Patel Digital. Has personally owned media for Nestlé, Sage, Qualcomm, Aetna, Weight Watchers, Chubb and Novotel.