Product
WhatsApp widget for your website: chat button or opt-in form?
Most "WhatsApp widgets" are chat buttons. They're useful, but they don't give you permission to send updates next week. Here's the difference, what a good opt-in form needs, and how to add one to WordPress, Shopify, Webflow or any site with one line of code.
The Buddy Team · · 6 min read
Product
Website widget
A WhatsApp widget for your website is either a chat button that opens a WhatsApp conversation with your business, or an opt-in form where visitors leave their number and agree to receive your updates on WhatsApp. The chat button is for questions. The opt-in form is what lets you message people later, because it records their consent.
Most widgets you'll find are chat buttons, and that's where many businesses get stuck: plenty of chats, no list. This guide shows the difference, what a good opt-in form needs, how to embed one, where to put it and what to send next. For the full rules and wording, see our WhatsApp opt-in guide. Both are part of our guide to choosing a WhatsApp marketing platform.
Chat button or opt-in form: what's the difference?
| Chat button | Opt-in form | |
|---|---|---|
| What the visitor does | Taps a button and WhatsApp opens with your number | Enters their name and number, ticks a consent box, presses Subscribe |
| What you get | A conversation the visitor starts | A subscriber with a record of when and where they agreed |
| What you can send | Replies within 24 hours of their last message | Approved template messages later, such as a WhatsNew |
| Best for | Questions, support, pre-sale help | Launches, offers, reminders, newsletters |
A chat button is usually a styled wrapper around a wa.me click-to-chat link, sometimes with a pre-filled message (WhatsApp Help Center). When someone messages you, a 24-hour customer service window opens and you can reply freely. Once it closes, "you can only send pre-approved template messages" (Meta).
That's the catch. A chat tells you the person had a question today. It doesn't tell you they want your offers next month, so it isn't an opt-in. If you want to message people when you choose, you need a form.
What does a WhatsApp opt-in form need?
Meta's opt-in requirements say the opt-in must make clear the person is agreeing to messages from your business, name your business, and comply with applicable law. The WhatsApp Business Messaging Policy sets the same expectation. Under UK and EU GDPR, consent must be freely given, specific, informed and unambiguous, and pre-ticked boxes don't count (ICO). You must also be able to show that each person consented (GDPR Article 7).
In practice, a good form has seven parts:
- 1Your business name, next to the form.
- 2What you'll send, such as new arrivals and offers, class reminders or a weekly update.
- 3Roughly how often.
- 4An unticked consent checkbox the visitor ticks themselves.
- 5How to opt out, for example by replying STOP.
- 6A link to your privacy notice.
- 7A record of when, where and how each person opted in.
Get Harbour Coffee's new roasts and weekly offers on WhatsApp, about once a week. Reply STOP at any time to unsubscribe. See our privacy notice.
One line like that above the form covers the first five points. Our opt-in wording examples give versions for checkout, events, menus and paper forms.
How to add a WhatsApp opt-in form to your website
Buddy's opt-in form works on any website that lets you paste a script tag. Sign-ups go straight into your Buddy audience with consent recorded, just like your hosted opt-in page.
<script src="https://usebuddy.app/api/embed/YOUR-HANDLE"></script>- 1Find your handle on the Grow page in Buddy.
- 2Paste the script tag where you want the form to appear, such as a custom HTML block in your site builder.
- 3Add a short line above it naming your business and saying what you'll send. The built-in checkbox reads "I agree to receive WhatsApp updates and can opt out anytime", so your line is where your business name and the detail go.
- 4Submit a test with your own number and check that you appear in your audience.
Visitors see a name field, a WhatsApp number field, an unticked consent checkbox and a Subscribe button. The form won't submit until the box is ticked. If a number looks wrong, the form asks for the country code (for example +44 7700 900123), so your list stays in international format. Each sign-up is added to your audience with its date and source, and a first-time sign-up can start your welcome automation.
Adding it on WordPress, Shopify and Webflow
- WordPress: add a Custom HTML block in the block editor and paste the script tag into it.
- Shopify: if your theme offers a Custom Liquid section, Shopify suggests adding app code there in the theme editor rather than editing theme files (Shopify Help Center).
- Webflow: use the Code Embed element, which supports script tags on paid Webflow plans.
- Anything else: look for a block called HTML, embed or custom code. If your builder has one that runs scripts, the form works there.
Where should the opt-in form go?
Put the form where people already like you enough to want more. Each spot below suits a different promise:
Order confirmation page
Buyers are at their most positive. Offer restock alerts and new launches on WhatsApp.
Footer, on every page
Pair it with a one-line promise such as "New drops first, once a week".
Blog and resource pages
Readers who finish a guide are good candidates for a weekly tips update.
Event and course pages
Offer reminders and joining links for a class, webinar or launch night.
Offline, too
Your hosted opt-in page has a QR code for menus, packaging and counters.
What to send after someone subscribes
Send a short welcome that confirms the sign-up and reminds people who you are. Someone who fills in a web form hasn't messaged you, so there is no open 24-hour window: your welcome must be a Meta-approved template. Our guide to WhatsApp message templates explains how approval works.
In Buddy, create a welcome template, then turn on the Welcome message preset in Automations on the "When someone subscribes" trigger. Our guide to WhatsApp auto replies and welcome sequences covers what to say and when.
Should you use a chat button and an opt-in form together?
Yes. They do different jobs, and each makes the other more useful:
- Chat button for conversations. Messages arrive in Buddy's shared team inbox, where your team can reply.
- Opt-in form for updates. It builds a list you can send WhatsNew to, with consent on record.
- Bridge the two. When a chat goes well, share your opt-in link and invite the customer to subscribe. The choice stays theirs.
Run a software platform and want WhatsApp inside your own product? Buddy Embed for platforms puts audiences, campaigns and results inside your app, with each business on its own number.
Frequently asked questions
Is a WhatsApp chat button enough to send marketing messages?
No. A chat button lets you reply for 24 hours after the customer writes. Sending marketing messages later needs an opt-in that names your business and says the person agrees to receive messages from you on WhatsApp.
Should the consent checkbox be pre-ticked?
No. Under UK and EU GDPR, a pre-ticked box is not valid consent. Buddy's form starts unticked and won't submit until the visitor ticks it.
Can I use a pop-up instead of an embedded form?
Yes, as long as it has the same parts: your business name, what you'll send, an unticked consent box and how to opt out. If your pop-up builder has a custom HTML block that runs scripts, paste the script tag there.
Do sign-ups from the form trigger my welcome automation?
Yes. A first-time sign-up starts the "When someone subscribes" trigger. The welcome message must be an approved template, because the person hasn't messaged you yet.
Where do website sign-ups show up?
In your Buddy audience, next to people who joined through your opt-in page, QR code or imports. Each one shows its source, so you can see how many came from your website.