How do I optimise my ChatGPT Ads campaigns with Eulerian's Conversions API (CAPI) connector?
The OpenAI - CAPI connector sends your conversions to ChatGPT Ads directly from Eulerian’s servers, through OpenAI’s Conversions API (CAPI). You create it in Activate > S2S with two values supplied by OpenAI: your Conversions API key and your Pixel ID.
Note
Solution: Activation. Module: Activate. Level: simple.
The problem
Ad blockers, browser restrictions on cookies and consent collection all reduce the number of conversions a browser pixel can measure. Every lost conversion is one signal fewer for ChatGPT Ads, and less accurate reporting in its interface.
What you will get
- More complete measurement. A conversion sent from server to server does not depend on the page loading, on the user’s connection or on an ad blocker: more conversions reach ChatGPT Ads.
- Better optimised campaigns. With more complete conversion data, ChatGPT Ads has more signals to optimise how your ads are served.
Step 1: get the Conversions API key and the Pixel ID
The connector needs two values, which you will find in your ChatGPT Ads account:
- your Conversions API key;
- your Pixel ID.
If you cannot find them, contact your OpenAI representative.
Step 2: create the connector
- Open Activate > S2S > Add a new connector > OpenAI - CAPI.
- Fill in the fields in the table below.
- Click Next.
| Field | Value |
|---|---|
| Connector name | free text |
| User consent settings | select “custom vendor”, enter the name of the OpenAI vendor as declared in your consent management platform (CMP), then select the purposes defined for this vendor |
| Call type, incoming traffic | “site-centric” |
| Call type, internal promotion | not applicable |
| token | your OpenAI Conversions API key (step 1) |
| pixel_id | your OpenAI Pixel ID (step 1) |
| action_source (optional) | where your conversions took place: web, mobile_app, offline, physical_store, email, phone_call or other. If left empty, it is determined for each event: mobile_app for app installs and for iOS and Android devices, web otherwise |
Tip
The hashed email address is sent by default, with no particular configuration.
Step 3: set the trigger rules
Specify the pages on which the connector sends a server call. The event passed to OpenAI depends on the page type:
| Page type | Event sent to OpenAI |
|---|---|
| Sale | order_created |
| Lead (quote) | lead_created |
| Basket | items_added |
| App install | app_installed |
| Other pages | page_viewed |
To send 100% of your sales, a single clause is enough: “Makes a sale” > “Yes”.
Click Confirm to save the connector.
Step 4 (optional): additional settings
On the connector’s settings screen:
- the Partner connector attributes panel lets you activate, deactivate or archive the connector, or schedule its activation;
- the Partner parameters panel repeats your key, your Pixel ID and your action source, and adds two optional parameters, described below;
- the Custom parameters panel lets you send additional parameters.
| Parameter | Effect |
|---|---|
| type | the name of a custom event. When filled in, it replaces the automatic event type from step 3: the event is sent to OpenAI as a custom event with this name |
| email_remap | where your users’ email address is stored, for example when it reaches Eulerian through a CRM sync. It replaces the email collected by Eulerian. A plain-text email is hashed with SHA-256 by Eulerian; an already hashed value is sent as it is |
Important
Custom parameters are only sent with custom events, that is, when the
typeparameter is filled in.
The information sent to OpenAI
Only the events of users who have given their consent to the OpenAI vendor are sent. For each one:
- the event type (or the name of the custom event), the action source, the time of the event and the page URL;
- the event identifier: the sale or lead reference for those two types, and an identifier based on the Eulerian session for the others;
- for sales and leads, the conversion amount and the currency. The amount is weighted by your attribution model if the connector uses one;
- for sales, the products: reference, name, quantity, unit price and currency;
- the OpenAI click reference
oppref, if there is one (see below); - the OpenAI first-party cookie
__obref, if available; - the user’s IP address and their browser’s user agent;
- the user’s CRM identifier, hashed with SHA-256, if they are logged in;
- the user’s hashed email (collected by Eulerian, or taken from
email_remap), if available; - their hashed phone number, if available;
- the custom parameters, for custom events only.
Going further: where the OpenAI click reference comes from
The oppref reference is what lets OpenAI link a conversion to the click on an ad. Eulerian takes it from one of two places, in this order:
- the click ID of the channel preceding the conversion, if its publisher name contains “openai” or “chatgpt”;
- otherwise, the
opprefparameter in the landing page URL, if present.
This is why the publisher name in your tracking links must contain one of these two words: see How do I track a ChatGPT Ads campaign?
For spend, see How do I sync my ChatGPT Ads spend with Eulerian?. If you have any difficulty, contact the Customer Success team at am@eulerian.com.