Step 1: Get Your Widget Code from Z360
Before you touch your website, you need to grab the embed code from Z360.- In Z360, go to Settings → Channels → Live Chat Widget.
- You’ll see your widget embed code — it’s a single
<script>tag. It looks something like this:
Copy the entire <script> tag.You’ll paste this into your website in the next step.
Step 2: Add the Code to Your Website
How you add the code depends on what platform your website is built on. Find your platform below and follow the instructions.WordPress
WordPress
WordPress gives you several ways to add the script. Pick whichever feels most comfortable.Option A: Using the Theme’s Footer (Recommended for most users)
- In your WordPress admin dashboard, go to Appearance → Theme File Editor (or Appearance → Editor in older versions).
- On the right side, find and click footer.php (or Theme Footer).
- Find the closing
</body>tag near the bottom of the file. - Paste your Z360 widget
<script>tag on a new line just above the</body>tag. - Click Update File to save.
- In WordPress, go to Plugins → Add New.
- Search for “WPCode” (or “Insert Headers and Footers”) and install and activate it.
- Go to Code Snippets → Header & Footer (or wherever the plugin puts its settings).
- Paste your Z360 widget
<script>tag in the Footer section. - Click Save Changes.
- Open the page you want the widget on in the WordPress block editor.
- Add a Custom HTML block at the bottom of the page content.
- Paste your Z360 widget
<script>tag into the block. - Publish or update the page.
WordPress.com Users (Free/Personal Plans)
WordPress.com Users (Free/Personal Plans)
If you’re on WordPress.com (not self-hosted WordPress.org), the free and personal plans don’t allow custom JavaScript. You’ll need a Business plan or higher to add custom code. Once you have that, go to Appearance → Custom Code → Footer Code and paste the script there.
Shopify
Shopify
- In your Shopify admin, go to Online Store → Themes.
- Click Actions → Edit Code (or the three dots ⋯ → Edit code) on your active theme.
- In the left sidebar under Layout, find and click theme.liquid.
- Scroll to the bottom of the file and find the closing
</body>tag. - Paste your Z360 widget
<script>tag on a new line just above</body>. - Click Save.
Wix
Wix
Wix doesn’t let you edit raw HTML files, but it has a built-in way to add custom code:
- In the Wix dashboard, go to Settings → Custom Code (you may also find this under Settings → Advanced → Custom Code).
- Click + Add Custom Code.
- Paste your Z360 widget
<script>tag in the code box. - Give it a name like “Z360 Live Chat Widget” so you can find it later.
- Under Add Code to Pages, choose All Pages (or select specific pages if you prefer).
- Under Place Code in, select Body - end.
- Click Apply.
Squarespace
Squarespace
- In the Squarespace dashboard, go to Settings → Advanced → Code Injection.
- Scroll down to the Footer section.
- Paste your Z360 widget
<script>tag there. - Click Save.
- Edit the page where you want the widget.
- Add a Code block at the bottom of the page.
- Paste the
<script>tag. - Save and publish.
Webflow
Webflow
- In the Webflow Designer, click the Webflow logo (W) in the top-left corner to open Project Settings.
- Go to the Custom Code tab.
- In the Footer Code section (the box labeled “Before
</body>tag”), paste your Z360 widget<script>tag. - Click Save Changes.
- Publish your site for the changes to go live.
- Select the page in the Pages panel.
- Click the gear icon to open page settings.
- Scroll to
Custom Code → Before </body> tag. - Paste the script and save.
GoDaddy Website Builder
GoDaddy Website Builder
- In the GoDaddy Website Builder editor, click the three dots menu (⋯) in the top-right corner.
- Go to Settings → Site-wide Code (or HTML Settings).
- Look for the Footer section.
- Paste your Z360 widget
<script>tag. - Click Save and publish your site.
Weebly
Weebly
- In the Weebly editor, go to Settings → SEO (or Settings → Header/Footer Code).
- Find the Footer Code section.
- Paste your Z360 widget
<script>tag. - Click Save and publish.
Framer
Framer
- In Framer, open your Site Settings.
- Go to the Custom Code section.
- In the
End of <body> tagsection, paste your Z360 widget<script>tag. - Publish your site.
Google Sites
Google Sites
Google Sites doesn’t support custom JavaScript. Unfortunately, you cannot add the Z360 live chat widget to a Google Sites page. If you need live chat, consider migrating to a platform that supports custom code — like WordPress, Webflow, or Squarespace (Business plan).
HTML / Custom Website (Any Static or Dynamic Site)
HTML / Custom Website (Any Static or Dynamic Site)
If you built your website from scratch, or you’re using plain HTML, this is the simplest method:
- Open your website’s main HTML file (usually
index.htmlor your layout/template file that’s shared across pages). - Find the closing
</body>tag. - Paste your Z360 widget
<script>tag on a new line just above</body>:
- Save the file and upload it to your web server (or push the change via Git if you’re using version control).
layout.html, base.html, _layout.ejs, etc.), add it there so the widget appears on every page. If you add it to individual page files, it’ll only appear on those specific pages.React / Next.js / Single Page Applications (SPAs)
React / Next.js / Single Page Applications (SPAs)
For React-based sites and other JavaScript frameworks, you have two options:Option A: Add to the public HTML fileMost frameworks have a main HTML file that loads your app:Option B: Load the script dynamically in a componentIf you prefer to load the widget programmatically (for example, to only show it on certain pages):Then include
- React (Create React App):
public/index.html - Next.js:
pages/_document.jsorpages/_document.tsx(inside the<body>of the custom Document) - Vite:
index.html - Vue.js:
public/index.html - Angular:
src/index.html - Nuxt:
nuxt.config.js(using theheadconfiguration) orapp.html - Gatsby:
gatsby-ssr.js(usingonRenderBody) - Svelte/SvelteKit:
src/app.html
</body> tag, and paste the <script> tag just above it.For Next.js specifically, create or edit pages/_document.js:<LiveChatWidget /> in your app layout or on specific pages where you want the widget.Google Tag Manager (Works with Any Website)
Google Tag Manager (Works with Any Website)
If you use Google Tag Manager (GTM) to manage scripts on your site, this is a great universal method that works regardless of your website platform:
- Log in to Google Tag Manager.
- Select your website’s container.
- Click Tags → New.
- Name the tag “Z360 Live Chat Widget”.
- Click Tag Configuration and choose Custom HTML.
- Paste your Z360 widget
<script>tag in the HTML box. - Click Triggering and select All Pages (or choose specific page triggers if you only want the widget on certain pages).
- Click Save.
- Click Submit in the top-right corner to publish the change.
Step 3: Verify It’s Working
After adding the code, open your website in a browser (use an incognito/private window to avoid caching issues):- Look for the chat bubble — it should appear in the bottom-right corner of your page.
- Click it and send a test message.
- Switch to your Z360 Inbox — you should see the test conversation appear there.
Troubleshooting
The widget doesn’t appear on my site.- Make sure you pasted the complete
<script>tag. Even a missing character can break it. - Check that the script is placed
before the closing </body> tag, not inside the<head>section. Placing it in the head can cause it to load before the page body exists. - Clear your browser cache or open the site in a private/incognito window.
- If you’re using a caching plugin on WordPress (like WP Rocket, W3 Total Cache, etc.), clear the cache after adding the script.
- Check your platform’s plan — some platforms (Wix free, Squarespace Personal, WordPress.com free/Personal) don’t allow custom JavaScript.
- Send a test message from the widget and check your Z360 Inbox. It may take a few seconds.
- Make sure your Z360 account is active and you’re logged in.
- Check that the embed code you copied is current — go back to Settings → Channels → Live Chat Widget in Z360 and verify the code matches what’s on your site.
- If you added the code to a specific page rather than a site-wide location (like the theme footer or site settings), it’ll only show on that page. To make it appear everywhere, add it to your site’s footer template or site-wide code injection area instead.
- The widget typically floats in the bottom-right corner. If another element on your site (like a cookie banner, back-to-top button, or another chat widget) overlaps with it, you may need to adjust the CSS of the conflicting element to make room.
- Make sure you don’t have multiple chat widgets installed from different services — they’ll fight for the same screen space.
- If you added the code directly to a theme file (like
footer.phpin WordPress), theme updates can overwrite your changes. To prevent this, use a child theme or a plugin like WPCode that keeps your custom code separate from the theme.
Quick Reference: Where to Paste the Code
| Platform | Where to Add the Script |
|---|---|
| WordPress | Appearance → Theme File Editor → footer.php (before </body>) or use WPCode plugin → Footer |
| Shopify | Online Store → Themes → Edit Code → theme.liquid (before </body>) |
| Wix | Settings → Custom Code → Body - end → All Pages |
| Squarespace | Settings → Advanced → Code Injection → Footer |
| Webflow | Project Settings → Custom Code → Footer Code |
| GoDaddy | Settings → Site-wide Code → Footer |
| Weebly | Settings → SEO → Footer Code |
| Framer | Site Settings → Custom Code → End of body |
| Google Sites | Not supported (no custom JavaScript) |
| HTML / Custom | Edit your HTML file → paste before </body> |
| React / Next.js / SPAs | Main HTML file (e.g., index.html, _document.js) → before </body> |
| Google Tag Manager | Tags → New → Custom HTML → All Pages trigger |
