Want to know how many visitors actually click your WhatsApp button? Without tracking, you're flying blind. You see conversations appear in WhatsApp but have no idea which pages, campaigns, or traffic sources drove them.
This guide shows you two ways to track WhatsApp button clicks: the manual Google Tag Manager setup (works with any WhatsApp button) and a faster alternative that does it automatically. For a complete overview of GTM setup with Boei, see our Google Tag Manager integration page.
Most businesses add a WhatsApp button to their website and forget about it. But tracking those clicks unlocks real insights:
Without tracking, WhatsApp is a black box. With tracking, it becomes a measurable conversion channel.
| Manual (GTM) | Automatic (Boei) | |
|---|---|---|
| Setup time | 20-45 minutes (variables, triggers, tags) | 2 minutes |
| Iframe buttons | Cannot track clicks inside iframes | Works natively, no iframe issues |
| Ongoing maintenance | Re-test when button markup changes | None - handled automatically |
| Data accuracy | Depends on correct trigger configuration | Pre-tested, consistent event firing |
| Multi-channel | Separate setup for each button type | WhatsApp + 50 channels tracked the same way |
This method works with any WhatsApp button, whether it's a link, a widget from a plugin, or a custom button. You'll create a trigger in GTM that fires when someone clicks a WhatsApp link.
Before you can track clicks, GTM needs to capture click data.
WhatsApp links always contain wa.me or web.whatsapp.com in the URL. You can use this to identify WhatsApp clicks.
wa.meTip: If your WhatsApp button opens
web.whatsapp.cominstead ofwa.me, add a second condition with OR logic. Or use matches RegEx with the patternwa\.me|web\.whatsapp\.comto catch both.
Now create the tag that sends the event to Google Analytics.
G-XXXXXXX)whatsapp_clickclick_url: {{Click URL}}page_path: {{Page Path}}whatsapp_click event appearswhatsapp_click in the list (it may take up to 24 hours to appear)Now your Facebook and Google ad campaigns can optimize for WhatsApp clicks as a conversion goal.
page_path parameter to distinguish which button was clicked.If the manual GTM setup feels like too much work, or you ran into the iframe/dynamic button issues, there's a simpler approach.
Boei is a website widget that includes WhatsApp and 50+ other contact channels. It automatically pushes click events to your existing analytics tools, no GTM configuration needed.
BoeiOpened when someone opens the widget, BoeiConversion when they click WhatsAppThat's it. No triggers, no variables, no tag configuration. Boei detects the analytics tools already installed on your site and sends events through them.
WhatsAppClick instead of generic BoeiConversion)Boei plans start from $19/month with all analytics integrations included. There's a 7-day free trial with no credit card required.
Once your WhatsApp click events flow into GA4 (via either method), you can import them as Google Ads conversions:
whatsapp_click (or BoeiConversion) eventNow Google Ads can optimize your campaigns to drive more WhatsApp conversations, not just page views.
You can also create audiences from WhatsApp clickers:
In GA4:
whatsapp_clickIn Facebook Ads (if using Boei + Meta Pixel):
BoeiConversion eventYes. Both methods work on mobile devices. The wa.me link opens the WhatsApp app directly on mobile, and the click event fires before the redirect.
Yes. You can add a GA4 event directly via gtag('event', 'whatsapp_click') in an onclick handler on your WhatsApp link. But GTM makes it easier to manage without touching code. Alternatively, Boei sends events automatically without any manual setup.
Go to Reports → Engagement → Events and find the whatsapp_click event. You can also build custom explorations with dimensions like page path, device category, and traffic source to understand which visitors click WhatsApp.
GTM can only track that someone clicked the WhatsApp link on your website. It can't track whether they actually sent a message or had a conversation. That happens inside WhatsApp. For conversation tracking, you'd need WhatsApp Business API integration, which is a separate setup.
No. GTM loads asynchronously and the click trigger adds negligible overhead. If you use Boei, the tracking piggybacks on your existing analytics scripts, so there's no additional load.
Yes. Whether your button links to a personal WhatsApp number (wa.me/1234567890) or a WhatsApp Business number, the click tracking works the same way. The trigger matches the URL pattern regardless of the number type.
Article by
Ruben is the founder of Boei, with 12+ years of experience in conversion optimization. Former IT consultant at Ernst & Young and Accenture, where he helped product teams at Shell, ING, Rabobank, Aegon, NN, and AirFrance/KLM optimize their digital experiences. Now building tools to help businesses convert more website visitors into customers.
Get 30% more conversations and effortlessly convert them into customers.
Don't wait, experience it for free yourself!
URL
Trusted by 17,000+ businesses
Quick 5-min, no code setup
Learn how internal chatbots help employees find answers faster. 8 use cases, tool comparison, setup steps, and ROI data for HR, IT, and operations teams.
Discover how a lead generation chatbot captures, qualifies, and converts leads 24/7. Complete 2026 guide with strategies, examples, and setup steps.
Build a lead generation funnel that converts 3x better. Simple 6-step guide with examples, tools, and AI tips to turn visitors into customers.
Learn how to become a lead generation specialist and generate leads for your business. Discover the key skills, strategies, and tools needed for success.
Learn how to build a lead pipeline with AI and CRM. Automate capture, qualification, nurture, and close stages to convert more visitors.