Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

WhatsApp Conversion Tracking: Button Clicks, Click-to-WhatsApp Ads and Real Chats

For marketers who send people to WhatsApp from a website or from Meta ads: what you can measure when someone taps the button, starts a chat from an ad, and buys in the chat, and where attribution breaks.

The EndFrame Team7 min read

WhatsApp conversion tracking means three different measurements, and most guides only cover the first. A tap on a WhatsApp button on your website can be recorded as an event in GA4 or Google Tag Manager. A conversation started from a Click-to-WhatsApp ad carries a Meta click ID, called ctwa_clid, into the chat. A sale or qualified lead inside the chat can only be reported back to Meta by a system connected to the WhatsApp Business Platform.

The three things people mean by WhatsApp tracking

StepWhat you can measureTool needed
Visitor taps a WhatsApp button on your siteA click on a wa.me or api.whatsapp.com link, with the page and the session's campaign sourceGA4 enhanced measurement, a Tag Manager click trigger or another analytics tool
Visitor sends the first messageNothing in the browser. The chat arrives in WhatsApp, where your team sees itWhatsApp itself, plus a reference code in the pre-filled text
Person messages you from a Click-to-WhatsApp adThe ad's results in Ads Manager, and a ctwa_clid on the first inbound messageA WhatsApp Business Platform (Cloud API) webhook, usually through a messaging partner
Lead qualifies or buys inside the chatLeadSubmitted, QualifiedLead or Purchase events attributed to the adConversions API for Business Messaging, sent by a partner or your own integration

The break sits between the first and second rows: once WhatsApp opens, nothing the visitor does comes back to your analytics.

How wa.me links work

WhatsApp's click to chat help page gives the format: https://wa.me/ followed by the full phone number in international format, including the country code, with any zeros, brackets or dashes left out. A UK number written as +44 (0)20 7946 0000 becomes https://wa.me/442079460000. Adding ?text= with URL-encoded words pre-fills the message box, for example https://wa.me/442079460000?text=I%27d%20like%20a%20quote. A link with no number, such as https://wa.me/?text=hello, does not open a chat with you at all: it asks the person to pick one of their own contacts to send the text to.

Some themes and chat plugins build links on api.whatsapp.com/send?phone=...&text=... instead. They open the same chat. When the app does not take over, that address shows a Chat on WhatsApp page with an Open app button. Nothing has been sent at that point.

Tracking the button click on your website

GA4 may already record these clicks. Enhanced measurement includes outbound clicks: a click event, with the parameters link_url, link_domain, link_classes, link_id and outbound, sent whenever a visitor clicks a link that leads away from your domain. A wa.me link is on another domain, so it qualifies. To turn the click into its own event:

  1. 1In GA4, go to Admin, Data streams, choose your web stream and open the Enhanced measurement settings. Check that Outbound clicks is switched on. You need Editor access to change it.
  2. 2Tap your WhatsApp button on the live site and open the Realtime report. You should see a click event whose link_domain is wa.me or api.whatsapp.com.
  3. 3Go to Admin, Data display, Events and click Create event. Name it whatsapp_click and set two conditions: event_name equals click, and link_domain equals the WhatsApp domain your button uses. Add a second created event if your site uses both domains.
  4. 4The Create event screen also has a Mark as key event toggle with a default value. Decide on it deliberately, using the next section.

If you prefer Tag Manager, a Just Links click trigger where Click URL contains wa.me, attached to a GA4 event tag, does the same job. Our walkthrough on tracking button clicks in Google Tag Manager covers the trigger and why it fails to fire, and creating GA4 events without code covers the Create event screen in more detail.

Why a click is a weak signal

The click proves that someone opened the link, not that a message was sent. The pre-filled text waits until the person taps send, desktop visitors may stop at the Open app page, and repeat taps count each time. Treat the event the way you would treat a tap on a phone number, as described in our guide to tracking phone number clicks: a useful measure of intent that belongs in reports, with a low value or none, and not the goal an ad platform should optimise towards when real leads or sales are available.

Carrying the source into the chat

The message that arrives in WhatsApp has no UTM parameters and no referrer. The only thing your website controls is the pre-filled text, so use it to carry a short reference code. A button on the landing page of a kitchen campaign from Google Ads might open the chat with: Hi, I would like a kitchen quote (ref GK11). A shared sheet maps GK11 to Google Ads, the kitchen campaign and ad group 11. When the chat starts, whoever answers records the code against the new lead in your CRM or lead sheet.

  • Keep codes short, so people are less likely to delete them.
  • Use one code per campaign or landing page, not per visitor. A code that identifies a person turns the message into personal data you have to manage.
  • A developer can fill the code from the page's utm_campaign value with a few lines of JavaScript, so one button serves every campaign.
  • Expect gaps: people edit the text, and forwarded links carry the original code.

For chats that arrive without a code, asking how the person heard about you is a reasonable fallback. Our guide to a self-reported attribution question explains how to word it and compare the answers with tracked sources.

Click-to-WhatsApp ads and the ctwa_clid

Meta calls these ads that click to WhatsApp. They open a chat with the WhatsApp number linked to your Facebook Page straight from the ad, so the person never visits your website, no pixel fires and no UTM parameters exist. Ads Manager reports the ad's own results, and Meta's Marketing API documentation lists conversations as an optimisation goal for these ads under the Engagement, Leads, Sales and Traffic objectives.

What happens after the first message depends on how your number is connected. On the WhatsApp Business Platform, the webhook that delivers an inbound message includes a referral object when the person sent it through a Click-to-WhatsApp ad. Meta's webhook reference lists its fields: source_url, source_id (the ad ID), source_type, headline, body, media_type, the ad's image or video URL, welcome_message and ctwa_clid, the click ID. The click ID is left out for ads shown in WhatsApp Status placements.

Store the ctwa_clid and source_id with the contact when the first message arrives. The ad ID shows which ad started the chat; the click ID lets you tell Meta later that it became a sale.

Sending chat outcomes back to Meta

Meta's Conversions API for Business Messaging accepts events that happen in a conversation. Each event uses action_source business_messaging, messaging_channel whatsapp, and a user_data block with your whatsapp_business_account_id and the ctwa_clid. Supported event names include LeadSubmitted, QualifiedLead and Purchase, as well as order events such as OrderCreated and OrderShipped. If you do not have the click ID, Meta's guide describes a second route: hashed customer details such as phone or email plus your page_id and WhatsApp Business account ID, which Meta tries to match to an ad interaction from the past seven days. That route is available only in some countries, and matching is not guaranteed.

Two points in Meta's onboarding guide matter for reporting. First, Meta does not deduplicate these events and asks advertisers to deduplicate before sending, so your system has to make sure each lead or sale is sent once. Second, the integration is built by a Business Messaging Partner or by your own app with advanced access to the whatsapp_business_management and whatsapp_business_manage_events permissions and Marketing API access, connected through Embedded Signup or Facebook Login for Business. The guide says the final On-Premises API client expired on 23 October 2025, so in practice this means the Cloud API. In practice, ask the tool that runs your WhatsApp number whether it supports this API and which chat stages it sends. The same idea for website leads is covered in sending CRM lead stages to Meta.

If you use the free WhatsApp Business app

The free app has no webhook of its own. Message webhooks, the referral object and the click ID all come from the WhatsApp Business Platform, so a number used only in the app gives you no ctwa_clid and nothing to send to the Conversions API for Business Messaging. Website clicks can still be tracked, because that happens on your site. For the chat side, the manual fallback is: put reference codes in every website button, record the code or the answer to how did you hear about us for each new chat, and mark which chats became sales in the same sheet. Meta's documentation describes no way for an app-only number to report chat sales to Meta, and presents labels as an inbox organiser. Meta adds app features often, so check the app's Business tools for anything newer.

Meta also lets businesses on the app connect the same number to the Cloud API through a partner's onboarding flow while they keep chatting in the app. According to its developer documentation, one-to-one messages are mirrored between the two, and the partner can then report purchase and lead events from Click-to-WhatsApp chats with the Conversions API. Broadcast lists are disabled, and features such as labels, quick replies and the catalog are not supported on the Cloud API side, so review the list of limitations before you switch.

Putting the pieces together

Record the click as intent, carry a code into the chat, store the ad referral, and report outcomes from the system that sees the conversation. EndFrame covers only the website part: if your site calls endframe.track when the WhatsApp button is tapped, that event can be a conversion goal credited to the campaign and source of the visit, and forwarded to Meta, GA4, TikTok or a webhook into your CRM. If GA4 already records the click through enhanced measurement, send it to GA4 from one source only. EndFrame does not receive WhatsApp webhooks or send Conversions API for Business Messaging events, so outcomes inside the chat stay with your messaging partner.

Frequently asked questions

Can GA4 tell me whether someone actually sent a WhatsApp message?

No. GA4 sees the tap on the link and nothing after it, because the conversation happens inside the WhatsApp app, outside your website. To know whether a chat started, you need either your team logging new chats, a reference code in the pre-filled text, or a system connected to the WhatsApp Business Platform that receives every inbound message.

Does the Meta Pixel track conversions from Click-to-WhatsApp ads?

Not on its own. An ad that clicks to WhatsApp opens the chat directly, so the person never loads your website and the pixel never fires. If the sale later happens on your site, the pixel can record it there. If it happens in the chat, it has to be reported to Meta from your messaging system with the Conversions API for Business Messaging.

Why is there no ctwa_clid on some messages from my ads?

Meta's webhook reference says the click ID is left out for ads shown in WhatsApp Status placements. It is also missing when the person found your number some other way, such as your website or a saved contact, because then there is no ad referral at all. Check the referral object's source_type and source_id before assuming the integration is broken.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading