Leads & conversion ·
WhatsApp button on your website: chat links, placement and tracking leads
Click-to-chat links, prefilled messages, where to place the button and how to count WhatsApp enquiries properly, for businesses whose customers prefer to message.
By Kareem Mohamed, Web Developer at Digital House
A WhatsApp button on your website is often the shortest path between a curious visitor and a real conversation, especially in the Gulf, where many customers would rather send a message than fill in a form. This guide covers how click-to-chat links work, how to prefill a useful first message, where the button belongs on the page and how to count WhatsApp enquiries without fooling yourself.
The good news is that the basic version needs no plugin, no widget and no monthly fee. It is a link. Everything else in this article is about making that link work harder.
How does a WhatsApp click-to-chat link work?
WhatsApp supports links in the form https://wa.me/ followed by your number. Tapping one on a phone opens a chat with you in the WhatsApp app; on a computer it opens WhatsApp Web or the desktop app. The number must be in full international format, without the plus sign, leading zeros, spaces or dashes. WhatsApp documents this on its help centre.
<!-- UAE mobile 050 000 0000 becomes 971500000000 -->
<a href="https://wa.me/971500000000"
target="_blank" rel="noopener">
Chat with us on WhatsApp
</a>
- UAE numbers start with 971, Saudi numbers with 966, and the leading 0 of the local number is dropped.
- Use a number that is actually monitored during your stated hours, ideally on WhatsApp Business rather than a personal account.
- Write the link text as an action, such as "Chat with us on WhatsApp", rather than a bare icon with no label.
Prefilled messages that save both sides time
Add ?text= to the link and WhatsApp will place a message in the visitor’s chat box, ready to send. They can edit it or send it as it is. A good prefilled message removes the awkward "what do I say?" moment and tells your team straight away what the person is asking about.
const number = '971500000000';
const message = 'Hello, I would like to ask about teeth whitening (from your website).';
const href = `https://wa.me/${number}?text=${encodeURIComponent(message)}`;
- Write one message per page or service, so a chat started from the implants page says implants.
- Include where it came from, such as "(from your website)", so your team can tell website chats from other chats.
- Use the page’s language. An Arabic page should prefill an Arabic message; Dr. Anwer Dental, a clinic in Jeddah whose site I worked on, takes bookings over WhatsApp in Arabic.
- Keep it short and natural, in the visitor’s voice, not a sales line they would be embarrassed to send.
- Always encode the text, as in the example above, so spaces, Arabic letters and punctuation survive the link.
Where should the WhatsApp button go?
There are two common patterns, and most sites benefit from both. A floating button sits in a corner of the screen on every page. Inline buttons sit inside the content, next to a specific service, price or question. They do different jobs.

- Place inline buttons beside each service and at the end of each service page, with a prefilled message for that service.
- Keep the floating button small, and check it never covers the cookie banner, the menu or the form’s send button on a small phone.
- On Arabic pages, mirror the floating button to the other corner with the rest of the right-to-left layout.
- On the contact page, show WhatsApp alongside the form and phone number, with your reply hours.
WhatsApp works best when it sits next to a clear reason to message. "Ask about prices on WhatsApp" next to a price list will be used more than a generic green circle. I collect wording like this in calls to action that work for service businesses.
A link, a widget or the WhatsApp Business Platform?
You have three levels to choose from, and the right one depends on how many people answer your messages, not on how impressive the button looks.
- A plain link: no extra code, nothing to slow the page down, no third party involved. Right for most small businesses.
- A chat widget plugin: adds a pop-up or a choice of agents. Some are useful; many load heavy scripts and their own tracking, so check what they add to page speed and privacy before installing.
- The WhatsApp Business Platform (the API): for teams with several agents, a shared inbox, automated replies or a CRM that logs every chat. It is usually set up through an approved provider and has its own rules and costs.
The free WhatsApp Business app already covers a lot for a small team: a business profile, a greeting message, an away message outside your hours and quick replies for common questions. Use those before paying for anything.
How do you track WhatsApp clicks as leads?
Send an event to Google Analytics 4 every time someone taps a WhatsApp link, and mark it as a key event, GA4’s current name for a conversion. Include the page it came from, so you can see which services and pages start conversations. The step-by-step setup, with code and testing, is in tracking leads in GA4.
The prefilled text helps here too. If every page uses a slightly different message, your team can see which page each chat came from just by reading the first line, even if analytics missed the click.
Answering fast, and keeping the conversation
The button is only half the job. A WhatsApp enquiry carries an expectation of a quick, personal reply. If messages sit unread for a day, the convenience turns into frustration, and the visitor messages someone else.
- State your reply hours next to the button, and set an away message for the rest of the time.
- Make sure more than one person can see and answer the business chats.
- Move serious enquiries into your CRM with an owner and a next step, as described in connecting website leads to a CRM.
- Only send marketing messages to people who have agreed to receive them; replying to an enquiry is not permission to add someone to a broadcast list.
In this region, a WhatsApp chat is often the first real conversation with a customer. It deserves the same care as a phone call.
WhatsApp works alongside forms, calls and booking rather than replacing them. See how all of them fit together in the guide to website lead generation, and if you run a clinic, clinic and dental websites in Dubai covers WhatsApp booking in that setting.