Linux 软件免费装
Banner图

Webaround Pixel and Conversions API for OpenAI Ads

开发者 webaround
更新时间 2026年9月29日 23:57
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce conversion tracking openai chatgpt conversions api

下载

0.3.0

详情介绍:

Adds the OpenAI Ads Measurement Pixel to your site and sends the same conversions from your server through the Conversions API (CAPI), so a conversion measured in both places is counted once rather than twice. OpenAI Ads are the ads that run in ChatGPT. If you buy them, this is how your site tells OpenAI which visits turned into leads, orders or registrations - in the browser, on the server, or both. This is an independent community integration. It is not created, certified, endorsed or supported by OpenAI. "OpenAI" and "ChatGPT" are trademarks of OpenAI. What it does Integrations 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. For ecommerce, 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. Tag manager endpoint 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. For developers 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

安装:

  1. Install and activate the plugin.
  2. Go to OpenAI Ads in the admin menu and enter your Pixel ID and Conversions API key.
  3. Open Integrations and read what the Consent section reports. If it found none, decide what you want before going further.
  4. Use "Send a test event" on the General screen. It uses the API's validation mode, so no fake conversion is recorded.
Nothing requires editing a file. To keep credentials out of the database, define them as constants in wp-config.php instead.

屏幕截图:

  • Integrations and consent - what was found, and what is in use.
  • Tag manager endpoint - an address your tag manager can post to.

常见问题:

What does deduplication actually do?

A purchase measured in the browser and again on the server is one purchase, but two reports. Both halves send one event id, so OpenAI counts one conversion.

Do I need the Conversions API key, or is the Pixel enough?

The Pixel alone works, and needs only a Pixel ID. It is also the half an ad blocker or a failed script can remove. The API key adds the server-side half, which nothing in the browser can block - and because the two are deduplicated, adding it inflates nothing.

I have no cookie banner. What happens?

Everything is measured, and the settings screen tells you so in as many words. That default is deliberate: the alternative is a plugin that silently measures nothing while you hunt for the fault. Install a banner supporting the WP Consent API and it is used automatically.

Can I use this with Google Tag Manager?

Yes, and without a paid server-side container. Switch on the collection endpoint and point a tag at it; the API key never leaves your server.

Does this slow down my site? Do I need WooCommerce?

No, and no. Conversions are never sent while the visitor is waiting, and WooCommerce is optional - where it is installed, the plugin reuses its queue.

Will a measurement failure break my checkout?

No. If reporting fails the plugin logs it and moves on. The order, form submission or registration still completes.

Is my API key exposed?

No. It is used only server-side and is never printed into a page. The plugin's test suite asserts this.

更新日志:

0.3.0 0.2.1 0.2.0 0.1.2 0.1.1 0.1.0