Skip to content
AskdeskGet Pro

Track WhatsApp Chat Clicks in GA4 on WooCommerce

By Flying Star Technologies. Published 31 October 2026.

WhatsApp chats happen outside your site, so Google Analytics cannot see them unless the click is reported. This guide sends one event per tap, so you can see which pages and questions lead to chats.

  1. Turn the event on

    In the Askdesk settings, switch on Send a Google Analytics event on each tap. If another WhatsApp plugin already sends this event, leave it off so taps are not counted twice.

  2. Know what is sent

    Each tap sends a generate_lead event with chat_channel set to whatsapp, a surface parameter that says where the tap happened (product, cart, order or other), and a topic parameter with the question that was picked.

  3. Check it with DebugView

    Open GA4, go to Admin, DebugView, tap the button on your store and watch for generate_lead. If you use Google Tag Manager, check that your GA4 tag also fires on the generate_lead custom event.

  4. Mark it as a key event

    In GA4, mark generate_lead as a key event so it shows in your conversion reports. Then build a report with surface and topic as dimensions, after registering them as custom dimensions.

How the event is sent

If gtag is on the page, the plugin calls it. If not, and a dataLayer exists, it pushes an event named generate_lead to the dataLayer. That second route is what Google Tag Manager listens to. The plugin loads no analytics script of its own and makes no outside request.

What this does and does not tell you

It tells you that a buyer tapped, on which page type and which question. It cannot tell you whether the chat led to a sale, because the conversation is in WhatsApp and the plugin never sees it. Match chats to orders by asking buyers for the order number.

Want the button without the setup?

Askdesk Chat for WooCommerce is a free plugin that puts the product, price and link in the first message, and counts what buyers ask.

See the plugin

Questions

Does the plugin add cookies for this?

No. The plugin sets no cookies. The event goes through the analytics setup you already have.

Why are my taps counted twice?

Another plugin or tag is probably sending generate_lead as well. Turn the Askdesk event off, or remove the duplicate.

Keep reading