---
title: ChatGPT Ads Measurement Pixel Tag
description: This article describes how to set up the ChatGPT Ads Measurement Pixel tag in your Tag Management account.
url: https://docs.tealium.com/client-side-tags/chatgpt-ads-measurement-pixel-tag/
---
ChatGPT Ads Measurement Pixel lets you measure conversions and customer actions on your website to optimize ChatGPT Ads campaigns.

## Tag tips

* Use the **Events** tab to wire a data layer variable to one of the ChatGPT Ads standard event types. The tag fires one measurement per matched trigger.
* Use the **Configuration** tab to override **Pixel ID** or **Custom SDK URL** per-fire (for example, multi-brand profiles). Use the **General** tab for event-level options and consent, and the **E-Commerce** tab for order totals, currency, and per-product arrays. Use the **Event-specific Parameters** tab to override either for a single event.
* Global values are automatically filtered per event. For example, `plan_id` is attached only to `subscription_created`, `trial_started`, and `custom` events.
* Page views and purchases auto-fire by default. Disable via the **Auto Page View** and **Auto Order Created** options.
* Supports these E-Commerce extension parameters:
    * Sub Total (`_csubtotal`)
    * Currency (`_ccurrency`)
    * Order ID (`_corder`)
    * List of Product IDs (`_cprod`)
    * List of Product Names (`_cprodname`)
    * List of Categories (`_ccat`)
    * List of Quantities (`_cquan`)
    * List of Prices (`_cprice`)
* **Amount** and **Product Amount** are mapped in major units (for example, 129.99). The tag converts to integer minor units per the ChatGPT Ads Measurement Pixel API.
* When **Product Type** is unmapped, contents default to `product` so every call passes vendor validation.
* To fire a custom ChatGPT Ads event, select **Custom** on the **Events** or **Event-specific Parameters** tab and enter the vendor event name in the field that appears. Any event name mapped here that is not in the ChatGPT Ads standard event list is auto-routed as a `custom` event with that name.
* Obtain your **Pixel ID** from your OpenAI account team. Self-serve provisioning via ChatGPT Ads Manager is not supported.
* Respects the Tealium consent state via `utag.gdpr.getConsentState()` and skips firing when consent is denied. Map the **Consent** destination to forward grant or revoke directly to the Measurement Pixel SDK.
* Use the **User data** mappings to send hashed identity signals for advanced conversion matching. Phone number, first name, and last name are normalized and SHA-256 hashed before sending. Region and postal code are sent as raw strings. Supply a pre-hashed value (lowercase 64-character hex) to skip normalization and send the value as-is.
* The OpenAI Measurement Pixel supports automatic advanced matching, which detects and hashes supported identity information in the browser. If automatic advanced matching is active on your account, avoid mapping the same fields manually to prevent sending duplicate user data.

## Tag configuration

Go to the tag marketplace to add a new tag. For more information, see [About tags](https://docs.tealium.com/about-tags/).

When adding the tag, configure the following settings:

* **Pixel ID**: Your ChatGPT Ads Pixel ID. Obtain this value from your OpenAI account team.
* **Debug Mode**: Enable Measurement Pixel SDK debug logging in the browser console.
* **Custom SDK URL**: (Optional) Override base URL.
* **Auto Page View**: Auto-queue `page_viewed` on every Tealium view event (default `true`). Skips if `page_viewed` is already queued from an explicit **Events** tab trigger.
* **Auto Order Created**: Auto-queue `order_created` when the **E-Commerce** extension has populated `_corder` and `order_created` is not already queued (default `true`).
* **Generate Event ID**: Automatically generate a unique event ID for every OpenAI tracking event.

## Load rules

Load the tag on all pages or set conditions for when your tag will load. For more information, see [About load rules](https://docs.tealium.com/about-load-rules/).

## Data mappings

Data mappings send values from data layer variables to the corresponding variables in the vendor tag. For more information, see [About data mappings](https://docs.tealium.com/about-data-mappings/).

The available categories are:

### Configuration

| Variable | Type/Values | Description |
|:---------|:-----|:------------|
| `pixel_id` | `String` | Pixel ID |
| `custom_sdk_url` | `String` | Custom SDK URL |


### General

| Variable | Type/Values | Description |
|:---------|:-----|:------------|
| `event_id` | `String` | Event ID |
| `plan_id` | `String` | Plan ID |
| `consent` | `String` | Consent |


### User data

User data fields are placed in the `init.user` object when the Open AI Measurement Pixel initializes. Identity fields are normalized and SHA-256 hashed. Geographic fields are sent as raw strings.

For more information, see [OpenAI Measurement Pixel: Send user data](https://developers.openai.com/ads/measurement-pixel#send-user-data).

| Variable | Type/Values | Description |
|:---------|:-----|:------------|
| `phone_number_sha256` | `String` | Phone number. Normalized (country code retained; whitespace, punctuation, leading `+`, and leading zeroes removed) and SHA-256 hashed. Pre-hashed values (lowercase 64-character hex) pass through unchanged. |
| `first_name_sha256` | `String` | First name. Lowercased with whitespace and ASCII punctuation removed (non-ASCII characters preserved), then SHA-256 hashed. Pre-hashed values pass through unchanged. |
| `last_name_sha256` | `String` | Last name. Lowercased with whitespace and ASCII punctuation removed (non-ASCII characters preserved), then SHA-256 hashed. Pre-hashed values pass through unchanged. |
| `region` | `String` | State, province, or region. Sent as a raw string. Maximum 128 characters. |
| `postal_code` | `String` | Postal or ZIP code. Sent as a raw string. Maximum 32 characters. |


### E-Commerce

| Variable | Type/Values | Description |
|:---------|:-----|:------------|
| `amount` | `Integer` | Amount (overrides `_csubtotal`) |
| `currency` | `String` | Currency (overrides `_ccurrency`) |
| `product_id` | `Array` | Product ID (overrides `_cprod`) |
| `product_name` | `Array` | Product name (overrides `_cprodname`) |
| `product_type` | `Array` | Product type (overrides `_ccat`) |
| `product_quantity` | `Array` | Product quantity (overrides `_cquan`) |
| `product_amount` | `Array` | Product amount (overrides `_cprice`) |
| `product_currency` | `Array` | Product currency (overrides `_ccurrency`) |


### Event-specific Parameters

To map events, refer to [Create an Event Mapping](https://docs.tealium.com/tag-management/data-mappings/manage/#add-an-event-mapping)

| Event | Description |
|:------|:------------|
| `event_id` | Event ID |
| `amount` | Amount (overrides `_csubtotal`) |
| `currency` | Currency (overrides `_ccurrency`) |
| `plan_id` | Plan ID |
| `id` | Product ID (overrides `_cprod`) |
| `name` | Product name (overrides `_cprodname`) |
| `content_type` | Product type (overrides `_ccat`) |
| `quantity` | Product quantity (overrides `_cquan`) |
| `amount` | Product amount (overrides `_cprice`) |
| `currency` | Product currency (overrides `_ccurrency`) |
