Adds the OpenAI Ads Measurement Pixel to your site and sends the same conversions
from your server through the Conversions API, so a conversion measured in both
places is counted once rather than twice.
This is an independent community integration. It is not created, certified,
endorsed or supported by OpenAI. “OpenAI” and “ChatGPT” are trademarks of OpenAI.
Contact Form 7, Elementor Forms, Gravity Forms, WPForms, Fluent Forms and Ninja
Forms are detected automatically. A lead is recorded when the submission is
accepted, never when the button is clicked. Contact Form 7 and Elementor also fire
the matching browser event, sharing one event id.
WooCommerce measures product views, add to cart, checkout start and paid
orders. A purchase is reported only once payment is confirmed – never for a
pending, failed or cancelled order – and never twice, however many times the
gateway or a webhook triggers it. Amounts use the currency’s own minor unit.
Easy Digital Downloads reports a purchase once payment completes.
WooCommerce Subscriptions reports trial_started or subscription_created.
WordPress registration reports registration_completed, off by default because
user_register also fires for an administrator adding a colleague.
Each can be switched off under OpenAI Ads -> Integrations.
Optional, off by default. Lets Google Tag Manager hand a conversion to your site,
which forwards it to OpenAI – server-side measurement without a paid GTM server
container. Protected by a generated secret.
Record a conversion at a confirmed boundary:
openai_ads_track( 'lead_created', [], [ 'event_id' => $lead_id, 'user' => [ 'email' => $email ] ] );
Also openai_ads_event_id(), openai_ads_pixel_event(), openai_ads_hash_user(),
openai_ads_image_tag() and openai_ads_is_configured(), plus filters and actions
for consent, event data, identity and integrations. Every event OpenAI documents
for the web is supported, plus custom.
Full documentation: https://github.com/webaroundlabs/openai-ads-toolkit
This plugin connects to OpenAI in order to measure advertising conversions. That
is its entire purpose, and nothing happens until you enter a Pixel ID or an API
key.
Three addresses, all of them OpenAI’s:
There is no fourth. The plugin sends nothing to its author or to any analytics,
telemetry or licensing service.
When the Pixel is on, the plugin loads https://bzrcdn.openai.com/sdk/oaiq.min.js
into your pages and initializes it with your public Pixel ID. That script is
written and hosted by OpenAI. It sets first-party cookies named __oppref and
__obref to remember which advertisement a visitor arrived from.
WHAT IS SENT: the event name, a deduplication id, the page address, the amount and
currency where the event carries one, and – only when your site supplies it –
identity as irreversible SHA-256 hashes. It runs in the visitor’s browser, so their
IP address and user agent reach OpenAI as part of the request. A commerce event
also carries the basket: each item’s SKU or product id, name, quantity, line price
and variation attributes. Product names are not hashed: hashing identifies a person.
WHEN: on any page view, once you have enabled the Pixel.
When server-side events are on, your server sends conversions to
https://bzr.openai.com/v1/events using the API key you provide.
WHAT IS SENT: the same event data as above, including the basket detail, plus the
visitor’s IP address and user agent, the two attribution values read from the
__oppref and __obref cookies, and the page address the conversion happened on.
Email addresses, phone numbers, names and customer ids are hashed with SHA-256 on
your server before they leave it – the raw values are never transmitted.
WHEN: after a conversion your site confirms – a paid order, an accepted form
submission – and never on a page view.
Only if you call openai_ads_image_tag() yourself. It requests a 1×1 image from
https://bzr.openai.com/v1/sdk/events, carrying the event name, the deduplication
id and the amount – and no personal data of any kind, by design.
OpenAI’s terms: https://openai.com/policies/
OpenAI’s privacy policy: https://openai.com/policies/privacy-policy/
Advertising documentation: https://developers.openai.com/ads/
Sending a visitor’s data to OpenAI is a disclosure to a third party. You are
responsible for saying so in your own privacy policy and for obtaining consent
where the law requires it. The plugin adds suggested wording under Tools ->
Privacy for you to adapt.
The plugin helps rather than decides. It detects a consent plugin – the WP Consent
API and Complianz are read directly – and when consent for the “marketing”
category is refused, no Pixel is loaded and no event is constructed. If it finds
no consent mechanism at all it measures everybody, and says so on its settings
screen. That default is deliberate: a plugin that silently measured nothing would
leave you hunting for the fault.