How to track WhatsApp clicks and form submissions in Google Analytics 4 with Tag Manager

· 8 min read · Tracking

If customers message you and you don't track it, you don't know which ad works. Here's how to set it up in GA4 and Tag Manager, step by step.

For many businesses, most leads arrive through a messaging app like WhatsApp, or through a contact form. And very few track either properly. The result: Google Ads and Meta optimize blind, and you don't know which campaign starts conversations. This guide fixes that with two free tools.

What you need

  • A Google Analytics 4 property for your website.
  • A Google Tag Manager container installed on every page.
  • Edit access to both. Everything should be in your name, not a vendor's.

Step 1: enable click variables in Tag Manager

In Tag Manager, go to Variables, click Configure under built-in variables and enable the click variables, especially Click URL. That lets Tag Manager know which link each click went to.

Step 2: the WhatsApp click trigger

Create a Click - Just Links trigger that fires on some link clicks when Click URL contains wa.me. If your site uses api.whatsapp.com links, use a regular expression that covers both: wa\.me|api\.whatsapp\.com.

Step 3: the GA4 event tag

Create a Google Analytics: GA4 Event tag with your measurement ID and a clear event name, such as whatsapp_click. Attach the trigger from the previous step. To know which button it came from, add a parameter with the page (Page Path).

Step 4: form submissions

The most reliable method is tracking the thank-you page: if your form redirects to a page like /thank-you, create a Page View trigger that fires when the URL contains that path, and a GA4 event tag named, for example, form_submit. If the form doesn't change pages, use the Form Submission trigger and check in preview mode that it only fires on valid submissions.

Step 5: test before publishing

Use Tag Manager's Preview mode: click your WhatsApp button and submit a test form. Confirm each tag fires exactly once. Then check GA4's Realtime report to see the events arrive. Only then publish the container.

Step 6: mark them as key events

In GA4, go to Admin, then Events, and mark whatsapp_click and form_submit as key events (what GA4 now calls what used to be conversions). Now you can see how many leads each channel brings in the acquisition reports.

Step 7: let Google Ads and Meta learn from them

Link GA4 to Google Ads and import those key events as conversions, or create the Google Ads conversion tag in Tag Manager with the same triggers. For Meta, fire the pixel event (for example Contact or Lead) with those same triggers. Each platform then optimizes for real leads, not visits.

Common mistakes

  • Counting any page visit as a conversion: campaigns learn to bring visits, not customers.
  • Duplicating the event (installing it in the site code and in Tag Manager): numbers get inflated.
  • Not testing preview mode on mobile, where most of your customers click.

If you're not sure what your website has installed today, the NARVEX Diagnostic checks it for you: it detects Tag Manager, GA4, the Google Ads tag, the Meta and LinkedIn pixels, counts your WhatsApp buttons and forms, and tells you what to track first. It's free.

Frequently asked questions

Can I track WhatsApp messages, not just clicks?

Clicks are tracked on your website with GA4. To count actual conversations you need the WhatsApp Business API or a CRM connected to WhatsApp, which records each conversation with its source.

Do I need Tag Manager, or is GA4 enough?

You can do it without Tag Manager, but Tag Manager lets you add and change events and Google Ads or Meta tags without touching your website's code.

By Gustavo Narváez, founder of NARVEX