Where to paste it
Anywhere your site lets you add code to every page, as close to the end of the page as it allows. The button positions itself, so it doesn't matter what's around it.
- WordPress: a code plugin such as WPCode, set to the site-wide footer. A Custom HTML block works on a single page.
- Shopify: Online Store › Themes › Edit code ›
theme.liquid, just above</body>. - Wix: Settings › Custom code › Add code, all pages, Body – end. Needs a paid plan with a domain.
- Squarespace: Settings › Developer tools › Code injection › Footer.
- Webflow: Site settings › Custom code › Footer code, then publish.
- Any other site: just before
</body>in your template.
Our install guides show the exact screens for 18 platforms. They're written for Pidge, but the place to paste is the same.
How the link works
The button is a plain link to WhatsApp's click-to-chat address:
https://wa.me/, then your number in full international format, then the
message. The number has no plus sign, no leading zeros, no spaces and no brackets, so
+47 912 34 567 becomes 4791234567. The generator does that for you, and
encodes the message so spaces and emoji survive.
On a phone the link opens the WhatsApp app. On a computer it opens WhatsApp Desktop if it's installed, or a WhatsApp page that offers WhatsApp Web. The visitor needs a WhatsApp account either way, and the message only goes once they tap send.
A WhatsApp button or live chat?
A WhatsApp button is the quickest way to be reachable if your customers already live in WhatsApp and you're happy answering from your phone. It costs nothing and takes a minute.
What to weigh before you add one:
- The visitor leaves your page for another app, and some won't come back to finish what they were doing.
- Everyone without WhatsApp, or on a work computer without it, has no way to reach you through the button.
- Your number is in the page for anyone to see and copy.
- You don't see which page someone was on when they wrote, unless they tell you.
Live chat keeps the conversation on your site. With Pidge the visitor writes in a small window on the page, you see which page they're on, and you answer from a shared inbox or your phone. If they've left by the time you reply, the answer goes to them by email. The widget loads 4.9 KB, and it's free for one website. Some sites run both: live chat for questions about the page, and WhatsApp for customers who prefer it.
WhatsApp is a trademark of WhatsApp LLC. This generator isn't made or endorsed by WhatsApp.