Track WhatsApp Clicks in Google Analytics

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 the Steps Book Coaching
Step by Step

Track WhatsApp Clicks in Google Analytics

Follow these steps alongside the video to set up WhatsApp click tracking via GTM.

!

Before you begin — prerequisites

  • Make sure your GA4 account is correctly set up and the tracking code is installed on all website pages
  • Create a Google Tag Manager account at tagmanager.google.com if you don't have one
  • Install your GTM container snippet on all pages of your website before proceeding
1

Enable all Click Variables and Publish your Tag Manager

  • In GTM, go to Variables → click Configure under Built-In Variables
  • Enable all Click variables: Click Element, Click Classes, Click ID, Click Target, Click URL, Click Text
  • These variables are needed so GTM can read the URL of the link that was clicked
  • Submit and publish this change before setting up the trigger
2

Set up a Tag — select Google Analytics: GA4 Event

  • In GTM, go to TagsNew
  • Click Tag Configuration and choose Google Analytics: GA4 Event
3

Provide your GA4 Measurement ID

  • Your Measurement ID links this tag to the correct GA4 property
  • Find it in Google Analytics → Admin → Data Streams → select your stream — it starts with G-
4

Give your event a name

  • Choose a descriptive name with no spaces — for example: whatsapp_click
  • This name will appear in your GA4 reports and can be marked as a conversion
5

Create a new Trigger

  • Scroll down to Triggering and click the + button to create a new trigger
6

Select the "Just Links" trigger type

  • Choose Click → Just Links — this trigger type fires only when an <a> tag is clicked, which is exactly what a WhatsApp link is
7

Select "Some Link Clicks"

  • Choose Some Link Clicks (not All Link Clicks) so the trigger only fires for your specific WhatsApp URL
8

Select "Click URL" from the dropdown menu

  • Set the condition to: Click URL → contains (or equals, for an exact match)
9

Paste the Link Address (WhatsApp URL)

  • Paste the WhatsApp URL you want to track — the format is typically https://wa.me/PHONENUMBER or https://api.whatsapp.com/send?phone=PHONENUMBER
  • Use contains with wa.me to match all WhatsApp links, or paste the full URL for an exact match
10

Save the Tag Configuration

  • Give the trigger a clear name (e.g. Click — WhatsApp Link), save it, then save the tag
11

Preview your container and click the WhatsApp link in the debugger view

  • Click Preview in GTM to open Tag Assistant, then navigate to your website
  • Click the WhatsApp link on your page to simulate a user click
12

In Tag Assistant, select the Link Click instance for your outbound click

  • In the Tag Assistant panel, find the Link Click event that corresponds to your WhatsApp link click
13

Check if your Tag is firing correctly

  • Under the Tags Fired section, confirm your GA4 Event tag appears
  • If it appears in Tags Not Fired, review your trigger conditions — the Click URL may not match
14

Publish your Tag Manager container

  • Once verified, click Submit in GTM, add a version name, and click Publish to push the tag live
  • You can then verify the event is arriving in GA4 → Realtime reports or DebugView

Need 1-on-1 help with Google Analytics?

Book a 90-minute coaching session and we'll set up your GA4 events and tracking together!

Book a Coaching Session
FAQ

Frequently Asked Questions

Common questions about tracking WhatsApp clicks in Google Analytics.

Why do I need to enable Click Variables before setting up the trigger?

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.

What WhatsApp URL format should I use in the trigger?

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.

Why use "Just Links" instead of "All Elements" as the trigger type?

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.

How do I verify the event is arriving in GA4 after publishing?

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).

Can I use the WhatsApp click event as a conversion in Google Ads?

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.

My tag isn't firing in Tag Assistant — what should I check?

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.

Keep Learning

Related Analytics Tutorials

More step-by-step guides to set up accurate tracking and reporting.

Get Personal Help

Book a 1-on-1 Coaching Session

Need a hands-on walkthrough tailored to your account? Book a 90-minute coaching session and we'll set it up together.