With your advertiser account ready (if not, start with how to create your ChatGPT Ads account in Chile), what remains is what lets you measure: the ChatGPT Ads Pixel. Without it, you’re spending blind.
We installed it on the Canal Cero site with Google Tag Manager. Here is the step-by-step, including the two details that will break it if you overlook them.
What the ChatGPT Ads Pixel measures, and what it doesn’t
The Pixel is a script you install on your site that tells OpenAI when someone does something you care about: buying, leaving their details, booking a meeting. It works much like the Meta Pixel, with standard events and the option to create your own.
Two facts before installing:
- The default attribution windows are 30 days after a click and 1 day after viewing the ad. They can’t be edited in the creation dialog.
- The “Conversions” metric counts only those that come from a click. Conversions after viewing the ad (without a click) are reported separately.
Before you start: what you need
- Admin access to your ChatGPT Ads account.
- Publish access to your Google Tag Manager container.
- Clarity on which action you want to measure: sale, form, sign-up.
It involves two platforms, in this order: ChatGPT Ads (data source), Tag Manager (base pixel), ChatGPT Ads (event) and Tag Manager (event code).
Step 1: create the data source in ChatGPT Ads
Go to ads.openai.com/settings/conversions. If it’s your first time, you’ll see the Conversions panel empty, with the message “You haven’t set up any data sources yet” (“Aún no has configurado fuentes de datos”).

Create a new data source and give it a name you’ll recognize. We used “Pixel de canal cero.”

Once it’s created, the platform gives you two things: the pixel ID and the base code, which is installed in the header of all your pages. Copy the full base code.

Only one setup script is allowed per page. If you already installed it another way, don’t duplicate it.
Step 2: install the base pixel with Google Tag Manager
Open Google Tag Manager, go into your container and create a new tag. For the tag type, search for “html” and choose Custom HTML.

Paste the base code you copied and set the All Pages trigger (page view across the whole site). Here is how ours looks:

<script>
!function(w,d,s,u){if(w.oaiq)return;var q=function(){q.q.push(arguments)};q.q=[];w.oaiq=q;var j=d.createElement(s);j.async=1;j.src=u;var f=d.getElementsByTagName(s)[0];f.parentNode.insertBefore(j,f)}(window,document,"script","https://bzrcdn.openai.com/sdk/oaiq.min.js");
oaiq("init", { pixelId: "YOUR_PIXEL_ID", debug: true });
</script> Replace YOUR_PIXEL_ID with the ID of your data source. The debug: true parameter prints what the Pixel is sending to the browser console. Use it while testing and remove it before making the setup final.
Step 3: create the conversion event in ChatGPT Ads
The base pixel only loads the script. What tells OpenAI which action counts as a conversion is the event. Go back to Conversions, to the “Conversion events” tab (“Eventos de conversión”), and create a new one.

Choose your data source and the base event. There are twelve options, plus the possibility of defining a custom event:

| Name in the platform | Event ID | When to use it |
|---|---|---|
| Order created | order_created | Confirmed purchase in ecommerce |
| Lead created | lead_created | Form submitted, quote request |
| Checkout started | checkout_started | Entered the checkout |
| Items added | items_added | Added to cart |
| Contents viewed | contents_viewed | Viewed a product page or content |
| Page viewed | page_viewed | Page view |
| Registration completed | registration_completed | Created an account |
| Appointment scheduled | appointment_scheduled | Booked a meeting or visit |
| Subscription created | subscription_created | Signed up for a recurring plan |
| Trial started | trial_started | Started a free trial |
| App installed / opened | app_installed / app_opened | Apps only, and according to OpenAI’s documentation they are sent through the Conversions API, not from the site |
| Enter custom event | custom | An action that isn’t on the list |
If you sell online, your event is order_created. If you capture leads, as we do, it’s lead_created.
Name the conversion (30 characters maximum) and save. We called ours “Lead Created.”

When you save, the platform shows you the event code. Copy it.

Step 4: install the event in Tag Manager
Create another Custom HTML tag, this time for the event. There are two things that can’t go wrong.
Mistake 1: pasting the code without the script tags. The code ChatGPT Ads gives you comes without <script> and without </script>. Tag Manager treats it as text and runs nothing. You need to wrap it like this:
<script>
oaiq("measure", "lead_created", { type: "customer_action" });
</script> Mistake 2: the event firing before the base pixel. If the event runs before the script loads, it isn’t recorded. The fix is tag sequencing: in the event tag, open Advanced Settings → Tag Sequencing, check “Fire a tag before this tag fires” and select the base pixel tag.

Finally, assign the trigger that matches your conversion:
- Ecommerce: the same trigger you use for the GA4
purchaseevent. - Leads: the form submission. We use a custom event trigger (
formSubmission).
Step 5: test and publish
Don’t publish straight away. Use Tag Manager’s preview mode, perform the action on your site (submit the form, complete a test purchase) and confirm that both tags fire in the right order: base pixel first, then the event.
With debug: true active, you can also open the browser console and see the event being sent. And ChatGPT Ads has its own debugging mode to check that events are arriving; in the Conversions panel you can review the “Event stream” (“Flujo de eventos”) and “Diagnostics” (“Diagnóstico”) tabs.

If everything works, publish the container version. In our case it was version 17, “Add ChatGPT and ChatGPT Ads – form sent tags.”

Consent and cookies
The Pixel uses first-party cookies to attribute conversions (__oppref for 30 days and __obref for 365 days). If you have a consent banner, the official documentation lets you pause sending with oaiq("consent", false) before initializing and re-enable it with oaiq("consent", true) when the user accepts. Check with whoever handles your regulatory compliance what applies in your case, especially now that personal data regulation is changing in Chile.
The platform also offers “automatic advanced matching”: it detects contact data on your site, normalizes it and hashes it in the browser, without touching the pixel code.
Mistakes to avoid
- Pasting the event code without
<script>. - Not setting up sequencing: the event runs before the base pixel.
- Installing the base pixel twice (once through Tag Manager and once by hand in the theme).
- Leaving
debug: truein production. - Measuring the wrong event: counting “Page viewed” as a conversion instead of the action that actually generates business.
How we approach it at Canal Cero
A campaign without measurement can’t be optimized. We installed the pixel on our own site first, with the form event hooked to the same trigger that already fires our GA4 tag. To go deeper on measurement, see how to connect GA4 to BigQuery and how to audit your attribution models.
Want us to get it running on your site? Write to us through our marketing agency service.
Conclusion
The order: data source, base pixel, event, event code with <script> and sequencing. Then test before publishing. Without testing, you’re optimizing on data you don’t know is real.
Source: Official documentation for the OpenAI Ads measurement Pixel.
