On this page
What this issue is
A WhatsApp click is a visitor tapping a button or link that opens a chat with your business. The link usually points to https://wa.me/yourNumber or https://api.whatsapp.com/send. The chat happens inside WhatsApp, not on your site, so your analytics cannot see it unless you record the click yourself.
Why it costs you leads or sales
Without the event, WhatsApp chats are invisible in your reports. Campaigns that drive chats look weak, so you may cut budget on them. Ad platforms also get no conversion signal, so their bidding cannot learn which clicks and audiences lead to conversations.
- Ad clickVisitor arrives with UTMs or gclid
- Landing pageSees the WhatsApp button
- WhatsApp clickNo event sent
- Conversion in ad platformNever recorded
- Campaign reportShows no chats
The visitor does everything right, but the click is never sent to your tools.
Example: 120 visitors open WhatsApp from a campaign, but with no click event reports show 0. After the fix, reports show the same 120.
How to check if your site has it
Find your WhatsApp links
Open the page, right-click the button and choose Inspect. Note whether the link uses wa.me, api.whatsapp.com or web.whatsapp.com, or if a chat widget plugin opens WhatsApp with JavaScript.
Open GA4 DebugView
In GA4 go to Admin > DebugView, or use Tag Assistant preview in Google Tag Manager. Click the WhatsApp button on your site.
Look for an event
You should see a custom event such as whatsapp_click. If you only see a generic click or nothing, the event is missing.
Check the ad platforms
Use Meta Pixel Helper and Google Tag Assistant to see whether a Contact event or a Google Ads conversion fires on the click.
Check the click on mobile
Test on a phone too. Some widgets use different markup on mobile, so the trigger may match on desktop only.
How to fix it
The fix is the same everywhere: listen for clicks on WhatsApp links, send an event, and mark that event as a conversion. Pick the route that matches how your site is built.
Turn on click variables
In Variables > Configure, enable Click URL and Click Element built-in variables.
Create a trigger
New trigger of type Click - Just Links. Choose Some Link Clicks, and set Click URL matches RegEx
wa\.me|api\.whatsapp\.com|web\.whatsapp\.com.Create the GA4 event tag
New GA4 Event tag, event name
whatsapp_click, with this trigger. Add a parameter such as link_url set to the Click URL variable.Add ad platform tags
Add a Google Ads conversion tag and a Meta Contact event tag (or other platform tags you use) on the same trigger. Respect your consent settings.
Preview and publish
Test in Preview mode, then publish the container.
Check how the button is built
If a chat plugin or page builder adds the button, see whether it has a built-in tracking or GA4 option in its settings.
Otherwise use GTM
Install Google Tag Manager with your usual plugin or theme header option, then follow the Google Tag Manager tab.
Or add a small script
Add the Custom code snippet through a header and footer plugin, if you already send GA4 with gtag.js.
Use Google & YouTube or GTM
If you use GTM, add it in your theme and follow the Google Tag Manager tab. Customer events in Shopify do not capture arbitrary link clicks by default.
Or edit the theme
In Online Store > Themes > Edit code, add the click listener from the Custom code tab to theme.liquid before the closing body tag.
Add a custom attribute or script
Add the listener in Project Settings > Custom Code > Footer Code, then publish the site.
Or use GTM
Add your GTM snippet in the same Custom Code area and follow the GTM tab.
Use Marketing Integrations
In Settings > Custom Code, add your GTM snippet or the listener script to the Body - end of the pages that have the button.
Check the button type
If you use a Wix chat or WhatsApp app, check its settings for an analytics option. Custom code needs a paid plan with a connected domain.
Add code injection
In Settings > Developer Tools > Code Injection, add the listener to the Footer, or add GTM there.
Publish and test
Code injection needs a plan that allows it, and does not run in the editor preview.
Add tracking code
In the funnel or website settings, paste the listener into Tracking Code (Footer), or add GTM there.
Test the published page
Open the live URL and click the button, not the builder preview.
Add a click listener
Paste the snippet below before the closing body tag. It works with gtag.js or a GTM dataLayer.
Mark it as a key event
In GA4 go to Admin > Events and mark whatsapp_click as a key event.
document.addEventListener('click', function (e) {
var link = e.target.closest('a[href]');
if (!link) return;
var href = link.getAttribute('href');
if (!/(wa\.me|api\.whatsapp\.com|web\.whatsapp\.com)/i.test(href)) return;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'whatsapp_click',
link_url: href
});
});How to confirm it's fixed
- GA4 DebugView shows whatsapp_click when you click the button
- The event is marked as a key event in GA4
- Google Ads or Meta Pixel Helper shows the conversion or Contact event firing
- The event fires once per click, not twice
- It works on mobile and on every page that has the button
- After consent is granted, tags fire; before it, they stay blocked
Before
- Click opens WhatsApp and nothing else happens
- Reports show no chats from campaigns
- Ad platforms get no conversion signal
After
- Click sends whatsapp_click to GA4
- Ad platforms record a conversion or Contact event
- You can compare campaigns by chats started
How to prevent it happening again
Tracking often breaks when someone swaps the chat widget, redesigns the page, or changes the link format. A new button may no longer match your trigger. Keep a note of which selector or URL pattern your trigger uses, and retest after any change to the button, theme or tag setup.
- Match on the link URL, not on a button class that can change
- Retest after theme, plugin or widget updates
- Review GTM changes before publishing
- Test on mobile after each release
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your journey on a schedule, clicks the WhatsApp button, and checks whether the expected tracking hits are sent to your ad and analytics platforms. If the click does not produce the event, the failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause. The check runs with default settings. Test traffic is marked with utm_source=funnelguard and fg_test=1, and it never clicks real ads.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans have a 3-day free trial, and a free read-only website audit is available too.
Questions people ask
Why is my WhatsApp click not showing in GA4?
Usually no event is set up for it. WhatsApp opens outside your site, so GA4 only sees the click if you send an event, such as whatsapp_click, through GTM or code. Check DebugView while clicking the button to confirm.
How do I track WhatsApp button clicks in Google Tag Manager?
Create a Click - Just Links trigger where Click URL matches wa.me or api.whatsapp.com. Attach a GA4 Event tag named whatsapp_click to it, preview, then publish. Add Google Ads or Meta tags to the same trigger if you want conversions there.
Can I track WhatsApp clicks as a Google Ads conversion?
Yes. Fire a Google Ads conversion tag when the WhatsApp link is clicked, or import the GA4 key event into Google Ads. This counts the click, not a message sent, since the chat happens in WhatsApp.
Does a WhatsApp click mean a real lead?
No. It shows intent, not a sent message. Someone can open WhatsApp and never write. Treat it as a lead signal and compare it with the chats you actually receive.
Why does my WhatsApp click event fire twice?
Two tags or triggers are probably listening to the same click, such as a plugin and a GTM tag. Remove one, or use a single trigger. DebugView or Tag Assistant will show the duplicates.
Why is the WhatsApp click not tracked on mobile?
The mobile version of your widget may use different markup or open WhatsApp with JavaScript, so your trigger misses it. Match on the link URL rather than a class, and test on a real phone.
How can I be alerted if WhatsApp click tracking breaks?
FunnelGuard runs the click on a schedule and checks that the tracking hit is sent. If it fails twice, from two regions, it sends one alert with a screenshot and a likely cause.
Related issues
- TRK-257WhatsApp prefilled message missing the campaign/source tagFix guide
- TRK-258Live chat leads not attributed (no UTM passed to chat)Fix guide
- TRK-255Call conversions not sent back to Google AdsFix guide
- TRK-254CallRail/CallTrackingMetrics script blocked by consentFix guide
- TRK-249Dynamic number insertion (DNI) script not swapping numberFix guide
- TRK-250DNI swap fails on mobile tel: linksFix guide