Skip to content

BlogMeta Ads

How to know which ad brought the booking (instead of guessing)

What each chat from a WhatsApp ad carries (ad ID and ctwa_clid), how to send the booking back to Meta and the cost-per-booking report.

11 min read

“Lots of people wrote to us, but I do not know which ad each one came from.” It is the most common problem with click-to-WhatsApp ads, and it has a technical fix. Every message that arrives from an ad carries the ad ID and a click identifier. If your system stores them, marks when that conversation became a booking and sends the booking back to Meta, you know which ad brought each guest and the algorithm learns to find people who book. This guide explains what data Meta delivers, how it connects and what to do if you still use the WhatsApp Business app.

Technical summary

  • The source data: with the WhatsApp API, a message that comes from an ad includes a referral object with the ad ID (source_id), the link, the ad text and the click ID ctwa_clid.
  • Exception: if the ad was shown in WhatsApp Status, the ctwa_clid is not included.
  • Sending the booking back: the Conversions API for business messaging accepts events such as LeadSubmitted, QualifiedLead and Purchase with action_source “business_messaging”. Each event can be at most 7 days old when sent.
  • Optimizing for bookings: to use the “maximize number of purchases through messaging” goal on click-to-WhatsApp ads you need 10 or more purchases shared with Meta in 30 days, labeled within 7 days of the click.
  • Meta’s metric: “messaging conversations started” counts people who message you for the first time or after 7 days of inactivity. That is why it never exactly matches your inbox.
  • Cost of replying: if you reply within the first 24 hours, a 72-hour window opens in which every message is free.

Why the trail disappears

When someone taps a click-to-WhatsApp ad, they leave Facebook or Instagram and enter another app. On the web, the link carries UTM parameters and the pixel records the visit; in WhatsApp there is no page and no pixel. If you use the WhatsApp Business app on a phone, you see a new chat with no visible mark of the ad that brought it. The information exists, but it only arrives in full to a system connected to the API.

What Meta sends when someone writes from an ad

With the API, every incoming message reaches your server or platform as a notification (webhook). If the message came from a click-to-WhatsApp ad, it includes a referral block with these fields:

Field What it contains What it is for
source_id Ad ID Knowing exactly which ad brought the chat
source_type “ad” Separating ad chats from organic ones
source_url Ad link Opening it from the inbox
headline and body Ad headline and primary text Letting the agent know which offer the person saw
media_type “image” or “video” Comparing formats
ctwa_clid Click identifier Sending that person’s booking back to Meta
welcome_message The ad’s greeting text Conversation context

Two details change the setup. First, you get the ad ID, not the campaign or ad set ID; to group by campaign you have to look that ID up in Ads Manager or query it through the Marketing API. Second, the ctwa_clid is missing when the ad was seen in WhatsApp Status: those chats can be counted by ad, but cannot be sent back to Meta as conversions.

Each chat with its source ad, its status and the booking value.

Three levels of measurement

Level What you need What you learn What Meta receives
1. Pre-filled message and labels The WhatsApp Business app Approximate campaign, if the guest does not delete the text Nothing, unless you enable level 2
2. Order labels in the app WhatsApp Business app with activity sharing turned on Same as level 1 Purchases from chats that came from ads, if labeled within 7 days
3. API, CRM and Conversions API WhatsApp Business API, an inbox that stores the referral and event integration Exact ad, status of each chat and value of each booking Leads, quotes and bookings with their value

Level 1: a different message per ad

In the ad’s message template you set the text the guest sends when tapping the button. If each ad set has a different text, reading the first message tells you where it came from. It is free and works with the app, with two limits: the person can delete or change it, and someone has to label each chat by hand. Ready-to-use examples:

Hi, I saw the 2-night package for the October long weekend and would like to check availability.

Hi, I am interested in the sea-view room for couples. Which dates do you have?

Even with the API, keep this level as a backup: if something fails in the integration, the text still tells you which campaign the chat came from.

Level 2: the WhatsApp Business app can also tell Meta

Meta lets the app share purchase events from chats that came from ads. You turn on, in the app’s tools, the option that allows Meta to receive information about your customers’ activity, and label chats with the default labels new order, pending payment, paid or order complete. With custom labels, purchases may not be attributed. It helps optimization, but it does not give you a per-ad report inside your own system.

Level 3: API, inbox and Conversions API

This is the right setup once ad spend is past the experimental stage. The full flow:

  1. Store the referral. The inbox or CRM saves source_id and ctwa_clid on the contact record when the first message from the ad arrives.
  2. Turn the ID into names. From the ad ID you get the campaign and ad set. That is why campaigns need a fixed naming format, for example “2026-10 | Conversations | Columbus Day | Couples”.
  3. Define statuses. New, quoted, booked (deposit paid), lost. Without statuses there is no close rate.
  4. Record the value. When a chat moves to “booked”, the agent enters the total booking value. Without it there is no return, only counts.
  5. Send the event to Meta. Each relevant status change goes out through the Conversions API for business messaging.

How the booking goes back to Meta

The Conversions API for business messaging receives events about what happens inside the chat. For WhatsApp, your provider or developer needs a Meta app with the whatsapp_business_management and whatsapp_business_manage_events permissions, and a dataset linked to the WhatsApp account. Each event carries the WhatsApp Business account ID and the ctwa_clid that came with the first message. This is what a COP $1,350,000 booking looks like:

{“event_name”: “Purchase”, “event_time”: 1790000000, “action_source”: “business_messaging”, “messaging_channel”: “whatsapp”, “user_data”: {“whatsapp_business_account_id”: “YOUR_WABA_ID”, “ctwa_clid”: “AD_CLICK_ID”}, “custom_data”: {“currency”: “COP”, “value”: 1350000}}

Which event matches each moment in a hotel:

  • LeadSubmitted: the guest gave dates and number of people.
  • QualifiedLead: they received a quote with real availability.
  • Purchase: they paid the deposit or the full booking, with the total value.

Two unforgiving rules. The event_time can be at most 7 days old when sent: if a single event in the batch is older, Meta rejects the whole batch. And for purchases to count toward WhatsApp optimization, the chat must come from an ad and be labeled as a purchase within 7 days of the click. In hospitality, where people quote and decide days later, treat the deposit as the purchase and collect it early.

Optimizing for bookings instead of conversations

Once the account has 10 or more shared purchases in a 30-day period, the “maximize number of purchases through messaging” performance goal becomes available. From then on Meta stops looking for people who write and starts looking for people who pay. Meta recommends running it for at least 7 days and measuring it by purchases and cost per purchase, not conversations started. If several Facebook Pages advertise, each must meet the requirement separately.

Why Meta and your inbox never show the same number

  • Definition of conversation. Meta counts “messaging conversations started” when someone writes for the first time or after 7 days of inactivity. A guest who writes twice in a week is one conversation for Meta.
  • Date. Ads Manager credits the last ad the person interacted with and reports by impression date, not payment date. A booking paid on November 3 from a click on October 29 shows up in October.
  • Attribution window. For web conversions, new ad sets default to 7-day click or 1-day view. Anything outside that window is not credited to the ad.
  • WhatsApp Status. Chats from that placement carry no ctwa_clid.

The practical rule: use Meta to compare ads against each other and your inbox to count bookings and money.

If the ad goes to the website: dynamic UTMs

When the ad sends people to the booking engine, the trail comes from URL parameters. Meta fills them in with dynamic parameters. Paste this into the ad’s URL parameters field:

utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}

site_source_name returns fb, ig, msg, an or th depending on where the ad was seen. Names are frozen at the value they had when published: if you rename the campaign later, the UTM keeps showing the original name. And changing the parameters of a published ad can send the ad set back into the learning phase.

The report that works, with an example

A hypothetical 12-room guesthouse in Palomino. Two ads with COP $600,000 of spend each over a month and an average booking value of COP $750,000:

Ad Spend Cost per conversation Conversations Close rate Bookings Cost per booking ROAS
A: “Would you like to discover the Caribbean?” COP $600,000 COP $2,000 300 3% 9 COP $66,700 11.3
B: “October long weekend, 2 nights from COP $620,000” COP $600,000 COP $6,000 100 12% 12 COP $50,000 15.0

Cost per booking = spend ÷ bookings. ROAS = revenue from attributed bookings ÷ spend.

Looking only at cost per conversation, ad A seems three times better. Looking at bookings, B brings guests 25% cheaper and leaves 200 fewer chats to handle. The ad that shows price and date filters before the chat; the one that asks “would you like?” attracts browsers. With that data you decide: switch off A and move its budget to B.

The monthly per-ad report needs these columns: spend, conversations, cost per conversation, quotes, bookings, close rate, cost per booking, attributed revenue and ROAS. If your current report only shows reach, impressions and clicks, it will not help you decide.

The useful report: bookings and cost per booking by ad, not impressions.

Warning signs

  • Your WhatsApp provider does not store the referral. Ask whether the contact record shows the ad ID. If not, per-ad measurement is impossible.
  • Bookings are labeled weeks later. After 7 days, the API rejects the event and it does not count toward purchase optimization.
  • Nobody records the value. Without it you can only count bookings; you cannot compare a day-pass ad with a long-stay one.
  • Optimizing for conversations forever. If you already share 10 bookings a month, test the purchases through messaging goal.
  • Nobody replies in time. A conversation with no reply in the first 24 hours does not open the free 72-hour window, and the guest keeps shopping elsewhere.

Frequently asked questions

Can I tell which ad brought the chat if I use the WhatsApp Business app?

Not precisely. The app does not show the ad ID in the inbox; the closest option is a different pre-filled message per ad and labeling each chat by hand. For the exact ID you need the WhatsApp API and an inbox that stores the referral data.

Does the webhook tell me the campaign and ad set?

No. The source_id field carries the ad ID. The campaign and ad set are obtained by looking up that ID in Ads Manager or through the Marketing API, which is why a fixed campaign naming format helps.

What if the guest books ten days after writing?

Your CRM can still attribute it to the ad, because it stored the ID from the first message. What you cannot do is send Meta that event with its real date, because the Conversions API only accepts events up to 7 days old. That is why the deposit should be recorded as the purchase as soon as it is paid.

Do I need the WhatsApp API to optimize for bookings?

Not necessarily. Meta accepts purchases shared from the WhatsApp Business app with order labels or through the Conversions API. Either way you need 10 or more purchases in 30 days from chats that came from ads, labeled within 7 days of the click.

Why do Meta’s conversations not match my inbox?

Because they measure different things: Meta counts a conversation only when someone writes for the first time or after 7 days of inactivity, and on WhatsApp only those that started with an ad click; your inbox counts every chat, whatever its source. Compare ads with Meta and bookings with your inbox.

Sources: Meta developer documentation on the WhatsApp messages webhook, the Conversions API for business messaging, server event parameters and WhatsApp pricing; Meta Business Help Center on optimizing for purchases through messaging, messaging conversations started, attribution and dynamic URL parameters, accessed in September 2026.

This is how we set it up when we combine Meta Ads with WhatsApp Business API. If you are not sure how much to invest yet, start with how much to spend on Meta Ads if you run a small hotel; if you are torn between the app and the API, read when it is worth switching. And if you want us to review your tracking, tell us how you work today.

We do this for you

Facebook and Instagram campaigns built to generate conversations and bookings, not just clicks.

See the service

Your next customer is already looking for you.

Message us on WhatsApp and we'll tell you, no strings attached, where to start.

pablopalma.co 317 615 9813 WhatsApp