How to Track WhatsApp Leads in Google Ads Campaigns
Learn how to track and optimize lead-gen campaigns that push traffic to WhatsApp, treating each lead as a real conversion in your paid traffic.

Why tracking WhatsApp leads changed the game
Tracking WhatsApp leads in Google Ads campaigns means logging every person who clicks your CTA and lands in the chat as a real conversion, not just the ones who buy at the end. You tag the click that sends people to WhatsApp, fire that event to Google, and start optimizing the campaign around the lead entering your pipeline instead of guessing.
Anyone running lead-gen campaigns to WhatsApp knows the pain. You spend money to get someone into the chat, then open the report and have no idea which ad brought that lead in. Google optimizes blind. You pay per click and pray.
The lead is a conversion, and you already paid for it
Some people only count a conversion when the customer buys. Wrong. The moment that lead landed in your pipeline, you already burned budget to get them there. Ignoring that is throwing optimization data in the trash.
The math is simple: if you pay $40 for a qualified click that turns into a WhatsApp chat, that's your cost per lead acquisition. Google needs to know this so it can go find more people like that. Without the event hitting the account, the algorithm optimizes for generic clicks, and generic clicks fill your WhatsApp with tire-kickers who vanish after the first "hey."
Service providers live in this. Clinics, lawyers, doctors, agencies selling traffic services. The sale doesn't happen on the site. It happens in the chat, with a rep working the lead. If the campaign doesn't see the lead as a conversion, it will never learn to bring in the right one.
How to set up the tracking project
Here's how it works: you create a project that generates a tracking script, paste it on your page, and connect the button that goes to WhatsApp.
Step by step:
- Go to project and click create project.
- Give it a name. Use the product or service name so you don't get lost later when you have several running.
- Under campaign objective, select lead capture.
- Enter the support phone (the number that receives leads) and the opening message the person sends when they land in WhatsApp.
- Set the investment currency (BRL or USD), the traffic source, and your site URL.
- Set up the country filter. Here you lock tracking to the country you care about: Brazil only, US only, or all. It works almost like a traffic filter built into the project itself.
Once you save, the system hands you a script. Copy it.
Where to paste the script on the page
This part trips up a lot of people, so pay attention to where each code goes.
On your page, go to settings, then codes, and paste the script in the head. Save, publish the page, and click test to confirm the tracking went live. If the test doesn't pass, there's no point moving on. Go back and check.
Then comes step two: redirect links. You copy the link the system generates and paste it into the CTA on your page. The button that used to go straight to WhatsApp now passes through this tracking link first, logs the event, then continues to the chat. The visitor never notices.
What about the floating WhatsApp button?
That widget parked in the corner of the screen can be tracked too. And it should be, because a good chunk of clicks come from there.
The system generates a second code for the floating widget. This one goes in the body, not the head. Burn this into your memory: the first script (the project one) goes in the head, the floating widget one goes in the body. Swap the two and you break tracking, and you'll only find out days later, with the campaign already optimizing wrong.
With both in place, the click on the main CTA and the click on the corner button both become tracked events.
How to optimize the campaign by chats
With tracking running, the click and cost distribution report shows you exactly what came from WhatsApp. You stop guessing. You see which campaign, which ad, and which keyword actually filled your pipeline with leads.
Now optimization changes character. You cut what brings clicks with no chats and double down on what brings leads the sales team can actually work. Google, getting the lead-capture event, starts hunting for more people with the same behavior as those who already became leads.
Running lead-gen at volume, with lots of ad variations to find which one produces the cheapest lead, is the kind of operation where the part of getting it all live becomes a manual bottleneck. That's where a platform like DirectAds comes in to publish variations in bulk on Meta and Google without rebuilding setup for every ad, freeing you up to focus on what the lead report is telling you.
The person has to be worked during the offer. You bring in the lead, work the lead, and tracking is what tells you whether the traffic is paying that bill or torching budget.
Takeaways
- Treat every lead that enters WhatsApp as a real conversion: you already paid to bring them in, so send the event to Google.
- Paste the project script in the head and the floating widget code in the body. Don't flip them.
- Test the page before running traffic. Broken tracking optimizes the campaign wrong for days.
- Use the click and cost distribution report to cut what brings empty clicks and reinforce what fills the pipeline.
Frequently asked questions
Do I also need to set up the conversion in Google Ads?
Yes. The tracking tags the click that turns into a chat, but you send that event as a conversion inside the Google account so the algorithm optimizes for it. Without that, the data just sits in the report and never feeds automatic optimization.
Does it work for USD traffic campaigns, outside Brazil?
It does. In the project setup you pick the investment currency and filter the country. You can lock tracking to the US only, Brazil only, or leave it open to all.
Do the floating widget and the CTA button count the same conversion?
Each one fires its own event. The main CTA event comes from the redirect link pasted in the button, the widget event comes from the code in the body. You see both separately in the report and understand where the person actually clicked.
Does tracking WhatsApp leads slow the page down?
Not in any noticeable way. It's two lightweight scripts, one in the head and one in the body. The click redirect happens in a fraction of a second and the visitor goes to WhatsApp as usual.




