How to track WhatsApp conversions: click events in Google Analytics 4 and Meta Pixel, per-channel pre-filled messages, and the conversation-to-sale record that closes the loop
Analytics stops at the edge of the website. The moment a visitor taps your WhatsApp button, Google Analytics and Meta lose them, and the sale that happens in the chat never gets credited to the ad that caused it. You can fix most of that with a click event on the site, a source label in the chat, and an outcome record in your CRM.
Quick answer
Fire an event when the WhatsApp button is clicked: in GA4 a custom event such as whatsapp_click marked as a conversion, and in Meta Pixel a Contact or Lead event. Use a different pre-filled message per channel so each chat arrives labelled, and record the source in the lead card. Record Won and Lost with values in the CRM. Then judge campaigns on clicks-to-conversations-to-sales, not clicks alone. What happens inside WhatsApp itself cannot be tracked by web analytics.
The click event
<a href="https://wa.me/60123456789?text=Hi%2C%20I%20am%20on%20your%20pricing%20page"
target="_blank" rel="noopener"
onclick="if(window.gtag){gtag('event','whatsapp_click',{page_location:location.href});}
if(window.fbq){fbq('track','Contact');}">WhatsApp us</a>Google's guidance on custom events is in GA4 events; Meta's on the pixel is in the Meta Business Help Center. If you use a tag manager, create the same events on a click trigger for the wa.me link instead of inline code.
Attribution inside the chat
Different pre-filled messages per page, ad and channel are the cheapest attribution there is; the method is in WhatsApp links and QR codes and the ads version in tracking leads from ads. An agent reads the first message and records the source in the lead card automatically; a person can do it with a label.
The outcome record
Mark leads Won or Lost with a value and a reason. That turns "we got 80 WhatsApp clicks from the campaign" into "the campaign produced 31 conversations, 9 sales and RM 7,200". The stage pattern is in the WhatsApp CRM guide, and the ROI arithmetic in the ROI worksheet.
What cannot be tracked
- Anything inside WhatsApp: web analytics cannot see the conversation.
- Click-to-WhatsApp ads report a conversation start on Meta's side, but the sale still has to come from your record.
- Cross-device: a visitor who reads on desktop and messages from their phone's saved number is not connected.
- Offline entry: QR codes on print need their own pre-filled message; there is no click to fire.
The honest metric is therefore conversations by source and sales by source, kept in your own records.
Frequently asked questions
Can Google Analytics track WhatsApp conversions?
It can track the click on your WhatsApp button as an event and key event. It cannot see what happens in the chat.
How do I track WhatsApp leads in Meta Pixel?
Fire a Contact or Lead event when the button is clicked; click-to-WhatsApp ads also report conversation starts.
How do I know which channel a WhatsApp chat came from?
A different pre-filled message per channel, recorded in the lead card.
How do I attribute sales to ads?
Record Won with a value and the source in your CRM, then report clicks, conversations and sales together.
Does an AI agent help with tracking?
It records the source from the first message and the outcome from the lead stage automatically.
From click to conversation to sale
Source and outcome recorded on every lead. 7-day free trial.
Sources and further reading
- Google Analytics Help, GA4 events
- Meta Business Help Center, About Meta Pixel
- Harvard Business Review, The Short Life of Online Sales Leads (Oldroyd, McElheran, Elkington, 2011) · firms that responded within an hour were about seven times more likely to qualify the lead
ReplyKit is an independent product and is not affiliated with or endorsed by Meta or WhatsApp. This article is general guidance for running a small business, not legal, financial or regulatory advice.