Egenverk Conversion Relay · Documentation
Getting started
Egenverk Conversion Relay connects WooCommerce to ChatGPT Ads, OpenAI's advertising in ChatGPT. When someone clicks your ad and later buys in your store, Conversion Relay reports the purchase to Ads Manager. The pixel in the browser and the purchases from the server are sent only when the customer has given marketing consent.
Requirements
- WordPress 6.5 or later (tested up to 7.1)
- PHP 7.4 or later, with OpenSSL
- WooCommerce 8.2 or later, active (tested up to 11.1.2). Both HPOS and legacy order storage are supported.
- MySQL or MariaDB with
GET_LOCKsupport, so that a purchase is sent by one process at a time - A consent banner that exposes marketing consent through Cookiebot or the WP Consent API. For the WP Consent API, the WP Consent API plugin is needed as well.
- An OpenAI Ads Manager account with a Pixel ID and a Conversions API key
Install
- Get the plugin: contact us.
- Install and activate WooCommerce and your consent banner.
- Upload the ZIP under Plugins → Add New Plugin → Upload Plugin and activate Conversion Relay.
- Create a data source in Ads Manager and copy the Pixel ID and a Conversions API key.
- Open WooCommerce → Settings → Conversion Relay. Fill in Pixel ID and API key, choose a Consent adapter and press Save settings.
After installation everything is switched off, Mode is Validation and Consent adapter is Not configured. Nothing is loaded or sent until you switch it on.
You can define the key in wp-config.php instead:
define( 'EGENVERK_CONVERSION_RELAY_API_KEY', 'your-key' );
A key defined there, or in an environment variable of the same name, takes precedence over the saved one and is never shown in the admin.
First test
- Keep Mode on Validation. Switch on Enable measurement (master switch) and Enable Conversions API, and save.
- Press Validate synthetic API event on the Validation & log tab. Validation confirmed means the key and Pixel ID work.
- Place a test order with a payment method in test mode. Check on the Delivery status tab that it gets the status
validated. - When everything checks out, switch Mode to Production and switch on Enable browser pixel. Under Browser events, all four events are selected by default. Switch off the ones you do not want.
- Place a new test order after switching. Orders from Validation mode are never resent in Production.
If you use a page cache, purge it after changing the settings. Pages carry the settings they were rendered with.
Already have an OpenAI pixel?
If the pixel is already installed another way, for example through Google Tag Manager, remove it and its event tags before switching on the browser pixel. Conversion Relay never takes over a pixel it did not load, so the old one must go to avoid counting events twice.
Moving from Convert Relay?
Conversion Relay used to be called Convert Relay. Install and activate Egenverk Conversion Relay first: it deactivates Convert Relay and takes over its settings, saved API key and history. Then purge the page cache and delete Convert Relay under Plugins. If you delete Convert Relay before activating, with its erase option selected, what would have carried over is removed.
While Convert Relay is active, Conversion Relay does not run, and the admin shows a notice about it.
A key defined as CONVERT_RELAY_API_KEY is still read. Rename it to EGENVERK_CONVERSION_RELAY_API_KEY when convenient.