You can add live chat to your website in three practical ways: paste an embed script, install a platform plugin, or wire in an SDK or iframe for programmatic control. The embed script is fastest; a plugin is best if you never want to touch code; the SDK route is what developers reach for when they need chat to talk to their own app logic. Forrester has argued that businesses without chat are leaving revenue on the table, and Tawk markets itself on a promise worth noting: “one snippet, live in minutes.”
Pick your path promptly.
- Embed script — fastest, works on any site, best when you want chat live today.
- Platform plugin — no code, best for WordPress, Shopify, or Squarespace site owners.
- SDK or iframe — most control, best for product teams that need chat to react to app state.
Your checklist: choose a method, create a free account with a provider like SEOLEVELUP, LLC Website Design SEO Company recommends evaluating; grab the snippet or plugin, paste it into your footer or plugin field, then check it on both desktop and mobile before you call it done.
Key Takeaways
Adding live chat to your website works best when you match the integration method (embed script, plugin, or SDK) to your technical resources, then connect the widget to a real inbox before you measure results.
| Point | Details |
|---|---|
| Choose method by need | Use an embed script for speed, a plugin for no-code setup, or an SDK when you need programmatic control. |
| Placement matters | Paste embed scripts immediately before </body>, and use header/footer plugins on WordPress instead of editing theme files directly. |
| Configure before launch | Set your welcome message, operating hours, and routing rules so no conversation goes unanswered. |
| Connect to one inbox | Feed chat into a unified inbox so conversation history follows the visitor across email and social. |
| Get expert setup | SEOLEVELUP, LLC Website Design SEO Company installs and integrates live chat with your CRM as part of its website design and conversion services. |
Table of Contents
- How Do You Choose Between an Embed Script, a Plugin, or an SDK?
- How Do You Paste a Live Chat Snippet Into Your Site?
- What Changes When You Install Chat via WordPress, Shopify, or Squarespace?
- How Should You Configure Chat Settings and Routing Before Launch?
- How Do You Use an SDK or Iframe for Advanced Chat Control?
- What Should You Test Before You Publish Live Chat?
- Why Should Chat Feed a Single Inbox Instead of Standing Alone?
- What Does SEOLEVELUP Recommend as the Default Chat Setup?
- Let SEOLEVELUP Handle Your Chat Setup and Conversion Strategy
- Where to Read the Original Setup Documentation
- Sources
How Do You Choose Between an Embed Script, a Plugin, or an SDK?
The right integration method depends less on preference and more on how much control you need over the code and the data. An embed script is a few lines of JavaScript pasted once, live in under 10 minutes, and it is the default most SaaS live chat tools push you toward. A platform plugin wraps that same script inside your CMS’s dashboard, trading a little flexibility for zero copy-pasting. An SDK or iframe hands you programmatic hooks, at the cost of needing a developer to wire it up.
Embed script
- Setup time: 5 to 15 minutes.
- Pros: fastest launch, vendor manages hosting and updates.
- Cons: less control over UI, data typically lives on the vendor’s servers.
Platform plugin
- Setup time: 10 to 20 minutes.
- Pros: no code, survives most theme changes, easy for non-developers.
- Cons: locked to whatever settings the plugin exposes.
SDK or iframe
- Setup time: hours to days, depending on your app.
- Pros: full control over identity, events, and placement.
- Cons: needs developer time, more to maintain long-term.
For a marketer or solo site owner, the plugin route wins. For a product team building chat into a logged-in app experience, the SDK is the only option that will hold up.
Pro Tip: Self-hosting only pays back once your conversation volume is high enough that per-agent SaaS pricing outweighs the cost of running your own widget. If you’re under a few hundred chats a month, the Getagent notes the embed path almost always wins on total cost.
How Do You Paste a Live Chat Snippet Into Your Site?
Most live chat providers, including HubSpot, follow the same setup sequence: create your account, set up the chat widget, build a chatflow with your welcome message and targeting rules, then publish. HubSpot’s own documentation is explicit that if you’re adding chat to a site outside HubSpot’s own CMS, you must install the HubSpot tracking code first, or the widget simply won’t render.
Here is the sequence that works across nearly every vendor:
- Create your account and complete the widget setup wizard.
- Copy the JavaScript snippet from your dashboard settings.
- Paste the snippet immediately before the closing
</body>tag on every page you want chat to appear. - Confirm any required tracking code is installed first, since some vendors (HubSpot included) won’t show the widget without it.
- Reload the live page and confirm the widget appears in the bottom corner.
Stack-specific notes:
- Plain HTML: paste directly before
</body>in your template file. - WordPress: drop the snippet into your theme’s footer via a header/footer plugin rather than editing
footer.phpdirectly, so a theme update doesn’t wipe it out. - Next.js: load the script with
next/scriptand astrategy="lazyOnload"prop so it doesn’t block your initial page render. - Single-page apps: mount the widget once at the app root and handle route changes carefully. Some SDKs need an explicit unmount call, or you’ll end up with duplicate widgets stacking on top of each other.
A typical snippet pattern looks like a small async loader that pushes a script tag into the document, followed by a boot() or identify() call where you pass the logged-in user’s name and email so agents see who they’re chatting with.
If the widget doesn’t show up, work through this order: check that the tracking code loaded (open dev tools, look for the script in the network tab), clear your CDN or page cache, and check your Content Security Policy for a blocked script-src domain. Ad blockers catch a surprising number of chat widgets too.

Pro Tip: Always test in an incognito window on both desktop and a real phone before you trust that the widget is live. Cached pages and logged-in sessions hide bugs that a fresh visitor will hit immediately.
What Changes When You Install Chat via WordPress, Shopify, or Squarespace?
Platform-specific installs remove most of the guesswork, but each one has its own trap.
WordPress: Paste the snippet through a header/footer plugin instead of editing footer.php directly. Direct theme edits get wiped the moment you update your theme, and you’ll lose chat without realizing it until a customer complains.
Shopify: Most providers ship a dedicated app in the Shopify App Store. Install it, then paste or auto-inject the snippet through the app’s settings panel inside your Shopify admin. Some apps also expose cart context to chat, so an agent can see what’s in a visitor’s cart mid-conversation.
Squarespace, Wix, and Webflow: All three offer a custom code injection area in site settings, usually under “Advanced” or “Code Injection.” Paste the snippet there rather than inside a content block, and expect a short publish delay before the widget appears live.
Quick verification checklist for any platform:
- Publish the change (not just save as a draft).
- Clear any site-level caching plugin or CDN cache.
- Load the live URL, not the staging preview.
- Confirm the widget renders on both a blog post and your homepage template.
Watch for caching plugins that serve a stale version of your footer, and theme overrides that quietly strip custom code on the next update. Always verify on your live production domain, not just a staging environment, since staging and production sometimes point at different tracking codes entirely.
How Should You Configure Chat Settings and Routing Before Launch?
The default settings on any live chat tool are built for nobody in particular. Before you publish, adjust a handful of settings that determine whether chat helps you or just sits there unanswered.
Configure these first:
- Welcome message — specific to the page, not a generic greeting.
- Operating hours — so visitors see an “away” state instead of a chat box nobody’s watching.
- Pre-chat capture form — ask for name and email before the conversation starts.
- Availability indicator — a green dot builds more trust than an empty widget.
Routing determines what happens after someone actually starts typing. Connect your chat provider to a real inbox, not just a notification email, and set an assignment rule (round-robin across agents, or skill-based if certain agents handle billing versus sales). Build one escalation rule: if no agent responds within your target window, the conversation should automatically route to email or your ticketing system, so nothing goes unanswered overnight.
If your provider supports a knowledge base search inside the chat window, turn it on. It resolves simple questions before a human ever sees them, and you can set a confidence threshold so ambiguous questions still hand off to a person instead of guessing.
Targeting rules are where chat starts to feel less like a widget and more like a conversion tool: show the chat prompt on your pricing page, hide it entirely on your privacy policy, and trigger a different greeting for returning visitors versus first-timers.

Pro Tip: Before you launch, send a test message from an incognito browser and confirm it lands in your actual support inbox, not just your dashboard. A disconnected inbox is the single most common reason “live chat” quietly stops working within a week of launch.
How Do You Use an SDK or Iframe for Advanced Chat Control?
Developers building chat into a logged-in product usually pick between two approaches. The Raia SDK documentation recommends the Embed JS SDK for most advanced use cases, since it runs inline with your page and gives you full command access. The iframe option trades some of that flexibility for complete visual isolation, useful when you need chat to live inside a specific container without any CSS bleeding through.
A typical integration pattern loads the SDK asynchronously, then waits for a ready event before issuing any commands:
- Load the script async, then wait for the SDK’s ready callback before calling anything.
- Call a
setUser()command to pass the logged-in visitor’s name, email, and account ID. - Call
openChat()orsendMessage()to trigger chat programmatically from your own UI, like a “Chat with support” button elsewhere on the page. - On single-page apps, explicitly unmount the widget on route changes where chat shouldn’t appear, or you’ll get duplicate instances stacking on each other.
Never expose a secret API key inside client-side code. Anything running in a browser is visible to anyone who opens dev tools. Use short-lived tokens or a server-signed JWT for any privileged call, and generate that token server-side.
Pro Tip: If your chat needs to talk to a custom CRM instead of a generic inbox, that server-side token generation is exactly the kind of work worth handing to a developer, or a partner like Let’s Build My App if you don’t have one on staff.
What Should You Test Before You Publish Live Chat?
Run through this before flipping chat live on your production domain:
- Load the site on desktop and on a real phone, not just a resized browser window.
- Test both a logged-in flow and an anonymous visitor flow if your
identify()call passes user data. - Confirm UTM parameters and referrer data are captured correctly if you’re routing chat leads into a campaign report.
- Check your consent management platform. If your site requires cookie consent, the chat script may need to wait until a visitor accepts before it loads, and you shouldn’t pass personal data through chat without that consent.
- Measure your Core Web Vitals before and after. Some vendors, like Message, advertise widgets as small as 18 KB with an 80 millisecond load time specifically because performance is the top objection prospects raise before adding chat.
Load the script asynchronously with a lazy strategy so it never blocks your page’s initial paint. If the widget doesn’t appear, check for a blocked Content Security Policy domain, an ad blocker, or a service worker serving a cached version of your page that predates the chat install. And always confirm you’re testing the live domain, not a staging URL pointed at a different tracking code.
Why Should Chat Feed a Single Inbox Instead of Standing Alone?
Live chat only compounds in value when it feeds a single inbox that preserves history across web, email, and social, an approach tawk.to’s own inbox product is built around. A visitor who starts in chat, drops off, and emails support two days later should land in front of an agent who can see the whole conversation, not start from zero.
Track four numbers after launch: conversation volume, qualified leads generated from chat, first response time, and the handoff rate to a human agent. Connect your chat provider to your CRM or inbox, turn on knowledge base search, and set a clear SLA for when a bot hands off to a person. Forrester’s research frames the absence of chat as a missed commercial opportunity, and the same logic applies in reverse: chat without a connected inbox is a missed opportunity too, since you’re gathering leads nobody actually follows up on.
What Does SEOLEVELUP Recommend as the Default Chat Setup?
SEOLEVELUP, LLC Website Design SEO Company’s usual starting point for clients is a SaaS embed. It gets a client live the same day, with none of the engineering overhead. We move to self-hosting or SDK-level work only when a client needs data residency, a fully custom widget UI, or deep CRM integration that a generic embed can’t handle. When we hand a project back to a client, we leave three things: admin credentials, a short runbook explaining how routing and greetings are configured, and a testing checklist so their team can verify chat is still working after their next site update.
Let SEOLEVELUP Handle Your Chat Setup and Conversion Strategy
SEOLEVELUP, LLC Website Design SEO Company is the alternative to spending a weekend debugging a broken snippet: we install your chat widget, wire it into your CRM or inbox, and set up the routing and targeting rules covered above, so it’s working correctly the first time instead of the third.

Beyond the initial install, we handle the parts most site owners skip: custom SDK work for product teams, conversion optimization on the pages where chat should actually appear, and ongoing tracking so you know whether chat is generating qualified leads or just sitting idle. If your chat needs to connect to a workflow like local lead generation or you’re trying to fix a site that gets traffic but no conversions, chat setup is usually one piece of a larger fix, not the whole answer.
Call (224) 600-4353 for a free SEO audit, or start with our custom website design and development services to get chat, your CRM, and your conversion funnel working together from day one.
Where to Read the Original Setup Documentation
Start with the official docs for whichever provider you choose: HubSpot’s live chat setup guide walks through widget creation and chatflows, while tawk.to and LiveChat both offer vendor-specific setup pages and free trials worth comparing before you commit.
Sources
- Create a live chat — HubSpot Knowledge
- Tawk
- Getagent
- Retailers without chat are a missed opportunity — Forrester (blog)




