On this page
What this issue is
A WhatsApp click-to-chat link can open a chat with some text already typed in the message box. That text is the prefilled message. It is set with the text parameter, for example https://wa.me/15551234567?text=Hi%2C%20I%20have%20a%20question.
This issue means the link or widget has no prefilled message. The visitor lands in an empty chat with your number and has to think of what to write. The link still works, so nobody notices it by eye in a quick check.
Why it costs you leads or sales
An empty message box adds friction at the last step. Some visitors do not know what to write, so they close the chat. Others send a vague "Hi" that tells you nothing about the page, product or offer they came from.
A prefilled message fixes both. It gives the visitor a ready first message to send with one tap. It also tells your team what the person wants, such as the product name or the page they were on, so replies are faster and more relevant.
- Visitor taps buttonIntent is high
- WhatsApp opensCorrect number
- Empty message boxNo text prefilled
- Message sentFewer visitors reach this
- Lead qualifiedNo context for your team
The click works, but the chat opens with nothing typed, so some visitors stop before sending.
Example: illustrative numbers only. A prefilled message often means more taps turn into sent messages.
How to check if your site has it
Open the page on your phone
Tap the WhatsApp button. If the chat opens with an empty message box, there is no prefilled text.
Repeat on desktop
Click the button on a computer. WhatsApp Web or the desktop app should show the same text in the box.
Inspect the link
Right-click the button, choose Inspect, and find the href. Look for
?text=after the number. If it is absent, the message is missing.Check every placement
Header, sticky floating button, product pages, thank-you pages and popups can each use a different link or widget setting.
How to fix it
The format is https://wa.me/<number>?text=<encoded message>. The number uses the full international format with digits only: no +, spaces, dashes or leading zeros. The message must be URL-encoded: a space becomes %20, a line break %0A, and a comma %2C.
<a href="https://wa.me/15551234567?text=Hi%2C%20I%27d%20like%20to%20know%20more%20about%20your%20services">Chat on WhatsApp</a>Open your chat plugin settings
Most WhatsApp chat plugins have a field called something like default message or pre-filled text. Fill it in and save. Field names vary by plugin.
Or edit a manual button
In the block or Elementor button, set the link to the wa.me URL with
?text=and your encoded message.Clear caches
Purge your caching plugin and CDN so visitors get the updated link.
Find where the button lives
Check the theme customizer (Online Store > Themes > Customize) or the WhatsApp app you installed.
Set the message
In an app, fill in its pre-filled message setting. In a theme button, edit the link to add
?text=.Use the product name if you want
In a product template link you can add Liquid, such as
?text=Hi, I have a question about {{ product.title | url_encode }}.
Check for injected buttons
If a Custom HTML tag adds the WhatsApp button, edit the href in that tag to include
?text=.Preview and publish
Use Preview mode to confirm the new link, then publish the container.
Select the button
In the Designer, select the link or button and open Element settings.
Edit the URL
Set the link type to URL and paste the wa.me link with the encoded text. Publish the site.
Edit the button or widget link
In the funnel or website builder, select the button, set its link to the wa.me URL with
?text=, and save.Publish the page
Publish and open the live URL to test.
Select the button
Click the button in the editor, then the link icon.
Use a web address link
Paste the wa.me URL with
?text=and your encoded message, then publish.
Edit the button block
Open the button's settings and set the URL to the wa.me link with
?text=.Save and test
Save, then open the live page on a phone.
Build the URL safely
Use
encodeURIComponentso special characters do not break the link.Set the href
Assign the result to the button's href and deploy.
const number = '15551234567';
const message = 'Hi, I have a question about ' + document.title;
const url = 'https://wa.me/' + number + '?text=' + encodeURIComponent(message);
document.querySelector('#whatsapp-btn').href = url;Before
- Link is https://wa.me/15551234567
- Chat opens with an empty box
- Messages arrive as a bare "Hi" or not at all
After
- Link adds ?text= with an encoded message
- Chat opens with text ready to send
- Your team sees what the visitor wants
How to confirm it's fixed
- Tap the button on an iPhone or Android phone and see the text in the message box
- Click it on desktop and see the same text in WhatsApp Web or the app
- Check spaces, accents and apostrophes show correctly, not as %20 or odd symbols
- Test the header, floating button, product pages and popups
- Test in a private window so cached pages do not hide the old link
How to prevent it happening again
Theme updates, plugin updates and page rebuilds can reset the default message to empty. Keep the link in one place, such as a single reusable button or global setting, so there is one thing to maintain. Note the intended message in your launch checklist. Re-test the button after any change to the theme, chat plugin or page builder.
How FunnelGuard handles this
FunnelGuard detects this issue today. Its robot visitor loads your page on a schedule, finds the WhatsApp click-to-chat button and checks the link for a prefilled message default. If the text parameter is missing or empty, you get an alert with a screenshot and a likely cause. A failure is re-checked from a second region before one alert goes out.
The check looks at the link, not at the real chat. FunnelGuard does not send messages through your WhatsApp number. You can start on the Free plan (1 site, 2 journeys, daily checks, no card), or try any paid plan free for 3 days.
Questions people ask
Why does my WhatsApp button open an empty chat?
The link has no text parameter, or the chat plugin's default message field is empty. WhatsApp only fills the message box when the link includes ?text= followed by an encoded message.
How do I add a prefilled message to a WhatsApp link?
Add ?text= to the end of your https://wa.me/NUMBER link, then your message with URL encoding. For example, https://wa.me/15551234567?text=Hi%2C%20I%20have%20a%20question.
Why is the wa.me text parameter not working?
Common causes are unencoded spaces or special characters, a number with a + or spaces, a cache serving the old link, or a plugin overriding the URL. Encode the message with encodeURIComponent and test in a private window.
How do I put a line break in a prefilled WhatsApp message?
Use %0A in the encoded text. For example, ?text=Hi%0AI%20need%20a%20quote puts the second sentence on a new line.
Can the prefilled message include the product or page name?
Yes. Build the link with the product title or page title, URL-encoded. In Shopify Liquid use url_encode, and in JavaScript use encodeURIComponent.
Does the visitor have to send the prefilled message?
Yes. WhatsApp only places the text in the message box. The visitor must tap send, and they can edit the text first.
How can I monitor whether my WhatsApp link still has its message?
Test it by hand after every change, or use FunnelGuard, which checks the WhatsApp link for a prefilled message default on a schedule and alerts you if it goes missing.
Related issues
- CNV-261Prefilled message has wrong product or broken encodingFix guide
- CNV-258WhatsApp link opens wrong numberFix guide
- CNV-263WhatsApp link uses api.whatsapp.com form that breaks on desktopFix guide
- CNV-262WhatsApp button hidden on mobileFix guide
- CNV-268WhatsApp click not trackedFix guide
- CNV-259WhatsApp number no longer on WhatsAppFix guide