Measuring WhatsApp clicks in Magento 2: separate contact from sales

4 min read

Silver phone with a blue chat button connected to a teal click marker and a measurement chart

A WhatsApp button click on a product page shows that someone tried to make contact. It does not establish that they sent a message, received a reply, or bought a product. Measuring WhatsApp clicks in Magento 2 is useful when these stages remain separate and the team knows which decision the report should support.

Decide which contact stage to measure

WhatsApp Button displays a WhatsApp link and a telephone button. The number and text can be configured per Store View. Measurement through Google Tag Manager, GA4, or another tool is a separate analytics implementation, rather than a button feature.

StageWhat you can establishWhat the measurement alone does not prove
WhatsApp clickActivation of a particular link on the websiteA message sent in the messaging application
Handled conversationA contact recorded by the team or a separate systemAn order placed and paid
SaleAn order and an agreed method of connecting it to contactThat every preceding click caused a purchase

Start with one question: do customers use the contact placement? For number settings, text, and device behavior, see the earlier WhatsApp Button guide. The next step is separate measurement of the chosen action.

Specify a single event

Agree on an event name, channel, button placement, and current store view code. A public SKU can help diagnosis if it is needed in your measurement model. An example data layer message is:

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'whatsapp_contact_click',
  contact_channel: 'whatsapp',
  placement: 'product',
  store_view: 'CURRENT_STORE_VIEW_CODE',
  product_sku: 'PUBLIC_PRODUCT_SKU'
});

Send this message from the handler for an actual click. Replace example values with current page data. A developer should identify the specific button element in your theme and ensure one invocation per user action.

In GTM, the message can activate a custom-event trigger and a configured GA4 tag. Writing to the data layer and sending an Analytics event are separate configuration steps. See Google’s data layer documentation.

Keep the data minimal: channel, placement, and store view. Leave conversation text, email addresses, and customer phone numbers out of the analytics event. Google explains its rules for personally identifiable information in the Analytics data protection documentation.

Test one click on mobile and desktop

In preview mode, check the event name and parameter values. Click both the text and the button icon; both should produce the same measurement. Test the telephone link separately so it is not counted as a WhatsApp contact.

On a phone, check the transition to the application; on desktop, test the path actually available to the user. Returning to the store without sending a message still leaves only a click record. Also check that a general link rule and a second button-specific rule do not both generate the event.

Use DebugView to inspect data received by GA4. Test with the analytics and consent settings intended for the scenario. Record the device, Store View, action, and verification result. A tag being present on a page does not replace an event test.

Separate click reporting from support work

Agree with support staff how to record conversations started, question topics, and contact outcomes. A simple implementation can use an agreed team log. The button module does not store conversation history in Magento or provide a WhatsApp Business API integration.

Do not assume the message already contains the viewed product’s name or SKU. When customers ask about product selection, support needs the relevant context. The compatibility inquiry template can help collect it.

Compare results for the same period and store view. Click event counts are not counts of unique people or conversations. Present contact and order data separately until there is an agreed method of linking them. Do not describe the total value of orders following conversations as revenue caused by the button.

Choose reporting breakdowns and a decision

Start with breakdowns by Store View and button placement. If custom parameters are needed in GA4 reports, configure the appropriate definitions following the custom dimensions guidance. A large catalog needs a deliberate choice of detail rather than a reporting dimension for every available piece of information.

Consider button visibility, clicks, and staff availability together. Many clicks and few handled conversations may indicate friction on the way to contact. Few clicks may reflect the placement or a lack of need to talk. Test these hypotheses before changing the number, message, or product-page layout.

Explore WhatsApp Button for Magento 2, agree on separate click measurement, and connect the report to the way your team actually handles customers.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)