For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenAI Consent Mode

Pass consent to the OpenAI Ads measurement pixel

OpenAI Consent Mode automatically passes your visitors' choice to the OpenAI Ads measurement pixel, with no change to your OpenAI tag.

Why this option is needed

Unlike most advertising pixels, the OpenAI pixel treats consent as granted by default. Without a signal to the contrary it starts measuring as soon as it loads, before the visitor has made any choice.

More importantly: blocked events are never replayed. Measurement of those first seconds is not delayed, it is lost. That is what sets this pixel apart from the other transmission standards documented here, and what makes load order decisive.

The option covers both directions:

  • if the visitor has not chosen yet, or has declined, the refusal signal is sent before the pixel;

  • if the visitor had already accepted on a previous visit, the acceptance signal is sent from the first line too — measurement does not wait for the consent window to close.

Activation

To enable OpenAI Consent Mode, simply add OpenAI to your partner list, or enable the OpenAI Consent Mode option in the add-ons. Either one enables the other.

Adding a partner

Through the add-ons:

  1. Go to your CMP configurations management.

  2. Open the Add-ons section.

  3. Go to the Other partners section.

  4. Locate the OpenAI Consent Mode block.

  5. Turn the option on with the toggle.

  6. Save your configuration.

How it works

You have no line to change in your integration: keep the initialisation block supplied by OpenAI as it is. The CMP does not load the OpenAI SDK on your behalf — it sits in front of the pixel's call queue and inserts the consent signal at the head of it, ahead of your oaiq("init", …).

The signal is re-emitted whenever the visitor changes their mind, and only one consent value ever remains in the queue: a new choice replaces the previous one instead of being added to it.

If your site enforces a Content Security Policy, allow the OpenAI pixel domains listed in the OpenAI documentation. The CMP option itself loads no additional domain.

Mis à jour

Ce contenu vous a-t-il été utile ?