On this page
What this issue is
A WhatsApp click-to-chat link looks like https://wa.me/15551234567?text=Hello. The text value is the prefilled message: the words already typed into the chat box when the visitor lands in WhatsApp. If that text is empty, or the same generic line for every visitor, nothing in the chat says where the person came from.
Why it costs you leads or sales
The chat still happens, so you do not lose the lead directly. You lose the knowledge of what produced it. Chats get logged as 'direct' or 'unknown', so budget decisions lean on the channels that are easier to measure. Impact is low per lead but grows with the share of your enquiries that come through WhatsApp.
- Ad clickURL has utm_campaign
- Landing pageWhatsApp button shown
- wa.me linktext has no source tag
- WhatsApp chatMessage says only 'Hello'
- CRM recordSource: unknown
The visitor arrives with campaign data, but the prefilled message carries none of it into WhatsApp.
How to check if your site has it
Open the page from a tagged URL
Add
?utm_source=google&utm_campaign=test-tagto the page address and load it.Inspect the button
Right-click the WhatsApp button, choose Inspect and read the
href. Look forwa.meorapi.whatsapp.com/send.Read the text parameter
Is
text=missing, empty or the same generic line? Does it contain your campaign value?Click it on a phone
Confirm the chat opens with the message you expect, including the tag.
Check floating widgets too
Chat plugins and footer links often have their own link settings. Test each one.
How to fix it
Pick a short tag format your team can read at a glance, for example Ref: google / spring-sale. Keep it short, because it is visible to the visitor and they can delete it. The link text must be URL-encoded: spaces become %20 and a slash becomes %2F.
<a href="https://wa.me/15551234567?text=Hi%2C%20I%27d%20like%20a%20quote.%20Ref%3A%20spring-sale">Chat on WhatsApp</a>document.addEventListener('DOMContentLoaded', function () {
var p = new URLSearchParams(window.location.search);
var src = p.get('utm_source') || 'direct';
var camp = p.get('utm_campaign') || 'none';
var msg = 'Hi, I would like some help. Ref: ' + src + ' / ' + camp;
document.querySelectorAll('a[href*="wa.me"]').forEach(function (a) {
var url = new URL(a.href);
url.searchParams.set('text', msg);
a.href = url.toString();
});
});Find the link source
It may be a button block, a theme option or a chat plugin. Edit the URL or the plugin's default message field.
Add the text parameter
Use the static link for one campaign, or add the script through a header/footer code plugin for dynamic tags.
Edit the theme or app
In Online Store > Themes > Edit code, search for
wa.me. If an app adds the button, set its default message in the app's settings.Add the script
Put the snippet in theme.liquid before the closing body tag for dynamic tags.
Create a Custom HTML tag
Paste the script inside script tags and fire it on All Pages (or DOM Ready).
Preview
Use Preview mode with a tagged URL and confirm the href changes.
Edit the link
Select the button, open Link settings and add
?text=with your encoded message.Dynamic tags
Add the script under Project Settings > Custom Code > Footer code, then publish.
Edit the button link
In the funnel or website builder, open the button's link setting and add the text parameter.
Dynamic tags
Add the script in the page's custom code section if your plan allows it.
Edit the button link
Select the button, choose the link icon, pick Web Address and paste the full wa.me URL with text.
Dynamic tags
Use Settings > Custom Code to add the script, if available on your plan.
Edit the button link
Open the button's settings and set the URL to the full wa.me link with text.
Dynamic tags
Add the script under Settings > Advanced > Code Injection > Footer.
Update every link
Search your templates for
wa.meandapi.whatsapp.com, and add the encoded text parameter.Use one helper
Build the link in one shared function so every button gets the same tag.
Before
- Link: wa.me/15551234567
- Chat opens empty or with 'Hello'
- CRM source: unknown
After
- Link has an encoded text parameter
- Chat opens with 'Ref: google / spring-sale'
- Agent logs the source in the CRM
How to confirm it's fixed
- Load the page with test UTMs and inspect the button href
- The text parameter contains your tag with the right values
- Tapping the button on a phone opens WhatsApp with the tag in the box
- Every WhatsApp button and widget on the site was tested, not just one
- The message still reads naturally to a real visitor
- Your team knows where to record the tag in the CRM
How to prevent it happening again
Links get overwritten when a theme updates, a plugin is replaced or a page is rebuilt. Keep the link format in one place, note the tag convention in your launch checklist, and retest WhatsApp buttons after any template or plugin change. Also have agents copy the tag into the CRM when they reply, otherwise the data stays in the chat.
How FunnelGuard handles this
FunnelGuard detects this issue today with a prefilled message check. A robot visitor opens your page, finds the WhatsApp link and reads the prefilled message to see whether a campaign or source tag is present. If it is missing, you get an alert with a screenshot and a likely cause. FunnelGuard does not send WhatsApp messages for you or read your chats. The free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans start with a 3-day free trial.
Example: share of WhatsApp enquiries with a known source before and after adding the tag.
Questions people ask
Can I pass UTM parameters into WhatsApp automatically?
Not directly. WhatsApp does not carry your page's UTM values into the chat. The usual workaround is to read the UTMs on your site and write a short tag into the text parameter of the wa.me link.
How do I add a prefilled message to a WhatsApp link?
Add ?text= to the end of your wa.me link, followed by your URL-encoded message. For example, https://wa.me/15551234567?text=Hello%20Ref%3Aspring-sale.
Why does my WhatsApp chat show where the lead came from?
It only does if the prefilled message contains a tag. Without a text parameter, the chat opens empty and there is no source information in WhatsApp.
Can visitors remove the tag from the prefilled message?
Yes. The text is just typed into the chat box, so a visitor can edit or delete it before sending. Keep the tag short and unobtrusive so most people leave it.
Does the prefilled text work on WhatsApp Web and desktop?
Generally yes. The wa.me link opens WhatsApp on phones and WhatsApp Web or the desktop app on computers, with the text prefilled. Test on both because behaviour can vary by device.
What should I put in the source tag?
Use a short readable string such as the source and campaign, for example Ref: google / spring-sale. Avoid personal data and long strings, and match the naming to your UTM conventions.
How does FunnelGuard detect a missing WhatsApp source tag?
It runs a prefilled message check: a robot visitor loads your page, reads the WhatsApp link and checks whether the message contains a campaign or source tag. If not, it alerts you with a screenshot and a likely cause.
Related issues
- TRK-256WhatsApp click not tracked as eventFix guide
- TRK-258Live chat leads not attributed (no UTM passed to chat)Fix guide
- TRK-249Dynamic number insertion (DNI) script not swapping numberFix guide
- TRK-255Call conversions not sent back to Google AdsFix guide
- TRK-250DNI swap fails on mobile tel: linksFix guide
- TRK-251DNI swaps the number in visible text but not the tel: hrefFix guide