José Castellanos

Click-to-WhatsApp attribution: your BSP decides whether you ever see the ad ID

Last updated 8 November 2026

Meta can include the ad ID and ctwa_clid in an ad-started chat webhook. Whether they reach your CRM, and whether you can send defined conversion events back, depends on your BSP. How to check before you sign. Capture and store referral data when received; do not assume later messages will repeat it. Exactly-once behavior across BSPs is not established here.

Meta tells you which ad started a WhatsApp chat. In these cases we captured it on the first inbound message, inside a referral object that carries the ad ID (source_id) and a click ID (ctwa_clid). If your BSP passes that object to you, you get deterministic, ad-level attribution for every ad-initiated chat, and you can send the defined conversion back to Meta. The campaign receives a deal-creation signal. Bookings and paid revenue require separately defined outcome events. Capture it immediately. I have not verified a universal exactly-once delivery guarantee. If the BSP drops it, later tagging alone cannot reconstruct the click ID; ask whether the BSP retained the raw payload.

TL;DR

  • Capture the referral object on the inbound ad-started message. Do not rely on later messages to repeat it; exactly-once behavior across BSPs is not verified here.
  • With source_id you can join every chat to campaign, ad set and ad. With ctwa_clid you can send a Purchase through Conversions API for Business Messaging.
  • Do not expect ad referral data from QR codes, bio links, landing-page bubbles or organic chats. The source notes also report Status ads without ctwa_clid from October 2025; I have not verified a universal cutoff. Test the actual entry path and use your own attribution bridge where the ID is absent.
  • BSPs differ: some pass the raw object, some rename the fields, some do not expose it at all. We have seen the last case in production in 2026.
  • Before you sign with a BSP, ask for one raw inbound webhook from a real Click-to-WhatsApp chat. If source_id and ctwa_clid are not in it, walk away or budget the workaround.

What does Meta actually send when someone taps a Click-to-WhatsApp ad?

For a message originating from an ad, the documented Cloud API messages webhook can include a referral object with this shape:

"referral": {
  "source_url": "https://fb.me/...",
  "source_id": "<ad_id>",
  "source_type": "ad",
  "headline": "Agenda tu valoración",
  "body": "Escríbenos por WhatsApp...",
  "media_type": "image",
  "image_url": "https://...",
  "ctwa_clid": "<click_id>"
}

Scroll code horizontally if needed.

Two fields matter:

  • source_id is the ad ID when source_type is ad. Join it to your ad metadata and you have campaign, ad set, ad and creative for that chat.
  • ctwa_clid is the WhatsApp equivalent of fbclid. There is no fbclid in a Click-to-WhatsApp flow. This is the key Meta uses to match a conversion you send back to the click.

Capture and store referral data when received; do not assume later messages will repeat it. Exactly-once behavior across BSPs is not established here.

Why does the BSP decide this?

Unless you run your own Cloud API integration, Meta's webhook does not hit your servers. It hits your BSP or chat CRM. What you get is whatever that platform chooses to store, show and forward.

Flow: ad, then Meta Cloud API webhook with the referral object, then the BSP, which can pass, rename or drop it, then your CRM, then a Purchase sent back through Conversions API for Business Messaging with the ctwa_clid. Capture and store referral data when received; do not assume later messages will repeat it. Exactly-once behavior across BSPs is not established here.

Scroll horizontally if needed. Open full-size chart

Every hop has to keep the referral object. The BSP is the hop you do not control.

There are three behaviors in the market:

BehaviorWhat you getExample
Passes the raw objectreferral as Meta sent it, in the webhook to youMeta Cloud API direct; 360dialog documents the referral object in its webhook
Renames itSame data, different field namesTwilio sends the click ID as ReferralCtwaClid
Does not expose itEmpty attribution fields, or only a link to the post in the message textSeen in production in November 2026 with a chat CRM

Scroll table horizontally if needed.

A renamed field is fine. You map it once. An empty field is not.

What "does not expose it" looked like in practice

Implementation: November 2026, a Mexican specialty-clinic group on a chat CRM.

We created an account webhook with conversation_created, message_created and contact_created, ran ad traffic, and read the payloads. On a chat that clearly came from an ad, the attribution fields were empty:

"additional_attributes": {},
"content_attributes": {},
"source_id": null,
"external_source_ids": {}

Scroll code horizontally if needed.

The only trace of the ad was the text of the first message: "Campaña externa" plus a link to the Facebook post. A post URL is not an ad ID. It does not identify the ad click for the ctwa_clid matching path. Other documented matching paths need their own identifiers; the post link alone is not one. The vendor confirmed the field is not part of its current webhook parameters and said it is still reviewing it.

Earlier, in 2025, a different chat-automation vendor told us directly that it did not capture ctwa_clid yet. Two vendors in two years is enough for me to stop assuming.

Once you have the ad ID, what do you do with it?

Implementation: Q3 2026, a Mexican fertility clinic network whose BSP passes source_id and ctwa_clid into HubSpot.

  1. The BSP creates the contact in the CRM with the ad ID and the click ID.
  2. An automation looks up the ad ID in a table of every ad ID, refreshed every 30 minutes from Meta, and writes campaign, content, source and medium onto the contact. It is the same attribution table we already used for creative reporting.
  3. A workflow copies that attribution, plus ctwa_clid, from the contact to the deal.
  4. When a deal is created, a Purchase goes to Meta server to server with the ctwa_clid. In this implementation, Purchase represents deal creation, not a closed-won deal or a payment. Appointment and paid-revenue outcomes need their own clearly defined events.

Step 4 is the point of the whole exercise. Without it, Click-to-WhatsApp campaigns optimize for "conversation started", which is the cheapest and noisiest event you have.

How do you send the purchase back?

Meta's incoming webhook schema names referral.source_id as the ad ID and referral.ctwa_clid as the ad click ID. Its Conversions API for Business Messaging guide documents action_source: business_messaging, messaging_channel: whatsapp, and user_data containing whatsapp_business_account_id and ctwa_clid. Do not hash ctwa_clid. This checks the field names, not delivery through every BSP or coexistence setup. Use a supported Graph API version and validate against your WABA before copying this example:

curl -X POST "https://graph.facebook.com/v23.0/$DATASET_ID/events?access_token=$TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": [{
      "event_name": "Purchase",
      "event_time": '"$(date +%s)"',
      "action_source": "business_messaging",
      "messaging_channel": "whatsapp",
      "user_data": {
        "whatsapp_business_account_id": "'"$WABA_ID"'",
        "ctwa_clid": "'"$CTWA_CLID"'"
      },
      "custom_data": { "currency": "MXN", "value": '"$DEAL_VALUE"' }
    }]
  }'

Scroll code horizontally if needed.

The trap is the dataset. The dataset you send to has to be linked to the WhatsApp Business Account that received the chat. If it is not, Meta rejects the event with OAuthException code 100, subcode 2804132: "No WhatsApp Business Account Linked to This Dataset".

We hit exactly this. Our main dataset already had a lot of conversion history, and the WABA was managed by the BSP. The BSP could not link our existing dataset to a WABA it manages. The only path was to use the dataset the BSP created for that WABA. It works, but the CTWA purchase signal now lives in a new dataset with no history. If dataset continuity matters to you, ask the BSP about this before onboarding, not after.

What about chats that do not start from an ad?

QR codes, links in bio, email CTAs, Google Maps buttons and the WhatsApp bubble on your own landing pages do not carry a referral object. The archived notes describe Status ads without ctwa_clid from October 2025, but I have not independently verified a universal cutoff. Use your own bridge when referral data is absent. Meta also documents a hashed-customer-information matching path; it is not deterministic recovery of a missing click ID and must be evaluated separately.

Flow: a link with UTMs hits a capture endpoint, which writes the parameters to an attribution table and redirects to WhatsApp. When the contact is created in the CRM, an automation matches it to the stored parameters.

Scroll horizontally if needed. Open full-size chart

The bridge records the parameters before the person reaches WhatsApp.

Implementation: Q2 2026, same fertility clinic network.

  • Every WhatsApp link (landing bubble, campaign links, social profiles) points to our own short endpoint with UTMs in the query string.
  • The endpoint stores the parameters, then redirects to wa.me with a prefilled message.
  • When the BSP creates the contact in the CRM, an automation matches it to the stored parameters and writes the attribution.

The first version captured and redirected in the same request. When the write was slow, the redirect timed out and we lost the parameters. We split capture from redirect and added a debug logger. It measures timeout failures at about 3%.

Implementation: November 2026. On a second account, a clinic group with several subdomains, the WhatsApp widget keeps UTMs and gclid in a first-party cookie for 30 days. They survive a tab change, a closed browser, or a move to another subdomain. A new campaign overwrites the old one.

This is probabilistic compared to the referral object. It depends on timing and on the match between the stored click and the new contact. Use it for the traffic the referral object cannot cover, not as a replacement.

Is it worth the work?

Same fertility clinic network, May 2026. We turned on the WhatsApp bubble on every landing page, including paid landings. In 23 days WhatsApp, counting every chat that reached the BSP, became the first entry mechanism.

Horizontal bar chart. WhatsApp 520 deals, full form 385, partial form 200, booking widget 144, May 1 to 23, 2026.

Scroll horizontally if needed. Open full-size chart

WhatsApp went from 154 deals in all of April to 520 in the first 23 days of May.
Entry mechanismDeals, May 1 to 23, 2026
WhatsApp520
Full form385
Partial form200
Booking widget144

Scroll table horizontally if needed.

Paid cost per deal went down. Excluding WhatsApp deals, the paid cost per deal rose to 1,155 MXN, in a month where spend rose 16%.

Horizontal bar chart. April paid cost per deal 1,078 MXN. May paid cost per deal 970 MXN. May paid cost per deal excluding WhatsApp 1,155 MXN.

Scroll horizontally if needed. Open full-size chart

MXN per paid deal. Excluding WhatsApp, paid cost per deal went up.
PeriodPaid cost per deal (MXN)
April, all paid1,078
May 1 to 23, all paid970
May 1 to 23, paid excl. WhatsApp1,155

Scroll table horizontally if needed.

Here is the trade-off. WhatsApp deals are cheap and they convert to appointments at a lower rate.

Horizontal bar chart. Deal to booked appointment rate: all channels April 32.6%, all channels May 21%, WhatsApp May about 16%, partial form May about 9%.

Scroll horizontally if needed. Open full-size chart

Wide capture, lower conversion. WhatsApp and partial forms convert below the April average.
SegmentDeal to booked appointment
All channels, April32.6%
All channels, May 1 to 2321%
WhatsApp, May 1 to 23about 16%
Partial form, May 1 to 23about 9%

Scroll table horizontally if needed.

This is exactly why you need the purchase signal. If the campaign optimizes for conversations, it will happily buy more of the cheap, low-intent chats. The campaign receives a deal-creation signal. Bookings and paid revenue require separately defined outcome events. In one city, cost per booked appointment from Click-to-WhatsApp moved from about 3,500 to 2,800 MXN over three months, on a small budget. We have not isolated how much of that came from the purchase signal. It is enough to justify a budget test.

What should you ask a BSP before signing?

Ask for one thing first: a sample raw inbound webhook from a real Click-to-WhatsApp chat. Not a screenshot of a dashboard. The JSON.

Then check:

  • Is there a referral object, or mapped fields, with source_id, source_type and ctwa_clid?
  • Does it arrive in the webhook to your endpoint, or only inside the BSP's UI?
  • Is it stored on the contact or conversation so you can read it later through the API or an export?
  • Can you link your existing Meta dataset to the WABA they manage? If not, which dataset will CAPI events go to?
  • Do they support coexistence (WhatsApp Business app and API on the same number), and does the referral data survive it? I have not verified this one, so test it.
  • If any of the above is "custom development", get the price and the date in writing.

Provider mappings below come from the archived implementation notes. Only the Meta schema was rechecked against official docs for this release; test a current raw webhook for every BSP:

ProviderReferral and ctwa_clid in your webhookStatus
Meta Cloud API, directYes, raw referral objectOfficial schema checked, not a live-account test
360dialogreferral object in the archived mappingNot independently reverified here
TwilioArchived mapping uses ReferralCtwaClidNot independently reverified here
Any other BSP or chat CRMAsk for the raw sampleNot verified
WhatsApp Business app aloneNo click ID availableNot available

Scroll table horizontally if needed.

FAQ

Can I get the ad ID from the "Campaña externa" link in the first message?

No. That link points to the post, not the ad. One post can run in many ads. It is not a substitute for ctwa_clid or for the identifiers required by another documented matching path.

Do I still need UTMs if I have the referral object?

Yes, for everything that is not an ad-started chat: bubbles, bio links, QR codes, email, Maps. The referral object covers ads only.

Should I send every conversation back as a lead event?

I would not optimize on it. Send the event closest to revenue that happens often enough to learn from: a booked appointment or a deal. Conversations are a volume metric.

Can I switch BSPs later?

You can, but the WABA has to be migrated and the dataset link and CRM automations rebuilt. It is cheaper to test the webhook before signing than to migrate after.

If you are running Click-to-WhatsApp and cannot see revenue by ad, book a consultation.

Evidence limits

The account outcomes and BSP support exchanges above are source-reported notes, not independently verified client records. Official Meta documentation confirms the payload fields, not these outcomes. WhatsApp Business app/API coexistence and whether referral data survives it remain unknown here.