---
title: "Consent and the OpenAI pixel: CMP, cookies and advanced matching"
description: "The ChatGPT Ads pixel measures by default and sends hashed contact data. How to block it without consent, what to declare in the CMP and how to test withdrawal."
url: "https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp/"
markdown_url: "https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp.md"
lang: "en"
date_published: "2026-12-03"
author: "Martín Garay"
author_url: "https://cookingmetrics.com/about-martin-garay/"
publisher: "CookingMetrics"
publisher_url: "https://cookingmetrics.com/"
keywords: ["ChatGPT Ads", "ChatGPT", "MarTech"]
citation_apa7: "Garay, M. (2026, December 3). *Consent and the OpenAI pixel: CMP, cookies and advanced matching*. CookingMetrics. https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp/"
references_apa7:
  - "OpenAI Developers. (n.d.). *Measurement Pixel*. https://developers.openai.com/ads/measurement-pixel"
  - "OpenAI Help Center. (n.d.). *Conversion Measurement*. https://help.openai.com/en/articles/20001409-conversion-measurement"
  - "OpenAI. (n.d.). *OpenAI Ads Measurement Pixel GTM Template*. https://github.com/openai/ads-measurement-pixel-gtm-template"
  - "Ayuda de Google Tag Manager. (n.d.). *Compatibilidad con el modo de consentimiento de Tag Manager*. https://support.google.com/tagmanager/answer/10718549?hl=es"
---

# Consent and the OpenAI pixel: CMP, cookies and advanced matching

> The ChatGPT Ads pixel measures by default and sends hashed contact data. How to block it without consent, what to declare in the CMP and how to test withdrawal.

- **Author:** [Martín Garay](https://cookingmetrics.com/about-martin-garay/) · Founder of CookingMetrics
- **Published:** December 3, 2026
- **Topics:** ChatGPT Ads, ChatGPT, MarTech
- **Web version:** https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp/

## How to cite this article (APA, 7th edition)

Garay, M. (2026, December 3). *Consent and the OpenAI pixel: CMP, cookies and advanced matching*. CookingMetrics. https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp/

In-text citation: (Garay, 2026)

## References

- OpenAI Developers. (n.d.). *Measurement Pixel*. https://developers.openai.com/ads/measurement-pixel
  In-text citation: (OpenAI Developers, n.d.)
- OpenAI Help Center. (n.d.). *Conversion Measurement*. https://help.openai.com/en/articles/20001409-conversion-measurement
  In-text citation: (OpenAI Help Center, n.d.)
- OpenAI. (n.d.). *OpenAI Ads Measurement Pixel GTM Template*. https://github.com/openai/ads-measurement-pixel-gtm-template
  In-text citation: (OpenAI, n.d.)
- Ayuda de Google Tag Manager. (n.d.). *Compatibilidad con el modo de consentimiento de Tag Manager*. https://support.google.com/tagmanager/answer/10718549?hl=es
  In-text citation: (Ayuda de Google Tag Manager, n.d.)

---

**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](https://developers.openai.com/ads/measurement-pixel), 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 `consent` set to `true`. To keep it from measuring without permission, you have to set `oaiq("consent", false)` before `init` or 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](https://developers.openai.com/ads/measurement-pixel) describes its own command, `oaiq("consent", …)`, with four rules:

1. **The initial value is `true`**, unless the site sets it to `false` or the pixel finds a stored denial. OpenAI does not document where that denial is stored.
2. **With `false`, the pixel does not send measurements.**
3. **When it changes to `true`, only the following events are measured.** Those that were blocked while permission was denied are not resent.
4. **`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.

<img src="/assets/blog/interiores-desarrollo/cmp-01-v05.webp" width="1600" height="1000" alt="A large CMP separates two paths: Denied interrupts the signal and Granted continues toward the OpenAI pixel." loading="lazy" decoding="async">

*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 `__oppref` cookie, which lasts 30 days and is renewed every time an `oppref` arrives 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 `user` object of `init` or 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](https://help.openai.com/en/articles/20001409-conversion-measurement) asks you to send conversion data only after clearly informing users and obtaining the necessary consents where the law requires it.

<img src="/assets/blog/interiores-desarrollo/cmp-02-v05.webp" width="1600" height="1000" alt="Conceptual chain from a click with oppref to a first-party cookie and a pixel event." loading="lazy" decoding="async">

*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.

<img src="/assets/blog/interiores-desarrollo/cmp-03-v05.webp" width="1600" height="1000" alt="Conceptual flow that transforms a synthetic contact detail into a normalized and hashed signal." loading="lazy" decoding="async">

*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, and `bzr.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](https://cookingmetrics.com/blog/pixel-openai-chatgpt-ads-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](https://support.google.com/tagmanager/answer/10718549?hl=en). It requires a CMP that updates Google's consent mode. We would require `ad_storage` and `ad_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)` or `oaiq("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.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/pixel-openai-consentimiento-cmp/#bloque-1]


## 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:

1. **No decision.** With the CMP banner open, `oaiq.min.js` must not load and there must be no requests to `bzr.openai.com`, and the `__oppref` and `__obref` cookies must not exist.
2. **Permission denied.** The same as in the previous step, also when navigating to another page.
3. **Permission granted.** The SDK must load only once and the events must go out to `bzr.openai.com`. `__obref` should appear; `__oppref` only appears if the visitor arrived from an ad click.
4. **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.

<img src="/assets/blog/interiores-desarrollo/cmp-04-v05.webp" width="1600" height="1000" alt="Matrix without results with four consent states and columns for SDK, cookies and requests." loading="lazy" decoding="async">

*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](https://cookingmetrics.com/blog/chatgpt-ads-guia/).

At [CookingMetrics](https://cookingmetrics.com/) we review the relationship between the CMP, Tag Manager and the measurement platforms before adding an advertising channel. The [GA4 audit](https://cookingmetrics.com/es/servicios/auditoria-ga4/) 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.

---

## About the author

**[Martín Garay](https://cookingmetrics.com/about-martin-garay/)** — Founder of CookingMetrics

I'm Martín Garay, founder and Martech Advisor at CookingMetrics and Chair of the Technology Committee at CACE, Argentina's ecommerce chamber. For more than 20 years I've worked in Analytics, development, technical SEO and ecommerce: I implement measurement, find where it breaks and turn it into information you can act on.

### My work at CACE, Argentina's ecommerce chamber

- **Chair of the Technology Committee** (SINCE AUGUST 2025): I set the committee's agenda together with Gabriel Topola, vice-chair. We look at the platforms and tools an online business needs to grow: CMS, integrations, customer service and omnichannel operations.
- **Curating the technical forum** (IT CAMP · ECOMMERCE DAY ARGENTINA): With CACE's Events team I put together the IT Camp programme: talks for engineering and development teams on platform architecture, code and good practice, given by speakers who do the implementation work.
- **Marketing and Data Analytics committees** (SINCE 2016): I started in the Marketing committee and helped create the Data Analytics committee. I gave Google Analytics webinars, including the migration to GA4, and worked on the Google Analytics implementation for Hot Sale and Cyber Monday.
- **Ecommerce metrics dashboard** (FOR MEMBERS): With the Data Analytics committee and the CACE Community team we built a dashboard in Google Analytics and Looker Studio so each member can check the key indicators of their own store.

### Talks

- [From SEO to GEO: what it takes for a brand to be cited by an answer engine](https://www.youtube.com/watch?v=mlyjuSBdMzI) — ECOMMERCE DAY ARGENTINA 2026 · IT CAMP · AUGUST 27, 2026 · BUENOS AIRES CONVENTION CENTER
- [SEO for AI: how to prepare a brand to show up in ChatGPT and Google's AI overviews](https://www.youtube.com/watch?v=4dI7jqnLg-M) — AI IN LATAM 2025 · BUENOS AIRES · OVER 3,500 ATTENDEES AND 100 SPEAKERS, PER THE ORGANIZERS

### Profiles and links

- [Full profile](https://cookingmetrics.com/about-martin-garay/)
- [LinkedIn](https://www.linkedin.com/in/seospecialistmartingaray/)
- [Instagram](https://www.instagram.com/garaymartin/)
- [YouTube](https://www.youtube.com/@MartinGaray)
- [martingaray.com.ar](https://www.martingaray.com.ar/)
- [Chair of the Technology Committee at CACE, Argentina's ecommerce chamber](https://cace.org.ar/pages/comision-de-tecnologia?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)
- [Ecommerce metrics dashboard, free for CACE members](https://cace.org.ar/pages/dashboard-de-metricas?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)

---

## About CookingMetrics

CookingMetrics provides Google Analytics consulting, measurement implementation and SEO. Founder Martín Garay brings more than 20 years of experience in Analytics, development and ecommerce. The work connects data with business decisions.

### Services

- **[Google Analytics audit](https://cookingmetrics.com/data-analytics-consulting/)**: Do purchases or revenue differ from your store? We review your measurement and deliver a correction plan in 10 business days. [See the audit scope](https://cookingmetrics.com/data-analytics-consulting/).
- **[Google Tag Manager](https://cookingmetrics.com/services/gtm/)**: Did events stop being tracked after a website change? We review tags, triggers and versions to find duplicates or missing data. [Ask about Google Tag Manager audits and implementation](https://cookingmetrics.com/services/gtm/).
- **[Server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/)**: We assess how to send data from your server, respect consent and prevent duplication. [What's included in server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/).
- **[Technical SEO](https://cookingmetrics.com/services/technical-seo/)**: Have you migrated your site, or are pages missing from Google? We review crawling, indexing, structure and performance. [How we approach technical SEO](https://cookingmetrics.com/services/technical-seo/).
- **[SEO for AI search (GEO)](https://cookingmetrics.com/services/seo-ai-geo/)**: We review whether search engines and assistants can access your pages and understand their content. [What we can improve for AI search](https://cookingmetrics.com/services/seo-ai-geo/).

**Let's talk about your measurement:** [Contact us](https://cookingmetrics.com/about-martin-garay/) · [CookingMetrics](https://cookingmetrics.com/)
