Tealium iQ: Enterprise OpenAI Ads Pixel and CAPI Setup with Tealium iQ & EventStream
Tealium Customer Data Hub is widely used in enterprise healthcare, financial services, and retail commerce where data governance and privacy compliance are strictly regulated.
Unlike consumer tag managers, Tealium enforces explicit data classification, server-side data enrichment, and consent validation before signals leave the enterprise environment.
To connect OpenAI Ads with Tealium, enterprise architects implement Tealium iQ (TiQ) for front-end tag loading, and route validated conversion events through Tealium EventStream to dispatch encrypted, SHA-256 hashed CAPI payloads directly to OpenAI.
Here is how to configure both Tealium iQ and EventStream for OpenAI Ads.
Client-side pixel tag in Tealium iQ
Create a tag inside the Tealium iQ console:
- In Tealium iQ, navigate to Tags and click Add Tag.
- Select Generic Tag (or Custom HTML Tag) and name it OpenAI Ads Base Pixel.
- In the tag script editor, insert the loader snippet:
<script>
!function(w,d,e,u,t,s){if(w.openaiAds)return;t=w.openaiAds=function(){
t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)};
if(!w._openaiAds)w._openaiAds=t;t.push=t;t.loaded=!0;t.version='1.0';
t.queue=[];s=d.createElement(e);s.async=!0;s.src=u;
var f=d.getElementsByTagName(e)[0];f.parentNode.insertBefore(s,f);
}(window,document,'script','https://bzrcdn.openai.com/pixel.js');
openaiAds('init', 'YOUR_PIXEL_ID');
openaiAds('track', 'PageView');
</script>
- Set the load rule to All Pages and publish to your environment.
Compare Tealium EventStream connectors with Twilio Segment Destination Function CAPI when unifying web and mobile schemas.
Normalizing data in EventStream extensions
Before transmitting customer data to the Conversions API, configure a data layer transformation extension:
- In Tealium iQ, open Extensions and add an Advanced JavaScript Code extension.
- Name it OpenAI Ads SHA-256 Hashing and set scope to Before Load Rules:
if (b.customer_email) {
var cleanEmail = b.customer_email.toString().trim().toLowerCase();
b.hashed_email = u.crypto.sha256(cleanEmail);
}
if (b.customer_phone) {
var cleanPhone = b.customer_phone.toString().replace(/[^0-9]/g, '');
b.hashed_phone = u.crypto.sha256(cleanPhone);
}
if (b.order_subtotal || b.order_total) {
var totalDollars = parseFloat(b.order_total || b.order_subtotal || 0);
b.order_value_cents = Math.round(totalDollars * 100);
}
Tealium EventStream webhook connector for CAPI
In Tealium Customer Data Hub:
- Open EventStream, select Connectors, and click Add Connector.
- Choose Webhook Connector and select your target Event Feed.
- In the Actions tab, create an action named Send Conversion Event:
- Method: POST
- URL:
https://bzr.openai.com/v1/events - Headers:
Authorization: Bearer YOUR_OPENAI_ADS_ACCESS_TOKENandContent-Type: application/json - Format the JSON payload:
{
"data": [
{
"event_name": "Purchase",
"event_time": {{ current_timestamp_epoch }},
"event_id": "teal_{{ order_id }}",
"user_data": {
"em": "{{ hashed_email }}",
"ph": "{{ hashed_phone }}",
"client_user_agent": "{{ user_agent }}",
"client_ip_address": "{{ client_ip }}"
},
"custom_data": {
"currency": "{{ order_currency }}",
"value": {{ order_value_cents }},
"order_id": "{{ order_id }}",
"content_type": "product"
},
"action_source": "system_generated"
}
]
}
Enterprise retail deployments routinely pair Tealium utag_data layers with Salesforce Commerce Cloud CAPI and Adobe Commerce (Magento 2) observers.
Verification checklist
In Customer Data Hub Live Events, verify that incoming events contain hashed_email and valid minor currency values.
Use the Trace Tool in EventStream to inspect outgoing HTTP requests and confirm HTTP 200 responses.
Check OpenAI Ads Event Manager to confirm that browser and server signals merge on event_id.
Enforce regional consent load rules upstream in EventStream following OpenAI Ads privacy and consent requirements.
Frequently asked questions
How does Tealium connect with OpenAI Ads?
Tealium iQ manages front-end pixel execution in the browser, while Tealium EventStream handles server-side conversion delivery to https://bzr.openai.com/v1/events.
How do I configure EventStream for CAPI?
In Customer Data Hub, add a Webhook Connector in EventStream configured to post authenticated JSON payloads to OpenAI when purchase events trigger.
How does Tealium hash user data?
Use an Advanced JavaScript Extension in Tealium iQ or an Event Attribute rule in EventStream with u.crypto.sha256 to hash email and phone numbers before dispatch.
How are events deduplicated?
Both the client tag template and EventStream webhook connector pass matching event_id tokens formatted using the order identifier.
Deploy Tealium Enterprise OpenAI Ads Telemetry
Tealium iQ client tag integration, EventStream webhook connector mapping, and verified CAPI deduplication.