Webloped blog · 23 min read
How to add a WhatsApp button to your website
A WhatsApp button turns a visitor who is deciding into a conversation in one tap. This guide shows you the free link method that works on any platform, a floating button you can copy and paste, and the per-platform steps for WordPress, Wix, Squarespace and Shopify.
Most small business websites ask a visitor to do the hardest thing first: fill in a form, wait for a reply, and hope someone gets back to them. A WhatsApp button asks for much less. The visitor taps once, WhatsApp opens with a chat to your business number, and they type a message the way they would text a friend. For a business that answers quickly, that small difference can turn a visitor who would have left into a customer who has already started talking to you.
This guide covers everything you need to add one. The fastest method takes about five minutes and costs nothing. The fuller version, a floating button with a pre-filled message and a proper WhatsApp Business profile behind it, takes under an hour. You do not need a developer for any of it, and you do not need to pay for a widget unless you want the extra features one brings.
The short answer
Make a WhatsApp click-to-chat link at https://wa.me/ followed by your business phone number in full international format, with no plus sign, no spaces, and no brackets. For a Canadian number, that means the country code 1, then the area code and number, with the leading zero dropped. A Toronto number written locally as (416) 555-0123 becomes https://wa.me/14165550123. Put that link behind any button, text link, or image on your site and it opens a WhatsApp chat to your number.
To make it a floating button that follows the visitor down the page, add a few lines of HTML and CSS, or use a plugin or widget if your platform has one. The sections below give you the copy-paste code and the steps for each platform.
Use WhatsApp Business, not your personal WhatsApp, for the number behind the button. The Business app is free, it gives your business a profile with its name, hours, and address, and it adds away messages, quick replies, and labels. A personal number works technically, but visitors see a phone number with no business context, and your personal messages and customer messages end up in the same inbox.
What a WhatsApp button actually does
A WhatsApp button is a link, styled to look like a button, that opens a WhatsApp conversation with your business. On a phone it opens the WhatsApp app. On a computer it opens WhatsApp Web, or prompts the visitor to download WhatsApp if they do not have it. It does not embed a chat window inside your page. WhatsApp does not support a fully embedded in-page chat the way some live chat tools do, and any tool that claims otherwise is opening WhatsApp in a new tab or window behind the scenes.
That limitation is worth knowing before you choose, because it shapes the experience. A visitor who taps your button leaves your website for a moment, and they land in an app they already know how to use. For most small businesses that is a good trade. The visitor does not need to learn a new chat box, and you do not need to pay for a live chat platform or staff it all day. The conversation continues in WhatsApp, where both sides already get notifications.
The button itself can take several forms. The simplest is a text link or a button in your contact section that says something like "Message us on WhatsApp". The most common is a floating green button, usually a round icon in the bottom corner, that stays visible as the visitor scrolls. A widget sits between the two: a floating button that can also show a welcome message, a business photo, and a small greeting bubble before the visitor taps. All three use the same link underneath.
Is a WhatsApp button right for your business?
Before you install anything, it is worth asking whether your customers actually use WhatsApp, because the answer varies a lot by audience. In Canada, WhatsApp is not the default messaging app the way it is in many other countries. Many Canadian customers still prefer a phone call, a text message, or email. But a large share of newcomers to Canada, international students, and customers with family abroad already have WhatsApp on their phones and use it every day. If your customers include people who moved to Canada recently, or if you sell to customers outside Canada, a WhatsApp button meets them where they already are.
The button fits best when your customers have quick questions before they buy: a price, availability, a booking time, whether you carry a size or a part. It fits less well when the enquiry needs a long form, documents attached, or a formal quote that belongs in email. It also fits less well if nobody will answer it. A WhatsApp button sets an expectation of a fast, chat-like reply. If messages sit unread for two days, the button does more harm than a contact form would, because the customer can see the message was delivered and is waiting. Our guide to adding live chat to your website covers the same trade-off from the live chat side, and the staffing question is the same in both cases.
A practical test: if you already answer customer questions on WhatsApp informally, a button on your website simply makes that channel visible. If you never use WhatsApp for business today, start with the free link on your contact page, answer it for a month, and see how many conversations it brings before you invest in a widget or a paid tool.
Step 1: set up WhatsApp Business first
Do this before you build the button, because the number you put in the link should be the business number, not your personal one.
Download the WhatsApp Business app, which is free on Android and iPhone, and register it with the phone number you want customers to reach. If you already use that number on personal WhatsApp, the app will ask you to move the number over, so pick a number you are comfortable dedicating to the business. Many small businesses use a second number for this, such as a VoIP or business line, so that customer messages never mix with personal chats.
Then fill in the business profile: your business name, a short description, your address, your hours, your email, and your website address. Add a profile photo, usually your logo. These details show up when a visitor taps through from your website, so they are the first thing a new customer sees, and an empty profile looks like an unanswered number.
Set up two features while you are there. The first is an away message, which replies automatically outside your hours and tells the customer when you will answer. The second is quick replies, which are saved answers to the questions you get most often, such as your prices, your location, or your booking link. Both are built into the free app, and they are what keep a WhatsApp button manageable when several people message at once. The Business app also gives you labels to sort conversations, for example new enquiry, booked, or paid, and a catalogue if you want to show products or services inside WhatsApp.
Step 2: build your wa.me link
The wa.me link is the core of every method in this guide. WhatsApp provides it as a click-to-chat link, and it works on any website, in any email, and in a social media bio, because it is just a web address.
Take your business phone number and write it in full international format. Start with the country code, then the area code and the number, with no plus sign, no spaces, no dashes, and no brackets. The number you dial at home in Canada starts with a 0 before the area code in some countries, but Canadian numbers do not have a trunk zero, so the number you dial locally is the same digits you use in the link, with the country code 1 added in front. A Toronto number, (416) 555-0123, becomes 14165550123, and the full link is https://wa.me/14165550123. A Vancouver number, (604) 555-0148, becomes https://wa.me/16045550148.
Test the link before you publish it. Paste it into a browser on your phone and on your computer, and check that it opens a chat to the right business profile. If it opens a chat to the wrong number, you have mistyped a digit, and it is better to catch that now than after a customer messages a stranger.
One privacy note: a wa.me link shows your phone number to anyone who taps it. That is the point of the button, but if you would rather not publish your number in the page source, the WhatsApp Business app can generate a short link instead, in the form wa.me/message/ followed by a code, which opens the same chat without showing your number in the link itself. It does the same job and is a better choice if you are cautious about listing a phone number publicly.
Step 3: add a pre-filled message
A plain link opens an empty chat, and many visitors stare at the empty box and close it. A pre-filled message fixes that. Add ?text= to the end of your link, followed by a short message, and WhatsApp puts that text in the visitor's message box, ready to send. The visitor can edit it before sending, so it works as a prompt rather than a script.
The catch is encoding. A link cannot contain spaces or most punctuation as written, so each character has to be URL-encoded: spaces become %20, a question mark becomes %3F, and so on. The easy way to do this without memorizing codes is to use your browser. Open the developer console, type encodeURIComponent("Hi, I would like to ask about"), and copy the result. Or use any free URL encoder online and paste the output after ?text=. A finished link looks like this:
https://wa.me/14165550123?text=Hi%2C%20I%20found%20your%20website%20and%20I%20have%20a%20question
Keep the message short and generic. One sentence is enough. A good default is "Hi, I have a question about your services" or "Hi, I would like to book an appointment". If different pages bring different questions, use a different pre-filled message on each page: the services page can say "Hi, I would like a quote for", the booking page can say "Hi, I would like to book", and the product page can say "Hi, is this item in stock". The message tells you which page the customer came from, which is useful context before you even reply. Keep the message neutral and polite, and never pre-fill anything that asks the customer to share personal information before they have chosen to.
Step 4: the no-code method, a link on any platform
This is the fastest way to add a WhatsApp button, and it works on every platform because it uses nothing but a link. It is the right choice if you want the button live today and you do not want to touch code or install anything.
On your contact page, add a button or a text link with the words "Message us on WhatsApp" and set its address to your wa.me link. On a WordPress page, a Wix page, a Squarespace page, or a Shopify page, you do this the same way you would link any button: select the button, paste the link into the link field, save, and publish. Put it near your phone number and your contact form, so a visitor who wants to talk can pick the channel they prefer, and so the WhatsApp option does not hide your other contact methods.
You can also add the link to your site header or footer if you want it on every page, though a plain text link in the header is easy to miss. The floating button in the next section is the better option if you want the button visible everywhere. The no-code method is at its best as a clear button on the pages where visitors decide: the contact page, the services pages, and the checkout or booking confirmation page.
If your platform lets you add an icon, use the WhatsApp logo or a chat bubble icon next to the text. Visitors recognize the green WhatsApp mark faster than they read the words, and a recognizable icon is what turns a generic button into an obvious one. Keep the icon small and the text readable, and make sure the button is at least 44 by 44 pixels, which is the minimum touch target size that accessibility guidelines recommend, so it is easy to tap on a phone.
Step 5: the floating button with HTML and CSS
A floating button stays in the bottom corner of the screen as the visitor scrolls, so it is always one tap away. This is the version most small business sites use, and it takes a few lines of HTML and CSS. You do not need JavaScript for it, and it adds almost nothing to your page weight, which matters for speed.
Add this HTML just before the closing </body> tag on each page, or in your site template if you have one. Replace the number with your own wa.me link, and replace the text with your own pre-filled message.
<a class="wa-float" href="https://wa.me/14165550123?text=Hi%2C%20I%20have%20a%20question" aria-label="Chat with us on WhatsApp" target="_blank" rel="noopener">
<svg viewBox="0 0 32 32" width="32" height="32" aria-hidden="true"><path fill="#fff" d="M16 3C8.8 3 3 8.8 3 16c0 2.4.7 4.7 1.9 6.6L3 29l6.6-1.7c1.8 1 3.9 1.6 6 1.6h.4c7.2 0 13-5.8 13-13S23.2 3 16 3z"/></svg>
<span>Chat with us</span>
</a>
Then add this CSS to your stylesheet, or to a <style> block in the page head:
.wa-float {
position: fixed;
right: 18px;
bottom: 18px;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 18px;
border-radius: 999px;
background: #25D366;
color: #fff;
font-weight: 600;
text-decoration: none;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
z-index: 9999;
}
A few details in that code are worth keeping. The aria-label tells a screen reader what the button does, because the visible text alone may not say enough. The target="_blank" opens WhatsApp in a new tab so the visitor does not lose your website, and rel="noopener" goes with it for security. The #25D366 green is the widely used WhatsApp green. It is bright, so keep the text white and bold, and do not shrink the button below a comfortable tap size. On a phone with a home indicator bar, add a little extra bottom space so the button does not sit on top of it.
Check the button against the rest of your page before you publish. It must not cover your cookie consent banner, your checkout button, or your own chat widget if you already have one. If you have both a WhatsApp button and a live chat widget, pick one corner for each, or better, pick one channel and commit to it, because two floating buttons in the same corner look cluttered and confuse the visitor about which one to tap. Our guide to adding a cookie consent banner in Canada explains where that banner sits, and it is worth testing the two together on a phone.
Step 6: per-platform steps
If your site runs on a platform rather than hand-written HTML, the platform usually has a simpler way to add the button. Pick the one that matches your site.
WordPress: install a WhatsApp chat plugin from the plugin directory, add your business number and a greeting message in the plugin settings, set the position to bottom right or bottom left, and choose which pages the button appears on. Most plugins work with the common page builders without extra setup, and most let you set business hours so the button hides or shows an away message outside them. Keep the number of plugins low in general, and remove the plugin if you stop using the button, because every plugin you keep is one more thing to update and secure. Our guide to protecting your website from hackers explains why keeping plugins current matters.
Wix: add a button or an icon to your page, link it to your wa.me address, and pin it to the screen so it stays visible while the visitor scrolls. Wix also has WhatsApp chat apps in its app market if you want a floating widget with a greeting bubble instead of a plain button. Either way, test it on the published site, not just in the editor, because pinned elements sometimes sit differently once the site is live.
Squarespace: add a button block to the page or to the footer, set its link to your wa.me address, and use a code block with the HTML and CSS from the previous section if you want a floating button instead of a page button. Squarespace does not have a built-in WhatsApp widget, so the code block is the way to get a floating version.
Shopify: add the link to a button in your theme, or install a WhatsApp chat app from the Shopify App Store. The app route is usually easier on Shopify, because the apps handle the floating button, the greeting message, and the display rules, and they can show the button on product pages, where a customer asking about stock or sizing is closest to buying. Check the app's monthly price before installing, because some are free and some charge a subscription, and a free wa.me link does the core job just as well if you only need the button itself.
Whichever platform you use, the rule is the same: use your wa.me link, test it on a phone and a computer, and check that the button does not overlap anything important. The platform steps change, but the link does not.
Step 7: display rules, hours, and placement
A button that appears at the right moment helps. A button that appears everywhere, all the time, gets ignored or, worse, annoys. A few decisions make the difference.
Show it where visitors decide. The contact page, the services pages, the pricing page, and the product pages are the places where a question is most likely. The homepage is fine too. The privacy policy page and the terms page are not places where anyone needs to chat, and a floating button there only gets in the way.
Respect your hours. If you answer messages between 9 and 5, say so in the away message, and consider hiding the button outside those hours if your tool allows it. A visitor who messages at midnight and hears nothing until the next morning has still had a better experience than a visitor who messages at midnight and gets a reply at 9 the next morning with no warning that nobody was there. The away message sets the expectation, and the expectation is what keeps the customer patient.
Delay the greeting bubble. Some widgets pop open a greeting bubble a few seconds after the page loads, which can be effective, but it can also cover content the visitor is trying to read. If you use one, set the delay to at least 10 seconds, so the visitor has time to see the page first, and make sure the bubble can be closed. Never let a greeting bubble cover your cookie banner or your checkout button.
Keep it off the checkout. On a store, a floating button on the checkout page can cover the payment button on a small phone screen, and a customer who cannot find the pay button will leave. Hide the button on checkout and payment pages, and let the customer finish buying without interruption.
One chat channel per corner. If you already have a live chat widget, a cookie banner, and a promotional pop-up, adding a WhatsApp button makes four floating elements competing for the same corner of a small screen. Decide which channel you actually staff, put that one in the corner, and move the rest to a page where they belong. A clean page with one clear way to reach you converts better than a busy page with four.
Canadian privacy and consent notes
A WhatsApp button touches Canadian privacy law in two small but real ways, and both are easy to handle.
First, the number. Under Canada's federal privacy law, PIPEDA, and Quebec's Law 25, a phone number is personal information, and you should treat your business number as something you publish deliberately, not accidentally. Publishing a business number on your website is normal and expected. Publishing your personal mobile number because it was the number already on your WhatsApp account is a mistake that is hard to undo once the number is out there. Use a dedicated business number for the button, and keep your personal number out of it.
Second, consent. WhatsApp is a messaging channel, and messaging a customer back on WhatsApp is a reply to a conversation they started, which is a different thing from adding them to a marketing list. Do not add customers who messaged you on WhatsApp to an email list or a broadcast list unless they agreed to that separately. Our guides to whether you need a privacy policy in Canada and collecting email addresses on your website cover the consent side in more detail, and if your privacy policy mentions how customers can contact you, add WhatsApp to that list so the policy matches what the site actually offers.
One more Canadian point: if you serve customers in Quebec, remember that French is the language of business there. A WhatsApp button is not a legal document, but a French-speaking customer who taps it and gets an English-only reply will feel ignored. If you have French-speaking staff, set the pre-filled message in French on your French pages, and make sure someone who reads French answers those chats. Our guide to whether your website needs to be in French in Canada explains where the legal requirement applies.
How to measure whether the button works
A button you never measure is a button you cannot improve. The measurement is simple, and it does not need a paid tool.
Add a UTM parameter to the link so you can see the clicks in Google Analytics. A link like https://wa.me/14165550123?utm_source=website&utm_medium=whatsapp_button&utm_campaign=contact_page tells you which page the click came from. You can use a different campaign name per page, so the services page and the contact page report separately. Our guide to setting up Google Analytics covers the setup if you have not done it yet.
Then track what happens after the click. A click is not a customer. Keep a simple weekly count: how many WhatsApp conversations started from the website, how many of those turned into a quote, a booking, or a sale, and how fast you replied on average. WhatsApp Business shows you the conversation list, so the count is a matter of labelling the ones that came from the site. If the button brings ten conversations a month and three become customers, it is earning its place. If it brings ten conversations a month and none become customers, the problem may be the pages the button sits on, the pre-filled message, or the speed of the reply, and each of those is fixable.
Watch the reply time most closely. A WhatsApp button promises a chat, and a chat that takes a day to answer is a broken promise. If you cannot answer within business hours, the away message has to carry the weight, and it has to be honest about when you will reply. A button that is answered in minutes is one of the cheapest conversion tools a small business can have. A button that is answered tomorrow is a contact form with extra steps.
When a WhatsApp button is the wrong tool
A WhatsApp button is a good fit for quick questions and fast replies. It is a poor fit in a few common situations, and knowing them saves you from installing a tool you will resent.
If your enquiries need documents, long forms, or a formal paper trail, email or a contact form is better, because WhatsApp is built for short messages and a long thread is hard to search later. If you have a team and you need conversations assigned, tracked, and handed over between people, a proper helpdesk or a live chat platform with routing is better, because WhatsApp Business is built for one phone and a small team, not a support queue. If your customers are mostly older Canadians who do not use WhatsApp at all, a phone number in large type on every page will bring more calls than a green button ever will.
There is also a volume question. A WhatsApp button that brings two messages a day is easy to manage. A button that brings fifty messages a day, with no system behind it, becomes a second inbox that nobody owns. If the volume grows past what one person can answer, that is the point to look at the WhatsApp Business Platform, which is Meta's paid API for larger businesses, with shared inboxes, automation, and CRM connections. It is a bigger setup with per-conversation charges, and it is worth it only when the free app is clearly too small. Most Canadian small businesses never need it, and the free app plus a disciplined reply routine covers them.
The simplest rule: add the button if you will answer it. If you will not, leave it off and make your phone number and contact form excellent instead. Our guide to getting more leads from your website covers the contact form side, and the two guides together give you a complete picture of turning visitors into conversations.
How Webloped fits in
We are a web design and AI automation company based in Cambridge, Ontario. We build fast websites for Canadian small businesses, and adding a WhatsApp button, a contact form, or a booking flow to a site is part of that work. Our services page outlines what we do, and our pricing page explains how projects are structured, in CAD, with fixed quotes. If you would like us to add a WhatsApp button to your site, or to check whether your contact options are set up in the right order, send us a message with your website address and the number you want customers to reach, and we will tell you honestly what the simplest version looks like. You can also reach us by email at contact@webloped.ca.
Frequently asked questions
Is it free to add a WhatsApp button to my website?
Yes, the basic version is free. A wa.me link costs nothing, the WhatsApp Business app is free, and a floating button made with HTML and CSS costs nothing beyond the time to add it. You only pay if you choose a paid widget or plugin for extra features such as greeting bubbles, display schedules, or multiple agents, or if you move up to the WhatsApp Business Platform, which charges per conversation.
Do I need a plugin to add a WhatsApp button?
No. A wa.me link works on any website without a plugin, and a floating button needs only a few lines of HTML and CSS. A plugin is a convenience, not a requirement. It is worth using on WordPress if you want display rules and business hours without touching code, but the link alone does the core job on every platform.
Can I use my personal WhatsApp number for the button?
It works technically, but it is a bad idea for a business. Visitors see a personal number with no business profile, your personal and customer messages share one inbox, and your personal number ends up published on your website. Use the free WhatsApp Business app with a dedicated business number instead, and keep the two separate.
Will a WhatsApp button slow down my website?
A plain link or a button made with HTML and CSS adds almost nothing to your page, so it will not slow your site down in any way you can measure. A third-party widget can add a script that loads on every page, and a heavy widget can slow things down, especially on a phone. If you use a widget, test your page speed before and after adding it, and drop the widget if the cost in speed is bigger than the benefit in features. Our guide to making your website load faster covers the checks to run.