
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:
| Event | Use it for |
|---|---|
page_viewed | Every landing page view |
contents_viewed | Room, package or venue pages |
checkout_started | Guest opens the booking engine with dates |
lead_created | Enquiry form, call request or a qualified WhatsApp enquiry |
appointment_scheduled | Site visit booked, for weddings and events |
order_created | Confirmed 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
opprefyourself. 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:
- Server-side from the booking engine. Pass the
oppreffrom the landing page into the booking-engine link as a parameter, store it with the reservation, and sendorder_createdwith the booking value through the Conversions API when the booking is confirmed. - Pixel on the confirmation page. If the booking engine lets you add scripts to its confirmation page, install the pixel there and fire
order_createdwith the value. - Count the hand-off. If neither is possible, fire
checkout_startedwhen 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_clickon 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_createdfrom the CRM through the Conversions API, andorder_createdwhen it converts. - For calls, use a tracked number on the ChatGPT landing page so calls can be counted against the campaign.
Tag every ad link for GA4
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:
| Measure | Value | How it is worked out |
|---|---|---|
| Ad spend | ₹22,000 | One month on one offer |
| Enquiries | 40 | Calls, WhatsApp and forms, tracked |
| Cost per enquiry | ₹550 | 22,000 ÷ 40 |
| Bookings | 6 | From the CRM or booking engine |
| Cost per booking | ₹3,667 | 22,000 ÷ 6 |
| Booking revenue | ₹1,08,000 | Six stays at ₹18,000 |
| ROAS | 4.9 | 1,08,000 ÷ 22,000 |
| OTA commission on the same stay | ₹3,240 | 18% 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:
- Tracking. Make a test enquiry and a test booking yourself and confirm each event arrives once.
- 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.
- 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?
- Reply speed. Look at how quickly WhatsApp enquiries from the campaign were answered. Enquiries left for hours rarely book.
- 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.






