# Ad Attribution & Conversion Reporting

Canonical: https://docs.bluehola.com/docs/guides/ctwa-attribution
OpenAPI: https://docs.bluehola.com/openapi.yaml

The first message a user sends after clicking a Click to WhatsApp (CTWA) ad carries the **id of that ad click**. Reporting it back to Meta alongside the resulting sale or lead is what lets the ads dashboard work out how many conversions the ad actually produced. This data appears only in that one webhook and cannot be retrieved afterwards from Meta's Graph API, so the platform stores it for you.

## Prerequisites

| Requirement                            | Notes                                                                                                                                        |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| The customer is running CTWA ads              | Only conversations that started from an ad have an attributable click id. Ordinary conversations do not.                                                                                   |
| The Business Portfolio has a Pixel linked | Conversion events must be reported to the customer's own Meta Pixel (dataset). The link comes from the Pixel the customer chose during Embedded Signup; to add it later, contact BlueMedia support. |

## 1\. Find the conversations an ad produced

Both the inbox list and the conversation detail carry the ad attribution fields:

```json title="One record from GET /v1/conversations (excerpt)"
{
  "id": "conv_...",
  "contactWaId": "8613800138000",
  "contactName": "Zhang San",
  "ctwaClid": "Aff-n8ZTODiE79d22KtAwQKj9e_mIEOOj...",
  "adSourceId": "120210000000000000",
  "adSourceUrl": "https://fb.me/xxxxx",
  "adSourceType": "ad",
  "attributedAt": "2026-08-21T09:12:00.000Z"
}
```

`adSourceId` is the ad id and answers "which ad brought this customer in"; `ctwaClid` is the only identifier Meta accepts when reporting a conversion. Attribution uses **first touch**: if the same person later clicks a different ad and comes back, that does not overwrite the conversation's original source (the full per-message `referral` is still kept on the message records).

:::warning

**`ctwaClid` can be empty while `adSourceId` has a value.** The WhatsApp Status ad placement does not emit a click id (established Meta behaviour). You can tell which ad such a conversation came from, but you **cannot report conversions** for it.

:::

## 2\. Report conversions

Conversion events are reported to Meta through BlueMedia. To report the sales or leads your own systems confirm, contact BlueMedia support; customer API Keys cannot submit conversion events directly. Conversions Meta recognises automatically (below) need no action from you.

## Conversions Meta recognises automatically

A customer can authorize Meta to analyse ad-driven conversations automatically, letting Meta decide that an order or lead occurred and push that conclusion to the platform — which queues and reports it for you, with **no API call on your part**.

To enable it, the customer ticks "automatically recognise order and lead events" on the assets page of the Embedded Signup flow, or turns on the corresponding switch afterwards under Meta Business Suite → Settings → WhatsApp accounts → Privacy and data sharing.

:::note

**Not available to customers in the EU, the UK or Japan** (a Meta restriction). Also note that these are *inferred* results and may not agree exactly with the sales you confirm yourself — the two are recorded separately and never overwrite each other.

:::
