How to Add WhatsApp to Your Business Website: Click-to-Chat Links, Buttons, Tracking and the API
Add WhatsApp Business chat on website pages for free: wa.me links, floating buttons, WordPress plugins, pre-filled messages, click tracking and the API.

On this page
- WhatsApp business chat on website: the options compared
- Step 1: Build your click-to-chat link
- Step 2: Choose where WhatsApp appears
- Where WhatsApp works especially well
- How to add it in WordPress
- WhatsApp Business app vs the WhatsApp Business API
- Track WhatsApp clicks in Google Analytics
- Reply fast and handle leads properly
- Common mistakes
- When to get help
- FAQs
- The free way to put WhatsApp Business chat on a website is a wa.me click-to-chat link behind a button, with your number in international format and an optional pre-filled message.
- Place it beside your main calls to action and as a small floating button on mobile, with page-specific messages so you know what each chat is about.
- You only need the WhatsApp Business API for automation, shared team inboxes or bulk notifications; track clicks in GA4 and reply quickly either way.
To add WhatsApp Business chat on website pages, create a click-to-chat link (https://wa.me/ followed by your full number with country code, no plus sign, spaces or leading zero) and place it behind a "Chat on WhatsApp" button next to your main calls to action. It is free, needs no API and works with the ordinary WhatsApp Business app on your phone.
On mobile, add a small floating button too, and use a pre-filled message per page so every chat arrives with context. The steps below cover the link, placement, WordPress, tracking and when the API is worth it.
For most small businesses that's all you need. The WhatsApp Business API only matters when a team shares one number, you want automation, or message volumes are high. A WhatsApp button with page-specific messages is included in the websites I build through WordPress website development, and in every landing page alongside the lead form.
Make your click-to-chat link with the free WhatsApp link generator, which adds a prefilled message and a QR code.
WhatsApp business chat on website: the options compared
| Option | Cost | Best for | Watch out for |
|---|---|---|---|
| wa.me link on a button | Free | Most small businesses | Number format must be exact |
| Floating WhatsApp button | Free (code or light plugin) | Mobile visitors on every page | Covering other buttons or cookie bars |
| WordPress chat plugin | Free or paid versions | Several agents, opening hours, per-page messages | Heavy scripts that slow the site |
| Form that opens WhatsApp | Free to low cost | Collecting name and need before the chat | Asking for too many fields |
| WhatsApp Business API with a provider | Paid per provider and per conversation | Shared inbox, chatbots, order updates | Setup time, approvals and running costs |
Start with the free link and button. Move to a plugin or the API only when volume or team size makes the phone app hard to manage.
Quick checklist before you go live
- Number in international format, tested on Android, iPhone and desktop.
- Button text says what happens: "Chat on WhatsApp", not just an icon.
- Pre-filled message names the page or service.
- Button doesn't hide the call button, cart or cookie banner on mobile.
- Click event tracked in Google Analytics.
- Greeting and away messages set in the WhatsApp Business app.
- Someone is responsible for replying during business hours.
Step 1: Build your click-to-chat link
The link format is the same whether you use the free app or the API:
https://wa.me/91XXXXXXXXXX
https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20would%20like%20a%20quote
- 91 is India's country code, followed by the 10-digit mobile number. Leave out the plus sign, spaces and the leading zero, or the link won't work.
- The message must be URL-encoded: spaces become %20 and a comma becomes %2C. Any free URL encoder does this, or type the message into a link generator.
- The older format, api.whatsapp.com/send?phone=91XXXXXXXXXX&text=..., still works, but wa.me is shorter.
- Short links and QR codes: the WhatsApp Business app can generate a short link and QR code from its business tools at the time of writing, which is handy for brochures and shop counters.
As a button in HTML, it looks like this:
<a href="https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20need%20a%20quote">Chat on WhatsApp</a>
Step 2: Choose where WhatsApp appears
A floating button
A small WhatsApp icon fixed to the bottom corner of every page is the most common setup and works well on mobile. Make sure it doesn't cover the cookie notice, an "Add to cart" button or form fields on small screens.
Buttons beside your main calls to action
Add "Chat on WhatsApp" next to "Get a Quote" or "Book Now" on the homepage, service pages, product pages, pricing and the contact page. Some visitors will never tap a corner icon but will tap a clear button in the content.
Page-specific pre-filled messages
Different messages per page tell you exactly what each lead wants before you reply, and save the visitor from typing:
| Page | Pre-filled message |
|---|---|
| Homepage | Hi, I found you on your website and have a question. |
| Real estate project page | Hi, I'm interested in the 2BHK flats at [project]. Please share the price list. |
| Clinic treatment page | Hi, I'd like to book a consultation for [treatment]. |
| Product page | Hi, is [product] available in size M? |
| Service or pricing page | Hi, I'd like a quote for [service]. |
Form-to-WhatsApp
A short form collects the name and requirement, emails it to you so you have a record, then opens WhatsApp with the details filled in. You keep the lead even if the visitor never presses send. This site's contact form works that way.
Where WhatsApp works especially well
- Restaurants and cafes: orders, table bookings and catering questions
- Real estate: price lists, floor plans and site-visit bookings
- Clinics: appointment timings and directions, while keeping medical details for the consultation
- Coaching institutes and schools: admission and batch timing questions from parents
- Online stores: size and stock questions before buying, and confirming cash on delivery orders
- B2B suppliers: catalogue and price list requests, where a buyer wants a quick answer before a formal quote
How to add it in WordPress
- Elementor or the block editor: use a Button widget or block and paste the wa.me link into the link field. Use a different message on each page template.
- A floating button plugin: plugins such as Joinchat and Click to Chat are popular on WordPress.org at the time of writing, with options for per-page messages, opening hours and several team members.
- A plain link in the theme: a link with a small inline SVG icon adds almost nothing to page weight.
Avoid heavy third-party chat widgets just to show a WhatsApp icon. Some load external scripts on every page and slow the site down; see how third-party scripts slow your website.
WhatsApp Business app vs the WhatsApp Business API
| WhatsApp Business app | WhatsApp Business Platform (API) | |
|---|---|---|
| Cost | Free | Meta charges for many message types, directly or through a provider; check the current rates |
| Setup | Install on a phone | Through Meta's Cloud API or a provider, usually with business verification |
| Team use | One number on a phone plus a few linked devices | Many agents in a shared inbox through a provider's tool |
| Automation | Greeting and away messages, quick replies, labels | Chatbots, CRM connections, automated order and appointment messages |
| Messaging customers first | Manual messages and broadcast lists | Pre-approved templates; free-form replies within the 24-hour customer service window |
| Best for | Most small businesses | Teams, high volumes and automated notifications |
The click-to-chat link on your website works the same with either. Moving a number to the API changes how it works in the app, so check what your provider supports before you switch. The app's catalogue, labels and broadcast lists are covered in WhatsApp marketing for small businesses, and automated order updates for stores in order notifications by email, SMS and WhatsApp.
Track WhatsApp clicks in Google Analytics
If you don't track WhatsApp, many of your website enquiries stay invisible in your reports. Two ways to do it:
- GA4 on its own: with enhanced measurement's outbound clicks switched on, GA4 records clicks to wa.me as click events with the link address. Create a new event in GA4 (Admin > Data display > Events > Create event, at the time of writing) called whatsapp_click, matching when the event name is click and link_url contains wa.me, then mark it as a key event.
- Google Tag Manager: a "Just Links" click trigger where the Click URL contains wa.me fires a GA4 event called whatsapp_click. This also makes it easy to send the same click to Google Ads or Meta as a conversion.
A tap isn't the same as a conversation, because some people open WhatsApp and change their mind. Label chats from the website in WhatsApp Business and compare the two numbers each month. More detail in tracking phone and WhatsApp enquiries and GA4 events explained.
Reply fast and handle leads properly
- Set a greeting and an away message so people get an instant reply, with your hours in the away message.
- Save quick replies for prices, location, timings and documents you send often.
- Use labels such as New lead, Quoted, Follow up and Won, so nothing slips.
- Only promise a reply time you can keep. WhatsApp creates an expectation of quick answers; see responding to enquiries fast.
- Ask before adding anyone to a broadcast list. Messaging people who only asked one question annoys them and can get your number reported. India's data protection rules also apply to how you store and use customers' details, so check with your adviser if you collect a lot of personal data.
Common mistakes
- The number written with a plus sign, spaces or a leading zero, so the link opens an error
- A floating button covering content, the cookie notice or checkout buttons on phones
- WhatsApp as the only option, when some visitors prefer a call or a form
- A staff member's personal number, which leaves with them
- No tracking, so WhatsApp leads never appear in your reports
If you're also running ads, compare sending people straight to a chat with sending them to a page first; see click-to-WhatsApp ads vs a landing page.
Wondering about chatbots instead? Read do you need a chatbot?
When to get help
Get help when you want WhatsApp, calls and forms tracked so you can see which channel brings enquiries, or the chat button is slowing down the site. See WordPress website development and landing page design, or send your website address.
On WordPress, the tutorial on how to add a WhatsApp button to WordPress covers the plugin, the pre-filled message and click tracking.
FAQs
What is the best way to add WhatsApp business chat on website pages?
Use a free wa.me click-to-chat link with your number in international format and a pre-filled message, placed on a clear button beside your main call to action and as a floating button on mobile. In WordPress you can add it in the block editor, your theme or a light plugin.
What is the wa.me link format?
https://wa.me/ followed by the country code and number with no plus sign, spaces or leading zero, for example https://wa.me/91XXXXXXXXXX. Add ?text= followed by a URL-encoded message to pre-fill the chat.
Is adding WhatsApp to a website free?
Yes. Click-to-chat links and the WhatsApp Business app are free. Costs only come in with the WhatsApp Business API, where Meta charges for many message types, and with paid plugins or chat tools.
Do I need the WhatsApp Business API for my website?
Not for a chat button. Most small businesses do well with the free app and a click-to-chat link. The API makes sense when several staff need to answer from one number, or you want chatbots and automated notifications.
Why does the WhatsApp button open WhatsApp Web on desktop?
On a computer, wa.me links open the WhatsApp desktop app if it's installed, or offer WhatsApp Web, which needs the visitor's phone linked. On mobile they open the app directly. That's normal behaviour, and it's why a form or phone number should sit alongside WhatsApp.
How do I track WhatsApp clicks in Google Analytics?
Create a GA4 event for clicks on links containing wa.me, either from the outbound click events GA4 already collects or with a Google Tag Manager click trigger, and mark it as a key event.
Need help with your website?
I'm a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote, usually within 24 hours.


