One snippet · ≤15 KB target · Live in about five minutes
Add Live Chat to Website: 3 Steps for Any Platform
To add live chat to website pages, paste a chat widget script before </body> and test it. rokochat's targets ≤15 KB and is free for 3 seats. Start free in 5 minutes.
By the rokochat team · Updated
To add live chat to website pages, sign up for a chat tool, paste its script just before the closing </body> tag (or into your site builder's custom code setting), then publish and send yourself a test message. It takes about five minutes on any platform. rokochat's widget is one async script targeting 15 KB gzipped, free for 3 seats on 1 site.
Prices checked October 2026 from each vendor's public pricing page.
The short answer
- Method: Every live chat widget for website use installs the same way: one script, placed before
</body>so it loads on every page. - Where it goes: WordPress uses the footer, Wix uses Custom Code, Squarespace uses Code Injection, Shopify uses
theme.liquid, Webflow uses Footer code, Next.js uses the root layout. - Free options: If you want a free chat widget for website visitors, tawk.to's core chat is free with unlimited agents and a badge; rokochat Free covers 3 seats on 1 site with unlimited messages and a badge.
- What to check: Script size and loading, what removing the badge costs, how seats and AI are billed, and whether your team can talk to each other in the same tool.
- rokochat: $7/mo flat on Starter removes the badge and gives unlimited seats on 3 sites, with team chat and capped AI included.
How to add live chat to website pages: the universal 3-step method
Step 1: Sign up and get your snippet
Create an account with your chat tool and add your website's domain. With rokochat, sign up free, add your site, and click Get install code. You'll get a snippet like this, with your own public key filled in:
<!-- rokochat -->
<script>
(function(w,d,s,k){
w.Rokochat = w.Rokochat || function(){ (w.Rokochat.q = w.Rokochat.q || []).push(arguments) };
w.Rokochat.k = k;
var f = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = 1; j.src = 'https://cdn.rokochat.com/w.js';
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'rk_pk_YOUR_PUBLIC_KEY');
</script>
The rk_pk_ public key is meant to be in page code. Secret keys (rk_sk_) and identity secrets (rk_is_) never go in your website.
Step 2: Paste it before </body>
Put the snippet just above the closing </body> tag in the template every page shares. On a hand-coded site that's usually a shared footer file. On a site builder, there's a custom code setting that does the same job; the platform table below says where.
Why </body>? The page content loads first and the chat loads after, so visitors never wait on the widget. The async flag means the script doesn't block rendering even if it loads early.
Step 3: Publish and test
Publish or deploy, then open your site in a private window (site builders often hide custom code in their editor preview). Click the chat bubble and send a test message. In rokochat, click I've installed the code: the dashboard confirms the widget is live, and your test message is in the inbox.
That's it. Colours, corner position, greeting, business hours and offline message are all set from the rokochat dashboard afterwards, not in your site code.
Where to paste the chat snippet on each platform
| Platform | Where the snippet goes | Guide |
|---|---|---|
| WordPress | Footer, via a header-and-footer scripts plugin, a wp_footer hook in your child theme, or footer.php |
WordPress live chat |
| Wix | Settings → Custom Code → Body - end, All pages (needs a connected domain) | Wix live chat |
| Squarespace | Code Injection → Footer (check that your plan includes Code Injection) | Squarespace live chat |
| Shopify | Online Store → Themes → Edit code → theme.liquid, just above </body> |
Shopify install docs |
| Webflow | Site settings → Custom code → Footer code, then publish (check that your plan includes custom code) | Webflow install docs |
| Next.js | Root app/layout.tsx, before </body> |
Next.js install docs |
| Plain HTML | Every page's shared footer, just above </body> |
This page |
The rokochat WordPress plugin isn't listed in the WordPress.org directory yet, so on WordPress you use the snippet like everywhere else.
If your app has logged-in users, you can also tell the widget who's chatting. Your server signs the user ID with your identity secret (HMAC-SHA256) and the page calls Rokochat.identify(). Each framework guide above has the server code.
What to look for in a chat widget for your website
Every tool installs the same way, so judge them on what happens after the install. Use this checklist:
- Script size and loading. It loads on every page. Look for an
asyncscript and a small payload; rokochat targets 15 KB gzipped. Test with PageSpeed Insights before and after. - What "free" really includes. Check seat limits, conversation caps and whether the vendor's badge stays on your site.
- What removing the badge costs. It ranges from $7/mo (rokochat Starter) to $39/mo per site (tawk.to) to $295/mo (Crisp Plus).
- How seats are billed. Per-agent pricing means every new hire raises the bill. Flat plans don't.
- How AI is billed. Per outcome, per conversation, per property or credit-capped. Ask what happens when usage spikes.
- What the AI is allowed to say. It should answer only from content you approve and hand off to a human with context.
- Where your team talks. If agents need to ask a colleague, does that happen in the same tool or in Slack?
- Chat and email together. Can support@ land in the same inbox as chat?
- Multiple sites. If you run more than one, check how many sites each plan covers.
- History. Find out what happens to your conversations if you downgrade or cancel.
Chat widget pricing compared
| rokochat | tawk.to | Tidio | Crisp | Intercom | |
|---|---|---|---|---|---|
| Free plan | 3 seats, 1 site, unlimited messages, badge | Core chat free; no limits on agents, chats or sites | 50 billable conversations/mo, 10 seats | $0, 2 seats | 14-day trial |
| Entry paid plan | Starter $7/mo flat, unlimited seats, 3 sites | Paid add-ons only | Starter $29/mo ($24.17 annual) | Mini $45/mo per workspace, 4 seats | Essential $39/seat/mo ($29 annual) |
| Remove the badge | From $7/mo | $39/mo or $348/yr per property | $16.67/mo add-on on Growth | Plus only, $295/mo | n/a |
| AI | Credit-capped: 50 / 250 / 1,000 credits a month on Starter / Team / Agency; no overage bill | AI Assist per property, Hobby free up to $399/mo | Lyro add-on from $39/mo (50 conversations) | Hugo, token-based, ≈$0.05–0.10 per conversation | Fin: $0.99 per outcome |
| Team chat | Channels, DMs and threads built in | Not a team chat app | Not a team chat app | Not a team chat app | Not a team chat app |
Monthly cost for 3, 5 and 10 people
One website, no badge, and a team that can talk about tricky questions. Tools without team chat get Slack Pro at $8.75/user (monthly).
3 people
tawk.to (annual branding) + Slack Pro: $29 + 3 × $8.75 = $55.25/mo
Intercom Essential (monthly) + Slack: 3 × $39 + 3 × $8.75 = $143.25/mo
rokochat Starter: $7.00/mo
5 people
tawk.to + Slack Pro: $29 + 5 × $8.75 = $72.75/mo
Intercom Essential + Slack Pro: 5 × $39 + 5 × $8.75 = $238.75/mo
rokochat Starter: $7.00/mo
10 people
tawk.to + Slack Pro: $29 + 10 × $8.75 = $116.50/mo
Intercom Essential + Slack Pro: 10 × $39 + 10 × $8.75 = $477.50/mo
rokochat Starter: $7.00/mo
Intercom figures are before Fin outcomes at $0.99 each. Add a second website and tawk.to's branding fee doubles; rokochat Starter already covers 3 sites.
Want this with your own numbers? Run the Slack + live chat calculator →
When another chat widget is the better choice
- You want unlimited free agents and don't mind a badge. tawk.to's free plan has no agent limit. rokochat Free is 3 seats on 1 site.
- You want visitors to call or screen-share. tawk.to sells video, voice and screen share for $49/mo. rokochat doesn't offer visitor calls.
- You want a native app in your platform's store. Wix has Wix Smart Chat built in, and several vendors have WordPress.org plugins. rokochat installs with a snippet.
- You need deep in-chat store actions. If agents must edit orders inside the chat window, look at ecommerce-specific helpdesks. rokochat doesn't show store order data beside the conversation.
But if your pain is badge fees, per-seat bills and a separate Slack tab, read on.
What you get with rokochat
Shipped today, on the plans listed.
Widget
- One async script, targeting 15 KB gzipped or less
- 10 widget languages, your colour and corner, business hours with an offline message
- Open it from your own button with
Rokochat('open'); live visitors list; HMAC identity verification - Badge removed from Starter ($7/mo); custom widget domain on Team ($19/mo); full white-label on Agency ($49/mo)
Team
- Team chat built in: channels, DMs and threads beside the customer inbox
- Shared inbox with tickets that map 1:1 to conversations; email channel for support@
- Canned responses (3 on Free, unlimited on paid); unlimited seats on every paid plan
AI
- One assistant for sales qualification and support resolution, answering only from approved knowledge
- Shadow mode before going live, a dashboard kill switch, and human handoff with context
- Credit-capped: when credits run out, chats go to your human queue. No overage bill, unlike per-outcome or per-conversation billing. See how rokochat AI works.
Ops
- Contacts CRM, analytics, REST API and webhooks
- Unlimited messages; history never deleted on downgrade or cancel
- Sites per plan: Free 1, Starter 3, Team 10, Agency 50
Frequently asked questions
How do I add a chat box to my website?
Sign up for a live chat tool, copy its script, and paste it just before the closing </body> tag on every page, or into your site builder's custom code setting. Publish, then send yourself a test message from a private browser window. It takes about five minutes.
Is there a free chat widget for my website?
Yes. tawk.to's core chat is free with unlimited agents and its badge. Tidio Free covers 50 billable conversations a month. rokochat Free covers 3 seats on 1 site with unlimited messages and our badge; Starter removes the badge for $7/mo.
Do I need a developer to add live chat to my website?
No, not for the basic install. On WordPress, Wix, Squarespace, Shopify and Webflow, you paste one snippet into a settings field or footer. Identifying logged-in users does need a small piece of server code.
Where exactly should the live chat script go?
Just above the closing </body> tag, in the template every page uses. That way it loads on every page, after your content.
Will a live chat widget slow down my website?
It depends on the widget. Look for an async script with a small payload; rokochat targets 15 KB gzipped. Run PageSpeed Insights before and after you install any chat tool.
Can I add the same chat to more than one website?
Yes. Each site gets its own snippet, and all conversations arrive in one inbox. rokochat Free covers 1 site, Starter 3, Team 10 and Agency 50.
Add live chat to your website today
Pick your platform from the table, paste one snippet, and you're live in about five minutes. rokochat is free to start, $7/mo for unlimited seats without the badge, with team chat and capped AI included.
Related: WordPress live chat · Wix live chat · Squarespace live chat · Free live chat options · Canned response examples