Building
WhatsApp button on your website: how to make the link, with a message filled in
A WhatsApp link is a wa.me address with your number and a message. Fill them in, copy the link and the button, and read what WhatsApp and Google Analytics say.
On meneermarketing.nl the WhatsApp button can open a chat with me with a message that is already filled in, such as 'Hi! I have a question about my marketing.' Whoever taps the button only has to tap send. That is all in one address: a wa.me link with a number and a text.
What does a WhatsApp link look like?
WhatsApp calls this Click to chat. You make a link that opens a chat with a number that has an active WhatsApp account. What the help page about Click to chat writes, I read on 20 November 2026.
| What you want | The link | What WhatsApp writes |
|---|---|---|
| Open a chat with you | https://wa.me/31612345678 | The link opens a chat with that number |
| A chat with a message that is already filled in | https://wa.me/31612345678?text=Hoi%20daar | The message appears in the text field of the chat, with URL encoding |
| Only share a message, without a number | https://wa.me/?text=Hoi%20daar | The visitor gets a list of contacts to send it to |
For a button on your website you use the first two. The third is a share button: the visitor chooses who to send it to, so they do not end up with you.
How does a Dutch number become the number in the link?
WhatsApp asks for a full number in international format and writes: do not use zeros, brackets or dashes. The example that WhatsApp names as wrong begins with a plus sign and zeros. For the Netherlands the country code is 31 and the zero of the area code drops out. The number in all examples is made up.
| This is how it is written for you | This is how it becomes in the link |
|---|---|
| 06 12 34 56 78 | 31612345678 |
| 06-12345678 | 31612345678 |
| +31 6 12 34 56 78 | 31612345678 |
| +31 (0)6 12 34 56 78 | 31612345678 |
| 0031 6 12 34 56 78 | 31612345678 |
Which message do you put in WhatsApp beforehand?
WhatsApp puts the message in the text field of the chat. The visitor can change it and sends it themselves. So write it from the visitor's side, in the first person: 'Hi! I would like to make an appointment for a haircut on Saturday.' My choice is one sentence that says what someone comes for. Then with the first message you see which page brought them. The help page names no maximum length, but the visitor has to be able to read and change the message.
A message of its own per type of page does more than one message for the whole site: the first sentence then already says where the visitor comes from. That is my estimate from the work, not a WhatsApp rule. Example: these are three messages for an invented hair salon.
| Page | Message that is ready beforehand |
|---|---|
| Contact page | Hi! I have a question. |
| Treatment page | Hi! I have a question about the men's haircut. |
| Prices page | Hi! I want to know what a colour treatment costs. |
Fill in your number as you write it yourself, choose the text on the button and type the message. You copy the link or the whole button, and you open the test link to see what a visitor gets.
Example: this comes out of the tool with number 06 12 34 56 78, the button text Send me a message and the message about the haircut.
| Output | What it looks like |
|---|---|
| The link | https://wa.me/31612345678?text=Hoi!%20Ik%20wil%20graag%20een%20afspraak%20maken%20voor%20een%20knipbeurt%20op%20zaterdag. |
| The button as HTML | An ordinary link with the text Send me a message and the link as href, opened in a new tab (target _blank, rel noopener) |
| The test link | The same link, opened in a new tab, so that you see what a visitor gets |
How do you make a button of it?
The button that the tool makes is an ordinary link with text. Put in that text what happens: 'Send me a message' says that. WhatsApp also has a button of its own, Chat on WhatsApp, in green and white and in three sizes, only in English. WhatsApp writes that you use that button as it is and do not change it. As places the page names, among others, your contact page and the mobile version of your website.
Put the button where someone gets a question: on the contact page, at a service and at the prices. Put a second route next to WhatsApp, because not everyone uses WhatsApp. On my contact page email and WhatsApp stand next to each other, each with a sentence about when it fits: WhatsApp for a quick question, email for the rest.
Put next to the button when you reply. My own promise is: usually within 2 hours, seven days a week. A visitor who reads that knows what to expect, and you stick to it.
If you work with the WhatsApp Business app, you can set up a message for whoever messages you outside your opening hours: an away message. WhatsApp writes that this choice only exists if you have set your opening hours in your business profile. How to keep those hours the same everywhere is in making opening hours the same everywhere.
Which number do you use?
The number must have an active WhatsApp account, WhatsApp writes. Choose a number that you want to keep for your business, because the link to that number will soon be on your site, in your profiles and sometimes on print. If you change number later, every place has to change with it.
For a business there is the WhatsApp Business app. It is free, exists for Android and iPhone and is made for owners of small businesses, with a business profile for, among other things, address, email address and website. WhatsApp and WhatsApp Business are two different apps. You cannot use the same number in both at once, but you can switch between the apps. So first choose the app and only then put the link on your site.
Also put your number as plain text on the page. Someone at a computer may want to retype it into their phone, and I prefer to put contact details on the page itself rather than only in a link. That is my choice and not a WhatsApp rule. If the number differs from the number in your Google profile, say which number you use for what.
How do you measure the click on your WhatsApp button?
A click is not a message. The link only shows that someone tapped the button. What they do next in WhatsApp, you do not see. On my own site that click is called whatsapp_klik and it does not count as an enquiry. To me an enquiry is a sent form, a real message or a real phone call.
Google Analytics 4 has two routes. Enhanced measurement counts a click on a link that leads from your domain to another website as an outbound click. The event is called click and gets link_url and link_domain, among other things. All outbound links come together there, so also the one to WhatsApp. If you want to see WhatsApp separately, make an event of your own. Google writes that you make such an event for an action that does not fit the automatic or recommended events.
| Way | What you set up | What you see |
|---|---|---|
| Enhanced measurement | You switch on the enhanced measurement setting | All outbound clicks as click, with link_url and link_domain |
| An event of your own | A line of code or a trigger in Tag Manager that fires on a click on the button | An event with your own name, only for WhatsApp |
With gtag you write an event of your own following the pattern from the documentation for developers: gtag('event', 'whatsapp_klik'); on a click on the button. The name of an event of your own is case-sensitive, may not be a reserved name and begins with a letter. How you then count results is in measuring enquiries and orders.
My own site counts the click without cookies in Vercel Web Analytics and, after consent in the cookie banner, also in Google Analytics, which with me only loads after a yes. A click from someone who refuses the cookie banner therefore only ends up in the cookie-free count.
How do you test the link before you publish it?
Test the button on the page itself and not only in the tool. Between the link you copy and the button a visitor taps, something can still change: a builder that formats an address differently, or a button that points to an old link. Tap the button on your phone and on your computer and read what it says.
| What you test | What to watch |
|---|---|
| The button on your phone | The chat goes to your business and the message is in the text field |
| The button on a computer | WhatsApp Web opens with the same message |
| The text of the message | The sentence is complete and you see no strange characters |
| The click in your statistics | With DebugView in Google Analytics you see the event in real time. For that you switch on debug mode, for example with Tag Assistant |
Google writes in the explanation about DebugView that you have to switch on debug mode to use DebugView, and that Tag Assistant adds a parameter to the address of your site for that. A test click counts just the same. On 9 November 2026 I tested a tap on WhatsApp on my own site and it showed up in the figures. So write your test down, so that you can subtract it later.
What often goes wrong?
| Mistake | What the source writes or what I saw | How you solve it |
|---|---|---|
| The number starts with 06 or 0031 | WhatsApp writes: do not use zeros, brackets or dashes | Use 31 and then the number without the first zero |
| There is a plus sign in it | The example that WhatsApp names as wrong has a plus sign | Leave out the plus sign |
| Spaces or punctuation in the message | WhatsApp asks for a message with URL encoding | Let the tool make the link, because a space becomes %20 |
| The number has no WhatsApp | The chat only opens if the number has an active WhatsApp account | Test the link on your phone and on your computer |
| A button that is only a picture | In its own example WhatsApp puts an aria-label and an alt text with the picture | Always give a picture a text that says what happens |
| Only a chat widget with a script | My starting point: a robot usually reads the page without running JavaScript | Also put your number as text on the page |
When I help with this
If you want the button on your site, with a message per page and a measurement of the click, send me a message with the address of your site. I usually reply within 2 hours, seven days a week, and you get a proposal with a price within one working day. A website with your own code starts at €1,400 one-off or at €179 per month in a subscription, excluding VAT. More is on websites with your own code, web design and prices.
Whether WhatsApp or a form fits your visitors better is in more enquiries from your website. For a go-live the whole list is in the checklist for your website.
Sources
- help page about Click to chatfaq.whatsapp.com
- away messagefaq.whatsapp.com
- WhatsApp Businessfaq.whatsapp.com
- Enhanced measurementsupport.google.com
- event of your ownsupport.google.com
- documentation for developersdevelopers.google.com
- explanation about DebugViewsupport.google.com
Frequently asked questions on this topic
How do you make a WhatsApp link?
How do you write a Dutch number in a wa.me link?
How do you fill in a message beforehand?
Does WhatsApp send the pre-filled message automatically?
Does the WhatsApp link also work on a computer?
How do you measure clicks on a WhatsApp button?
May you change the official WhatsApp button?
Can you use the same number for WhatsApp and WhatsApp Business?
Does my number also have to be on the page as text?
Does a click on WhatsApp count as an enquiry?
What does it cost if you build in and measure the button?
Apply this article to your situation?
In a conversation I turn this kind of insight into concrete priorities for your channels and your site.
Questions about this topic
Short and detailed answers to the questions that go with this.
How do you get more enquiries from your website?
First find out whether you have too few visitors or whether visitors do nothing.
Read the answerWhat has to be on a business website?
On a business website you state what you do and for whom, what it costs or how the price comes about, proof that you can do it and how you can be reached.
Read the answer



