WhatsApp for Website

    Add WhatsApp to your website in five minutes

    Start with a free click-to-chat link, upgrade to a branded widget, and route every conversation to your team inbox with full context.

    Click-to-chatBranded widgetWordPress shortcodeInbox routing

    At a glance

    5 minsetupCopy-paste embed
    wa.meinstant linkNo code needed
    Customwidget designColour, icon, position
    Routedto team inboxNot a personal phone

    What you get

    Everything you need, in one workspace

    Click-to-chat link

    A wa.me URL with a pre-filled message opens WhatsApp instantly — no widget or code required.

    Branded widget

    Embeddable JavaScript widget with custom colour, icon, position, welcome message, and pre-chat fields.

    Pre-chat form

    Optionally collect name, email, or topic before the chat opens, so agents start with context.

    Team-inbox routing

    Conversations route to queues and agents by skill, language, or load — not to one person's phone.

    WordPress + Shopify ready

    A WordPress shortcode and plugin, plus Shopify and WooCommerce support, make embedding trivial.

    Attribution

    See which pages and campaigns drive chats, and reconcile them against replies and revenue.

    How it works

    From setup to sent in a few moves

    1. 01

      Create the link

      Use https://wa.me/<number>?text=<message> for the fastest possible click-to-chat button.

    2. 02

      Embed the widget

      Or paste Greenbubble's script or WordPress shortcode anywhere on your site.

    3. 03

      Brand the widget

      Match colour, icon, position, and welcome copy to your site's design.

    4. 04

      Route to your team

      Point the widget at Greenbubble so chats land in the shared inbox with context.

    Deep dive

    From click-to-chat to a routed widget

    Add WhatsApp to your website in 5 minutes

    Three approaches — pick the one that matches your team's complexity.

    https://wa.me/<your-number-with-country-code>?text=<urlencoded-message>

    Example: https://wa.me/15551234567?text=Hi%20I%20need%20help%20with%20my%20order

    Click anywhere on your website (button, image, text) and the visitor's WhatsApp opens with your pre-filled message. Free, no setup.

    Where to place a click-to-chat link

    • In the header as a persistent "Chat on WhatsApp" button.
    • On product pages, next to "Add to cart", for questions before purchase.
    • In the footer with your other contact options.
    • In a floating sticky button on mobile, where most WhatsApp traffic starts.

    Getting the number format right

    The number must include the country code and no plus sign, spaces, or dashes. So a US number becomes 15551234567, not +1 555 123 4567. Encoding the message correctly matters too: spaces become %20, and any special character needs URL encoding. Greenbubble's link builder does this for you and gives you a copy-ready URL.

    2. The branded widget

    A small chat bubble in the corner of your site that opens WhatsApp when tapped. Greenbubble's widget:

    • Branded with your logo and colour
    • Customisable welcome message
    • Optional pre-chat form (name, email, query type)
    • Routes the conversation to your team inbox

    Embed with one line of JavaScript:

    html
    <script src="https://cdn.greenbubble.io/widget.js" data-workspace="YOUR_ID"></script>

    What a pre-chat form buys you

    Without a form, a WhatsApp click gives you a phone number and a message. With a form, you also capture name, email, and reason for contact before the chat starts, so the conversation arrives pre-qualified and your CRM record is more than a bare number. For sales teams, this is the difference between a queue of anonymous chats and a queue of leads.

    Widget customisation options

    OptionWhat it controlsTypical choice
    ColourBubble and header colourBrand primary colour
    PositionCorner of the screenBottom-right
    Welcome messageFirst line the visitor sees"Hi — how can we help today?"
    Pre-chat formFields collected before chatName, email, topic
    AvailabilityWhen the widget invites a chatBusiness hours, or always
    Offline messageShown outside hours"Leave a message, we reply by 9am"

    3. The team-routed version

    If your team has more than one person handling WhatsApp, the widget should not open a 1:1 WhatsApp chat — it should open a Greenbubble conversation that your team can route, assign, and respond to from the shared inbox.

    This is what the Greenbubble widget does by default. The conversation is captured with full metadata (URL the visitor was on, referrer, time on site, custom data attributes) and assigned to an agent.

    Why routing beats a 1:1 chat

    A click-to-chat link opens a private chat between the visitor and whichever phone number is behind the link. That conversation is invisible to everyone else, cannot be assigned, and leaves no trace if the person who owns the phone is away. A routed widget starts a tracked conversation your whole team can see, split, and report on.

    Choose the right approach

    ApproachSetup effortMulti-agentTrackingBest for
    Click-to-chat linkMinutesMinimalSolo businesses, quick start
    Branded widgetMinutesVia inboxGoodSmall teams, lead capture
    Team-routed widgetMinutesFullSupport and sales teams

    Setup walkthrough

    1. In Greenbubble, open Settings → Widget → New Widget.
    2. Pick a name, brand colour, and welcome message.
    3. Choose default assignment (round-robin, specific agent, or load-balanced by skill).
    4. Optionally add a pre-chat form.
    5. Copy the embed code.
    6. Paste into your website — for sitewide, or any page for targeted.

    Testing before you launch

    • Open the widget on desktop and mobile; check the bubble does not cover key buttons.
    • Submit the pre-chat form and confirm the conversation appears in the inbox.
    • Verify the assignment rule sends it to the right agent.
    • Test outside business hours to confirm the offline message shows.
    • Check page-load impact with the widget enabled.

    WordPress

    Greenbubble provides a WordPress plugin (separate from the WooCommerce sync plugin) that adds a settings page and shortcode. Paste [greenbubble_widget] into any page or post.

    Other common platforms

    • Shopify: paste the embed code into your theme's theme.liquid before .
    • Webflow: add it as a custom code embed in site settings.
    • Squarespace: use a code injection block in the footer.
    • Custom sites: paste the script before in your layout template.

    Measuring results

    Once the widget is live, watch four numbers: widget opens, conversations started, first-response time, and conversion. Widget opens that never become conversations usually mean the welcome message is unclear or the form asks too much. High starts but slow first responses point to staffing, not design.

    A simple weekly review

    • Compare widget starts against last week and against web-form submissions.
    • Check first-response time; anything over a few minutes on a business day is a red flag.
    • Read a sample of five conversations and note what customers actually asked for.
    • Adjust the welcome message or form fields based on what you learn.

    Common reasons a widget underperforms

    The bubble is hidden behind another element on mobile. The welcome message is vague ("Chat with us"). The pre-chat form asks for five fields before a conversation can start. No one is assigned to the widget queue during business hours. None of these require a redesign; each is a small configuration fix.

    A pre-chat form collects personal data, so say what you collect and why. Link your privacy notice near the form, only ask for what you will actually use, and make sure opt-in to marketing is a separate, clear choice from starting a support chat. A widget that quietly bundles marketing consent into a support conversation is a compliance risk and a poor experience.

    Which approach to start with

    If you are unsure, start with the team-routed widget. It takes minutes to install, captures metadata, and routes to an inbox you control. If you later find you only ever need a simple link, you can fall back with no loss. Starting with a bare click-to-chat link and migrating later means reworking embeds and retraining customers on where to click.

    Accessibility notes

    Make sure the widget can be reached by keyboard, has a visible focus state, and does not trap focus in a way that blocks the rest of the page. Give the launcher button a clear accessible label such as "Open WhatsApp chat". Small details like these keep the widget from becoming an accessibility barrier on an otherwise compliant site.

    FAQ

    Can I add WhatsApp to my website?

    Yes. The simplest form is a click-to-chat link (https://wa.me/) that opens WhatsApp with a pre-filled message. For a branded widget, Greenbubble provides an embeddable JavaScript widget that opens a chat interface and routes the conversation to your team inbox.

    How do I create a WhatsApp click-to-chat link?

    Use the format https://wa.me/?text=. For example, https://wa.me/15551234567?text=Hi%20I%20need%20help.

    Is the WhatsApp widget free?

    The basic WhatsApp click-to-chat link is free. Greenbubble's branded widget with conversation routing is included in the SaaS plan.

    How do I embed WhatsApp on WordPress?

    Greenbubble provides a WordPress plugin (separate from the WooCommerce sync plugin) that adds a settings page and shortcode. Paste [greenbubble_widget] into any page or post.

    Can I customise the WhatsApp widget design?

    Yes. Greenbubble's widget editor lets you change the colour, icon, position, welcome message, and pre-chat form fields to match your brand.

    Will adding a WhatsApp widget slow down my site?

    The widget loads asynchronously and is a small script, so it does not block page rendering. If you are especially performance-sensitive, load it after your main content or only on pages where you want it.

    Can I show the widget only on certain pages?

    Yes. Place the embed code on specific pages instead of sitewide, or use the widget's targeting rules to show it by URL, device, or time of day.

    Does the widget work on mobile?

    Yes, and mobile is where most WhatsApp traffic originates. The widget adapts to small screens, and on a phone it opens the WhatsApp app directly with the conversation already started.

    Embed WhatsApp on your site

    Start free trial → · See widget gallery → · Book a walkthrough →

    FAQ

    Questions, answered

    Can I add WhatsApp to my website?

    Yes. The simplest route is a click-to-chat link; for a branded experience, Greenbubble provides an embeddable widget that routes to your team inbox.

    How do I create a click-to-chat link?

    Use https://wa.me/<number-with-country-code>?text=<url-encoded-message>, for example https://wa.me/15551234567?text=Hi%20I%20need%20help.

    Is the widget free?

    The basic click-to-chat link is free. Greenbubble's branded widget with routing is included in the SaaS plan.

    How do I embed it on WordPress?

    Use the Greenbubble WordPress plugin, which adds a settings page and a [greenbubble_widget] shortcode for any page or post.

    Can I customise the design?

    Yes. The widget editor controls colour, icon, position, welcome message, and pre-chat form fields.

    Meet visitors where they are

    Turn website traffic into WhatsApp conversations.

    A free click-to-chat link or a branded widget that routes straight into your team inbox.