uuchats
← Guide

Install the chat widget

Add one script tag to your site. Covers WordPress, Shopify, Wix, Squarespace, Webflow and plain HTML.

The Install tab with the script tag to copy
Screenshot of the uchats dashboard

Copy your script tag

Open your assistant, go to Install and click Copy. Paste the tag just before the closing </body> tag on every page, or into your site builder's footer or custom-code setting.

Platform guides

Step-by-step instructions are on the Integrations pages for WordPress, Shopify, Wix, Squarespace, Webflow and plain HTML.

Options

Add attributes to the script tag to change behaviour on a page: data-open="true" opens the chat on load, data-position="left" moves it, data-color="#0ea5e9" changes the colour, data-theme="dark" forces dark mode and data-lang="fr" sets the interface language.

Control the widget from your own code with window.uchats.open(), window.uchats.close(), window.uchats.toggle() and window.uchats.send("Hello").

Allowed domains

By default your widget only runs on your website's domain. Add more domains under Settings → Allowed domains, or clear the list to allow any site.

Step by step, per platform

WordPress

  1. In uchats, open your assistant and go to Install. Click Copy to copy your script tag.
  2. In WordPress, install a header/footer code plugin such as WPCode (Plugins → Add New → search “WPCode”).
  3. Go to Code Snippets → Header & Footer and paste the script tag into the Footer box.
  4. Click Save Changes and open your site in a new tab. The chat button appears in the corner.

Tip: Using a block theme? You can also paste the tag into Appearance → Editor → Templates → a Custom HTML block in the footer template part.

Shopify

  1. In uchats, open Install and copy your script tag.
  2. In Shopify admin, go to Online Store → Themes. Next to your live theme click ⋯ → Edit code.
  3. Open layout/theme.liquid and paste the script tag just above the closing </body> tag.
  4. Click Save, then preview your store to see the chat button.

Tip: Add your shipping, returns and FAQ pages as sources so the assistant can answer the questions that stop people checking out.

Wix

  1. In uchats, open Install and copy your script tag.
  2. In your Wix dashboard go to Settings → Custom Code (under Advanced).
  3. Click + Add Custom Code, paste the tag, name it “uchats”, choose All pages, and place it in Body - end.
  4. Click Apply and publish your site.

Tip: Custom code requires a Wix premium plan with a connected domain.

Squarespace

  1. In uchats, open Install and copy your script tag.
  2. In Squarespace, go to Settings → Advanced → Code Injection (Website → Pages → Custom code in newer versions).
  3. Paste the tag into the Footer field and click Save.
  4. Visit your live site to see the chat button.

Tip: Code Injection is available on Squarespace Business plans and above.

HTML & any website

  1. In uchats, open Install and copy your script tag.
  2. Paste it just before the closing </body> tag in your page template so it loads on every page.
  3. Deploy or publish your site. The widget loads asynchronously and won't slow your page down.

Tip: Single-page apps only need the tag once. Control it from your code with window.uchats.open(), .close() and .send("text").

Webflow

  1. In uchats, open Install and copy your script tag.
  2. In Webflow, open your project's Site settings → Custom code.
  3. Paste the tag into the Footer code box and click Save changes.
  4. Publish your site and open it to see the chat button.

Tip: Custom code requires a paid Webflow site plan. Make sure your CMS collection pages are in your sitemap so uchats can find them.