Skip to content

How to Add a WhatsApp Button to Your Website

By Toppages
In Malaysia, "WhatsApp me" is practically a business phrase. Customers ask for quotes, check stock, send photos of a broken pipe and confirm delivery times, all in a chat. So it makes sense for your website to make starting that chat as easy as possible.
A WhatsApp button lets visitors open a conversation with your business in one tap, without saving your number first. Set up well, it can be one of the most useful features on a small business website. Set up badly, it can send customers to the wrong number or leave them waiting without a reply.
This guide explains how WhatsApp buttons work, how to set them up correctly and how to get the most from them.

How a WhatsApp button works

A WhatsApp button is simply a link using WhatsApp's click-to-chat feature. When a visitor taps it on a phone, WhatsApp opens with a chat to your number. On a computer, it opens WhatsApp Web or the desktop app.
According to WhatsApp's Help Center, the link uses this format:
https://wa.me/<number>

Getting the number format right

This is where many businesses go wrong. WhatsApp's instructions say to use the full phone number in international format, and to leave out any zeros at the start, brackets or dashes.
For a Malaysian mobile number such as 012-345 6789:
  • Start with the country code 60
  • Drop the leading 0 from the local number
  • Remove spaces and dashes
The result is https://wa.me/60123456789. A link with an extra zero, such as wa.me/600123456789, won't reach you.
(The number above is only an example. Always test the link with your real number.)

Pre-filled messages: a small detail that helps

WhatsApp's click-to-chat also lets you add a pre-filled message, which appears in the customer's chat box ready to send. The format is:
https://wa.me/60123456789?text=Hi%2C%20I%27d%20like%20a%20quote
The message text needs to be URL-encoded, which means spaces and punctuation are replaced with codes like %20. Most website builders and online encoding tools can do this for you.
Pre-filled messages help in a few ways:
  • They lower the effort. Customers don't have to think about how to start the conversation.
  • They tell you the context. A message like "Hi, I'm asking about the 3-bedroom house cleaning package" tells you which page the customer was on.
  • They keep conversations focused. You can prompt customers to include useful details, such as their area.
Keep the message short and natural, and let the customer edit it.

Where to place your WhatsApp button

Placement matters as much as the button itself.
  • On every product or service page. Customers who are reading about a specific service are ready to ask about it. A button with a pre-filled message about that service works well here.
  • As a floating button on mobile. A small button fixed to the corner of the screen stays visible as visitors scroll. Make sure it doesn't cover important content or other buttons.
  • On your contact page, alongside your phone number, email and form.
  • In your header or footer, so it's always easy to find.

Design tips

  • Make it recognisable. Customers know what WhatsApp looks like, so a familiar green chat button is instantly understood.
  • Use the official button correctly. WhatsApp offers an official "Chat on WhatsApp" button in three sizes. It is currently available in English only, and WhatsApp asks that it isn't modified.
  • Add a clear label. "Chat with us on WhatsApp" or "WhatsApp us for a quote" is clearer than an icon on its own.
  • Make it easy to tap. The button should be large enough for a thumb on a small screen.

Before you go live: set up for replies

A WhatsApp button creates an expectation of a quick response. Prepare before you add one:
  • Use a dedicated business number if possible, rather than a personal number, so you can hand it to staff and keep business and personal chats separate.
  • Decide who replies. Know who is responsible during business hours, after hours and on public holidays.
  • Show your hours. A line such as "We reply between 9am and 6pm, Monday to Saturday" next to the button sets expectations.
  • Prepare common answers. Having short replies ready for frequent questions helps you respond quickly and consistently.
  • Respect privacy. Only use customers' numbers for the purpose they contacted you for, and don't add them to broadcast lists without their agreement.

A hypothetical example

Imagine a hypothetical aircon servicing company in Cheras with a single WhatsApp button on its home page, linked to an old number with a typo. After an audit, it fixes the link, adds a button to each service page with a pre-filled message naming the service, and shows its reply hours. Customers now arrive in the chat with the service already named, saving a round of back-and-forth questions.

Don't make WhatsApp the only option

WhatsApp is popular, but not everyone wants to use it for business. Some customers prefer to fill in a form, send an email or call. Offering a short enquiry form alongside the WhatsApp button means you don't miss those customers, and it gives you a written record of enquiries that arrive out of hours.

How Toppages handles WhatsApp on your website

Toppages builds and manages websites for local businesses in Malaysia with WhatsApp built in. Our Premium plan is RM990 a year plus a one-time RM490 setup fee, and includes:
  • WhatsApp click-to-chat on your website
  • A WhatsApp button and enquiry form on every product and service page
  • Instant email notifications and a dashboard inbox for form enquiries
  • A complete, mobile-first website with built-in Google SEO
  • Your own domain with SSL security and fast cloud hosting
  • Hosting, security and technical maintenance handled by our team

Frequently asked questions

Do I need the WhatsApp Business app to add a button?

No. The click-to-chat link works with any WhatsApp number. Many businesses choose the WhatsApp Business app so they can keep business chats separate from personal ones.

Why does my WhatsApp link open the wrong number?

The most common cause is an incorrect number format. Use the country code 60, remove the leading zero and leave out spaces, dashes and brackets.

Can I have different messages on different pages?

Yes. Each button can link to the same number with a different pre-filled message, so you know which product or service the customer is asking about.

Ready to make it easier for customers to chat?

If you want a website with WhatsApp built into every page, chat with us on WhatsApp or send us a message. We'll show you how it works.

Ready to put your business online?

Ready to Launch Your Business Website? Let's Build It.

Tell us what you do, where you are and whether you have a domain already. We will come back with what the site would look like and what it would cost.

No obligation. Flat annual pricing with zero hidden fees.

Chat with us on WhatsApp