Consent and the OpenAI pixel: CMP, cookies and advanced matching
Contents
The OpenAI pixel for ChatGPT Ads measures by default: it treats consent as granted unless the site denies it before initializing the pixel. It also detects contact details in forms and sends them hashed, a feature OpenAI only lets you turn off for accounts in Japan.
Where the law requires prior consent, the site has to prevent the pixel from loading without permission, and the CMP must declare OpenAI as an advertising provider. This article explains what the pixel does with consent, which data and cookies it uses, how to block it with the official template or with your own tags, and how to check that revocation works. What is stated about the pixel comes from the OpenAI documentation, consulted on November 17 and 18, 2026. This is not legal advice: what the law requires in each country must be confirmed by your legal counsel.
In summary
- The pixel starts with
consentset totrue. To keep it from measuring without permission, you have to setoaiq("consent", false)beforeinitor simply not load it until the visitor accepts. - With permission, the pixel uses two first-party cookies:
__oppref, which lasts 30 days, and__obref, which lasts 365.oaiq("consent", false)deletes them. - Automatic advanced matching is enabled by default and, according to OpenAI, it can only be turned off for accounts in Japan. The site's privacy policy must cover this sending of hashed data.
- The official Tag Manager template does not send the consent command. With it, the protection is preventing the tag from firing; a later revocation does not delete the cookies.
- The minimum test is to look at the Network tab and the cookies in three states: no decision, with permission granted and after revoking it.
What the pixel does with consent
The pixel documentation describes its own command, oaiq("consent", …), with four rules:
- The initial value is
true, unless the site sets it tofalseor the pixel finds a stored denial. OpenAI does not document where that denial is stored. - With
false, the pixel does not send measurements. - When it changes to
true, only the following events are measured. Those that were blocked while permission was denied are not resent. oaiq("consent", false)deletes the pixel's two cookies.
The documentation indicates that the consent command is called before init. The practical consequence is that order matters: if init runs first, the pixel is already working with the default value.
The documentation consulted does not say that the pixel reads Google's consent mode or a standard CMP signal. The connection between the CMP and the pixel has to be made by the site.
Conceptual flow as intended, subject to the specific implementation of the CMP, the pixel and the applicable requirements; it does not represent guaranteed behavior.
Which data and cookies the pixel uses
With permission granted, the pixel works with the following data, according to the official documentation:
oppref: the identifier that the ad click adds to the destination URL. The pixel stores it in the__opprefcookie, which lasts 30 days and is renewed every time anopprefarrives in the URL.__obref: a random browser reference for the site, which lasts 365 days from its creation.- The source URL and the time of each event, which the pixel adds on its own.
- Hashed contact details, if the site sends them in the
userobject ofinitor if automatic advanced matching acts.
Each event also supports the opt_out option, which excludes it from future user-level personalization. OpenAI clarifies that it does not currently use pixel data for that personalization.
The conversion measurement guide asks you to send conversion data only after clearly informing users and obtaining the necessary consents where the law requires it.
Conceptual diagram of the chain described in the note; it does not show real values or a cookie test.
Automatic advanced matching
Automatic advanced matching looks for contact details in recognizable forms and in other sources on the site, normalizes them and converts them to a SHA-256 hash in the browser before sending them with the conversions. OpenAI states that it does not send the data unhashed. According to its help center, for web pixels it is enabled outside Japan, and the option to turn it on or off in Ads Manager only exists for accounts in Japan.
Three consequences for the site:
- The privacy policy must mention it. A hash does not make data anonymous: it allows the same person to be recognized if the other side has the same data.
- Consent also covers this sending. If the pixel does not load without permission, it does not look for data in forms either.
- It is worth deciding on which pages it loads. We recommend not loading the pixel on pages with sensitive data forms, such as health or finance, even if the visitor has accepted advertising. This is our own criterion, not an OpenAI requirement.
Conceptual flow of advanced matching; it does not represent a real form or a verified transmission.
What to declare in the CMP
For the CMP to be able to grant permission, OpenAI has to appear as a provider in the advertising category. The declaration should include:
- Provider and purpose: OpenAI, conversion measurement for ChatGPT ads.
- Cookies:
__oppref(30 days) and__obref(365 days), both first-party. - Domains:
bzrcdn.openai.com, from which the SDK is loaded, andbzr.openai.com, to which events are sent. - Data: click identifier, browser reference and hashed contact details.
We recommend treating the pixel as advertising and not as analytics, even if the goal is to measure: the data is used to attribute and optimize campaigns. It should not be enabled with analytics permission.
On our site, this point was the first one that stopped the activation. The CMP configuration had the advertising category with no declared services, and our CMP does not grant an empty category: advertising was denied even when the visitor chose "Accept all". The pixel tags were ready, but they could not measure with permission.
Three ways to apply permission in Tag Manager
The article on how to install the ChatGPT Ads pixel with Google Tag Manager describes the two installation paths. Each one supports a different way of applying consent:
- Official template with the tag's consent settings. Under Advanced settings > Consent settings, the tag can require certain types to be granted, according to the Tag Manager help. It requires a CMP that updates Google's consent mode. We would require
ad_storageandad_user_data. - Official template with conditions on the triggers. If the CMP publishes its decision in the data layer with its own names, each trigger can require the granted value.
- Custom HTML tags with synchronization. A tag listens for the CMP event and calls
oaiq("consent", true)oroaiq("consent", false)according to the decision. It is the only one of the three that communicates the revocation to the pixel.
The first two share a limit: they prevent the tags from firing, but if the visitor revokes after the pixel has loaded, the pixel does not receive the denial and its cookies stay until they expire. If your policy requires deleting them on revocation, you need the third one.
When permission is granted in the middle of the visit, the pixel does not recover the page view that was blocked at load time. If that view matters, the tag that receives the permission has to measure it again, without duplicating it.
Exclusive content
For signed-in readers
Synchronize the CMP with the OpenAI pixel
The variable that translates the CMP decision, the tag that grants and revokes the pixel's permission, the configuration for the official template and a command to check the cookies. Tested with a simulated browser; adapt it to your CMP.
Sign in to access this section →We work to offer the best possible content, which is why some of these explanations are not public.
Your account does not have access to this section. Request a demo
How to check that consent works
The test is done in a private window, with the browser tools open on the Network and Application (or Storage) tabs, in four states:
- No decision. With the CMP banner open,
oaiq.min.jsmust not load and there must be no requests tobzr.openai.com, and the__opprefand__obrefcookies must not exist. - Permission denied. The same as in the previous step, also when navigating to another page.
- Permission granted. The SDK must load only once and the events must go out to
bzr.openai.com.__obrefshould appear;__opprefonly appears if the visitor arrived from an ad click. - Permission revoked. There must be no new sends. With synchronization through custom tags, the cookies disappear; with the template, they remain.
Repeat the test in each language and on each domain of the site. A CMP can have different configurations per language, and in our case each language version required its own review.
Checklist matrix to complete with browser evidence; dashes indicate data not yet verified.
Troubleshooting
- The pixel loads before the visitor decides: check that no pixel tag uses a trigger without a permission condition and that there is no second installation in the site's code.
- Advertising stays denied even though the visitor accepts everything: the CMP probably has no declared services in the advertising category. Declare OpenAI as a provider.
- The cookies remain after revoking: this is the expected behavior with the official template. To delete them you need to send
oaiq("consent", false). - Page views from visitors who accepted are missing: the permission arrived after the load and nobody measured the page again.
- To see the pixel's cookies from the console, you can use
document.cookie.split("; ").filter(function (c) { return /^__o(pp|b)ref=/.test(c); }), which returns the cookies present or an empty list.
Limits
- This article does not establish what the law requires in any country. The references to obligations come from OpenAI, which refers to the applicable law.
- OpenAI's documentation does not explain where the pixel stores a denial or whether it reads standard CMP signals.
- The advanced matching feature and its options may change; the information is from November 17, 2026.
- The code in the exclusive section was tested with a simulated browser, not with the real SDK or a commercial CMP.
What to do next
Before activating the pixel, declare OpenAI in the CMP, choose one of the three ways to apply permission and go through the four-state test in each language. If you are later going to send the same conversions from the server, consent has to accompany that sending as well; the article on OpenAI's Conversions API covers it. For the big picture, see the ChatGPT Ads guide.
At CookingMetrics we review the relationship between the CMP, Tag Manager and the measurement platforms before adding an advertising channel. The GA4 audit includes that review.
Frequently asked questions
Does the OpenAI pixel respect Google's consent mode?
OpenAI's documentation does not say: it describes its own consent command. Tag Manager can use consent mode to prevent the tag from firing, but that does not communicate a later revocation to the pixel.
Can automatic advanced matching be turned off?
According to OpenAI's help center, the option to turn it off in Ads Manager is only available for accounts in Japan. Outside Japan, the way to avoid it is not to load the pixel, for example on pages with sensitive forms or without the visitor's permission.
Which cookies does the ChatGPT Ads pixel install?
With permission granted, two first-party cookies: __oppref, which stores the click identifier for 30 days, and __obref, a browser reference that lasts 365 days. The oaiq("consent", false) command deletes them.
Is analytics consent enough to activate the pixel?
We recommend that it not be. The pixel is used to attribute and optimize advertising campaigns and sends hashed contact details; it belongs to the CMP's advertising category.



