Setup Events in Google Analytics (GA4)
- Create GA4 Event tags in GTM
- Find your Measurement ID
- Configure triggers and publish live
Learn how to set up a GA4 event that fires when visitors click your WhatsApp link — using Google Tag Manager, a Just Links trigger, and Tag Assistant to verify it works.
Follow these steps alongside the video to set up WhatsApp click tracking via GTM.
G-<a> tag is clicked, which is exactly what a WhatsApp link ishttps://wa.me/PHONENUMBER or https://api.whatsapp.com/send?phone=PHONENUMBERwa.me to match all WhatsApp links, or paste the full URL for an exact matchBook a 90-minute coaching session and we'll set up your GA4 events and tracking together!
Common questions about tracking WhatsApp clicks in Google Analytics.
GTM's built-in Click Variables (Click URL, Click Text, Click Classes, etc.) are disabled by default. The Just Links trigger uses the Click URL variable to compare each link click against your WhatsApp URL condition. Without enabling Click Variables first, GTM can't read the URL of the clicked link, so your trigger condition will never match and the tag won't fire.
The most common WhatsApp link formats are https://wa.me/PHONENUMBER and https://api.whatsapp.com/send?phone=PHONENUMBER. The easiest approach is to set the trigger condition to Click URL contains wa.me — this will match any WhatsApp link on your site regardless of the phone number or extra parameters. If you have multiple WhatsApp numbers and want to track them separately, use the exact full URL for each.
Just Links fires only when an <a href> anchor tag is clicked, which is the correct element type for outbound links like WhatsApp. It also waits for the link navigation to register before sending the tag — important for outbound links that open WhatsApp. All Elements fires for any click on any element and may miss outbound link navigation timing. Use Just Links for all outbound link tracking.
After publishing your GTM container, click the WhatsApp link on your live website from a browser where you have GA4 open. Check GA4 → Reports → Realtime to see the event appear within a few seconds, or go to Admin → DebugView for a detailed view of events firing from your device. The event will appear under the name you set (e.g. whatsapp_click).
Yes. Once the WhatsApp click event is appearing in GA4, go to GA4 → Admin → Events and toggle Mark as conversion next to your event. Then in Google Ads → Tools → Conversions, import the conversion from Google Analytics. This lets Google Ads smart bidding optimise for WhatsApp contacts as a conversion action.
The most common causes are: (1) Click Variables not enabled — go back and enable them, then republish; (2) URL mismatch — check the exact Click URL value shown in Tag Assistant for your link click and compare it to your trigger condition; (3) Link opens in a new tab — enable the Check Validation option in your Just Links trigger to handle new-tab links; (4) Container not published after enabling Click Variables.
More step-by-step guides to set up accurate tracking and reporting.
Need a hands-on walkthrough tailored to your account? Book a 90-minute coaching session and we'll set it up together.