ChatGPT Ads

How to Track Hotel Bookings from ChatGPT Ads: Pixel, Conversions API, GA4 and UTMs

OpenAI gives advertisers a measurement pixel and a server-side Conversions API. This guide shows how a hotel should use them, where booking engines and WhatsApp complicate things, and how to turn the numbers into cost per booking and ROAS.

Fielmente TeamUpdated 6 min read
How to Track Hotel Bookings from ChatGPT Ads: Pixel, Conversions API, GA4 and UTMs
On this page

A ChatGPT Ads campaign that is not tracked properly cannot be judged and cannot be optimised: oCPC bidding needs conversions to learn from, and you need cost per booking to compare ChatGPT with Google, Meta and the OTAs. Hotels have two extra problems: bookings usually finish on a separate booking-engine domain, and in India many enquiries happen on WhatsApp or the phone rather than a web form. This guide covers how to handle both.

What OpenAI provides

OpenAI has two tools, and it recommends using them together.

The measurement pixel

A JavaScript snippet in the page's <head> loads OpenAI's SDK and exposes a function called oaiq. You initialise it with your pixel ID, oaiq("init", { pixelId: "..." }), and record events with oaiq("measure", ...). The standard events most useful to a hotel are:

EventUse it for
page_viewedEvery landing page view
contents_viewedRoom, package or venue pages
checkout_startedGuest opens the booking engine with dates
lead_createdEnquiry form, call request or a qualified WhatsApp enquiry
appointment_scheduledSite visit booked, for weddings and events
order_createdConfirmed booking, with its value

When someone clicks your ad, the landing page URL carries an oppref parameter. The pixel stores it in a first-party cookie, __oppref, for 30 days, and that is how later events are tied back to the ad.

The Conversions API

The Conversions API sends the same events from your server, which survives ad blockers, cookie limits and journeys that cross domains or devices. Events go to https://bzr.openai.com/v1/events with your pixel ID and an API key, up to 1,000 events per request, and each event's timestamp must be within the last seven days. Two details matter for hotels:

  • You must pass the oppref yourself. Unlike the pixel, the API does not read it from the page, so your site has to capture it from the landing URL and carry it with the enquiry or booking.
  • Hash guest details before sending. Emails and phone numbers go as SHA-256 hashes. Phone numbers keep the country code without the plus sign, so +91 98765 43210 is normalised to 919876543210 before hashing.

Counting each booking once

If both the pixel and the API report the same booking, give them the same event ID (event_id in the pixel, id in the API). OpenAI keeps the first event it receives with that ID and ignores the duplicate.

Attribution windows

Clicks are credited within the click window configured in your account. View-through conversions use a fixed one-day window and are reported separately at campaign level; they are not included in the Conversions column, and bidding and billing stay based on clicks. Read your results with that in mind: a channel that "assists" a booking a week later will not get credit for it.

Consent

Where you need consent before tracking, call oaiq("consent", false) before initialising and switch it to true once the guest agrees. While consent is false, the pixel sends nothing and does not replay events later. India's data protection law requires a clear purpose and consent for personal data, so keep tracking in your privacy notice and cookie banner.

The booking engine problem

Most hotel websites hand the guest to a booking engine on another domain or subdomain. A pixel on your website alone will see the visit but not the booking. Options, from best to simplest:

  1. Server-side from the booking engine. Pass the oppref from the landing page into the booking-engine link as a parameter, store it with the reservation, and send order_created with the booking value through the Conversions API when the booking is confirmed.
  2. Pixel on the confirmation page. If the booking engine lets you add scripts to its confirmation page, install the pixel there and fire order_created with the value.
  3. Count the hand-off. If neither is possible, fire checkout_started when the guest clicks through with dates, and reconcile bookings manually each week using the GA4 data below.

WhatsApp and phone enquiries

A click on a WhatsApp button is not an enquiry: many people open the chat and never type. Track it as a step, then record the real enquiry.

  • Fire a custom event such as whatsapp_click on the button.
  • Pre-fill the WhatsApp message with a short reference, for example "Hi, I'd like the monsoon package (ref CG1)", so the reservations team or your CRM can see which campaign the chat came from.
  • When the conversation becomes a real enquiry, with dates and guest numbers, send lead_created from the CRM through the Conversions API, and order_created when it converts.
  • For calls, use a tracked number on the ChatGPT landing page so calls can be counted against the campaign.

OpenAI's reporting shows what happened from OpenAI's side. GA4 lets you compare ChatGPT traffic with every other channel on your own terms. Add UTM parameters to every ad's landing URL, for example:

?utm_source=chatgpt&utm_medium=cpc&utm_campaign=weekend-package-delhi

Keep paid and organic separate. Visits from ChatGPT's normal answers arrive as referrals from chatgpt.com and often carry utm_source=chatgpt.com; your paid tags should use a different source or medium so you can tell them apart. In GA4, create a custom channel group with a "Paid AI" channel for source chatgpt and medium cpc, and mark your enquiry and booking events as key events.

From clicks to cost per booking

Judge the channel on bookings, then compare it with what the same booking would cost through an OTA. A worked example with round numbers:

MeasureValueHow it is worked out
Ad spend₹22,000One month on one offer
Enquiries40Calls, WhatsApp and forms, tracked
Cost per enquiry₹55022,000 ÷ 40
Bookings6From the CRM or booking engine
Cost per booking₹3,66722,000 ÷ 6
Booking revenue₹1,08,000Six stays at ₹18,000
ROAS4.91,08,000 ÷ 22,000
OTA commission on the same stay₹3,24018% of ₹18,000

In this example ChatGPT Ads cost slightly more per booking than an OTA commission, but the guest booked direct, the hotel owns the relationship and repeat stays cost nothing. Whether that trade is worth it depends on how many guests return. The point is to make the comparison with real numbers every month, not to judge on clicks.

When there are clicks but no bookings

If the campaign gets clicks and few enquiries, check these in order:

  1. Tracking. Make a test enquiry and a test booking yourself and confirm each event arrives once.
  2. The landing page. Does it match the ad's promise, show a price or "from" rate and what is included, and load fast on a phone? A generic home page loses most planners.
  3. The offer. Is it something a planner would choose over the OTA listing, such as a package, a direct-booking perk or a clear reason to contact you?
  4. Reply speed. Look at how quickly WhatsApp enquiries from the campaign were answered. Enquiries left for hours rarely book.
  5. The audience. Only then change targeting, context hints or ad copy.

A landing page checklist

  • One page per offer, with the same words as the ad's title
  • The "from" price, dates or season, and what is included
  • Photos of the actual rooms, venue or programme
  • WhatsApp, call and booking buttons visible without scrolling on a phone
  • A booking-engine link that carries the dates and the oppref
  • Distance or drive time from the cities you advertise to
  • No claims that break the ad policy, such as health outcomes for wellness stays

For setting up the account and budget, see ChatGPT Ads in India: access, cost and setup. For campaign structure and ad copy, see our main ChatGPT Ads guide.

Sources

Want this working for your property?

Get a free 15-minute marketing audit from the Fielmente team.

ChatGPT Ads trackingOpenAI pixelConversions APIGA4Hotel ROAS

ChatGPT Ads

ChatGPT Ads in India for Hotels: Access, Cost and Setup

Indian businesses have been able to buy ChatGPT Ads themselves since 31 August 2026. This guide covers who can advertise, who sees the ads, the ₹725 daily minimum, what hotels may promote and how to set up a first test without wasting budget.

6 min readRead

Hotel Marketing

10 Amazing Digital Marketing Strategies To Increase Online Bookings

Today one of the most competitive sectors is the hospitality industry, once the pandemic was offered people started travelling like there was never a pandemic, never existed. It is also important because the hotel industry is directly linked to the tourism industry.

7 min readRead