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.

By Ritchie, ReplyKit · Published 5 September 2026 · 6 min read

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 eventAttribution inside the chatThe outcome recordWhat cannot be trackedFAQ

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

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.

Start free
Written by Ritchie, ReplyKitPart of the small team in Malaysia that builds and runs ReplyKit. Writes about WhatsApp automation, AI customer service and small business lead response.

How we know this. ReplyKit records the source of each conversation from the pre-filled message and the outcome from the lead stage; the click events below are what customers add on the website side to complete the picture. Product figures in this article (limits, prices, per-reply costs) are taken from ReplyKit as it runs today and are re-checked when we update the page. Where we cite outside research, the source is linked below. We sell ReplyKit, so read our product claims with that in mind; we say where a different tool or no tool is the better choice. About ReplyKit.

Sources and further reading

  1. Google Analytics Help, GA4 events
  2. Meta Business Help Center, About Meta Pixel
  3. 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.