Viber chat button
Free Viber Chat Widget for Your Website
Add a Viber button to your website so visitors can message your number on Viber with one tap.
- Opens a Viber chat with your number
- Popular across Eastern Europe and Asia
- Free, with analytics
Hello! Message us on Viber for quick answers.
How it works
-
1
Create your widget
Add your Viber details, name, photo and welcome message, and pick your colours. Free account required.
-
2
Paste two lines of code
Copy the snippet into your site before the closing body tag, or use one of the step-by-step guides for 31 platforms.
-
3
Check the installation
Use Check installation to confirm the widget is live, and clear your site's cache if you don't see it.
Make it yours
What you can set for the Viber chat widget. You can change it any time without touching the code again.
- Display name and profile photo
- A caption such as "Typically replies within an hour"
- Your welcome message
- Position: left, centre or right
- A round icon or a "Chat now" button
- A choice of icon images
- Button background and text colours
Analytics
See how often the widget is shown and clicked, over time, and which websites the visits came from.
Illustration only.
Who uses a Viber button
Regional businesses
Meet customers on the messenger they use every day.
Delivery and logistics
Handle delivery questions in a conversation.
Clinics and services
Take appointment requests by message.
Retail
Answer product questions without a phone call.
Works with your website
Step-by-step installation guides for 31 platforms, including notes on caching, content security policies and single-page apps.
- Any website (HTML)
- Google Tag Manager
- Cloudflare Zaraz
- WordPress
- WooCommerce
- Shopify
- Blogger
- Ghost
- Joomla
- Drupal
- Wix
- Squarespace
- Webflow
- Google Sites
- Magento / Adobe Commerce
- PrestaShop
- OpenCart
- React
- Next.js
- Angular
- Vue
- Nuxt
- ASP.NET Core
- ASP.NET Web Forms
- PHP
- Laravel
- CodeIgniter
- Django
- Flask
- Ruby on Rails
- Node.js / Express
Good to know
- The widget hands your visitor to the messaging app - the conversation continues there, not on your website.
- Your destination is fetched by the widget with its public key, so treat it as public information, like a number printed on your website.
- When the widget is shown or clicked, A2Z Tools records the visit (IP address, page address, referrer and time) to count views and clicks. It does not collect your visitors' names or email addresses.
- A small "powered by a2z.tools" credit link is shown in the widget.
Other widgets
Ready in a few minutes
Create your widget for free, paste it into your site, and start getting conversations.
Other Tools
Popular tools from across A2Z
Quick answer
To add Viber chat to a website, create a Viber widget in a free A2Z Tools account, enter your Viber number, style the popup, and paste the two-line code into your site. Visitors click the button and the Viber app opens a chat with you.
Key facts
- Free; a free A2Z Tools account is needed to create and manage widgets
- Opens the Viber app through a viber://chat link to the number you enter
- The visitor needs the Viber app installed on the device they are using
- The conversation continues in Viber, not on your website
- A Viber business account is not required
- Popup with display name, caption, welcome message, profile image and a "Start Chat" button
- Dashboard shows impressions, clicks and referring websites
What is this tool?
A Viber chat widget is a website button that opens a Viber conversation with your number. The A2Z Tools widget shows a popup with your name, caption and welcome message, and "Start Chat" opens a viber://chat link that the Viber app picks up.
Because that link is handled by the installed app, it works best for audiences who use Viber on their phone or computer. If some visitors do not, the All-in-One widget can offer WhatsApp, Messenger or Telegram beside Viber.
How to use it
There are two separate jobs: creating the widget in your free A2Z Tools account, and adding its code to your website. Nothing appears for visitors until the second job is done.
The code is two lines - an async script tag and a div carrying your site key. Step-by-step guides cover 31 platforms: HTML, Google Tag Manager, Cloudflare Zaraz, WordPress, WooCommerce, Shopify, Blogger, Ghost, Joomla, Drupal, Wix, Squarespace, Webflow, Google Sites, Magento (Adobe Commerce), PrestaShop, OpenCart, React, Next.js, Angular, Vue, Nuxt, ASP.NET Core, ASP.NET Web Forms, PHP, Laravel, CodeIgniter, Django, Flask, Ruby on Rails and Node.js (Express). Squarespace needs a Business plan and Webflow a paid site plan before custom code can be added, and Google Sites accepts only an embed box, not a floating button.
- Sign in to A2Z Tools with your email address; the account is free.
- Create a Viber widget and enter your Viber number.
- Set the display name, caption, welcome message, profile image, icon style, position and colours, and check the preview.
- Save the widget and copy its two-line code.
- Open the installation guide for your platform and paste the code so it loads on every page.
- Clear your site, plugin or CDN cache, then run the Integration Centre check or open your site in a private window.
- Follow impressions, clicks and referring websites in your dashboard.
Example
Settings: Viber number with country code; display name "City Moving Services"; caption "Typically replies within an hour"; welcome message "Need a moving quote? Message us on Viber."; button style bottom centre.
What a visitor sees: on a phone with Viber installed, "Start Chat" in the popup opens Viber with a new chat to the company number.
Common use cases
- Local services and shops in regions where Viber is widely used
- Quotes and bookings for delivery, moving and repair businesses
- Customer questions from mobile-first audiences
- Adding Viber beside other apps through the All-in-One widget
Benefits
- Reaches Viber users directly. Visitors who live in Viber can contact you there.
- No new inbox. Answer from the Viber app you already use.
- Editable without reinstalling. Update the number or message in your dashboard.
- Free and measurable. See impressions, clicks and referring websites.
Limitations
- The chat does not happen on your website. The button hands the visitor to Viber; the conversation, its history and your notifications all live there.
- The Viber app must be installed. On a device without Viber, the viber://chat link cannot open a chat. Consider the All-in-One widget if your visitors use mixed apps.
- No scheduling or targeting. The installed widget does not apply delay or trigger rules, business hours, device or page targeting, size or animation options, custom button text or a consent checkbox. It shows on every page that carries the code, about one second after the page loads, and its popup button always reads "Start Chat".
- A credit link. Every widget shows a small "powered by a2z.tools" link.
- Blockers. Ad blockers and privacy extensions can stop the widget loading for some visitors, so your counts can be lower than real traffic.
- Platform plans. Squarespace (Business plan) and Webflow (paid site plan) restrict custom code, and Google Sites allows only an embed box.
Privacy & your data
What you enter
Your Viber number is stored by A2Z Tools. The code on your website contains only a public site key; when a page loads, the widget uses that key to fetch its settings, including the Viber number. Anyone can read the key in your page source, so treat the Viber number as public information, like contact details printed on your site.
Conversations
Messages are written and answered in Viber. They do not pass through A2Z Tools, and Viber handles them under its own privacy terms.
What is recorded when the widget is shown or clicked
- the visitor IP address
- the page address and the referring address
- the page title
- a random device id kept in your website browser storage
- the date and time
These records produce the impressions, clicks and referring websites in your dashboard. The widget does not ask for, or collect, visitor names or email addresses.
Your privacy notice
Because the widget records IP addresses and uses browser storage on your website, mention it in your own privacy or cookie notice where the rules that apply to your site require it.
Frequently asked questions
What happens if a visitor does not have Viber installed?
The button uses a viber://chat link, which only the Viber app can open. On a phone or computer without Viber the chat cannot start. If your audience uses mixed apps, the All-in-One widget can offer WhatsApp, Messenger or Telegram next to Viber.
Do I need a Viber business account?
No. Enter a phone number that is registered on Viber, and the button opens a chat with that number in the Viber app.
Is the Viber chat widget free, and do I need an account?
Yes, it is free. You need a free A2Z Tools account (email sign-in) to create, edit and track widgets, and you can make more than one widget of each type. Your visitors do not need an A2Z Tools account.
How do I install it on WordPress, Shopify or another website?
Copy the two-line code (an async script tag and a div with your site key) and follow the installation guide for your platform. Guides cover 31 platforms, including WordPress, WooCommerce, Shopify, Wix, Squarespace, Webflow, Google Tag Manager, React and Next.js. After saving, clear any site, plugin or CDN cache and use the Integration Centre check. Squarespace needs a Business plan and Webflow a paid site plan to add custom code; Google Sites allows only an embed box, not a floating button.
Will the widget slow down my website?
The script tag is async, so your page does not wait for it before rendering. The button appears about one second after the page loads. If the widget cannot load, for example because of an ad blocker, the rest of your page is unaffected.
Does the conversation happen on my website?
No. The popup is on your website, but "Start Chat" opens Viber, and the conversation continues there. If you want visitors to chat inside your website and a team to answer from a dashboard, look at A2Z Live Chat.
What does the widget record about my visitors?
When the widget is shown or clicked, A2Z Tools records the visitor IP address, the page address and referrer, the page title, a random device id kept in your website browser storage, and the time. That is what powers the impressions, clicks and referring websites in your dashboard. Names and email addresses are not collected, and messages sent in Viber do not pass through A2Z Tools. Your Viber number is stored by A2Z Tools and loaded with the public site key, so treat it as public.
Can I change the widget later without reinstalling the code?
Yes. The code on your site carries only the site key, and the widget loads its current settings each time a page opens. Edit the Viber number, text, image or colours in your dashboard and the installed widget uses the new settings; clear your site cache if you do not see the change.
Last reviewed: