One line of code. Any website.
Your snippet is on the Install tab of your dashboard. Paste it once, and every change you publish later shows up automatically.
How to add Chatmello to your website
- Create a free account, design your pet and click Publish.
- Copy your snippet from the Publish and install step. It's one
<script>tag. - Paste it once on your site, just before
</body>or in your platform's footer code setting. Keep your chat tool's own code too. - Open your website. The pet appears in the corner and finds your chat tool by itself; the dashboard shows when it's live.
Pick your platform below for exact clicks. You only paste the snippet once: every change you publish later shows up automatically.
Your snippet looks like this
<script src="https://www.chatmello.com/chatmello.js" data-site="YOUR-SITE-ID" async></script>
Keep your chat tool's own code on the page too. Chatmello replaces its button, not the chat.
Any website (HTML)
Works on any site where you can edit the HTML.
- Copy your snippet.
- Paste it just before the closing </body> tag on every page, or once in your shared footer or layout template.
- Publish your site and open it in a browser. The pet appears in the corner.
WordPress
Install the Chatmello plugin and connect in one click. No code to paste.
Download the WordPress plugin- Download the Chatmello plugin.
- In WordPress, go to Plugins → Add New → Upload Plugin, choose the file, click Install Now, then Activate.
- Go to Settings → Chatmello, pick a pet and click Connect Chatmello.
- Log in to Chatmello, choose your site and click Connect. You're back in WordPress with your pet live.
Prefer code? Install a header and footer plugin such as WPCode and paste your snippet into its Footer box.
Shopify
Add it to your theme layout so it loads on every page of your store.
- In Shopify admin, go to Online Store → Themes.
- Next to your live theme, click ⋯ → Edit code.
- Open layout/theme.liquid, paste your snippet just above </body>, and click Save.
Webflow
Site-wide custom code goes in the footer section.
- Open Site settings → Custom code.
- Paste your snippet into Footer code and click Save.
- Publish your site. Custom code only runs on the published site, not in the Designer.
Wix
Wix custom code needs a connected domain and a premium plan.
- Go to Settings → Custom code → + Add custom code.
- Paste your snippet, name it Chatmello, choose All pages and Load code on each new page.
- Set Place code in to Body - end, then click Apply.
Squarespace
Code injection is available on Business plans and above.
- Go to Settings → Advanced → Code injection.
- Paste your snippet into Footer and click Save.
React / Next.js
Load it once in your root layout with Next.js's Script component.
- Open your root layout (app/layout.tsx), or _app.tsx with the Pages Router.
- Add the Script tag from this guide inside <body>.
- Deploy. The pet appears on every page.
import Script from "next/script";
// inside <body>, after {children}
<Script src="https://www.chatmello.com/chatmello.js" data-site="YOUR-SITE-ID" strategy="afterInteractive" />Google Tag Manager
If your site already uses Tag Manager, no code changes are needed.
- In Tag Manager, create a new tag of type Custom HTML.
- Paste your snippet and set the trigger to All Pages (or Initialization - All Pages).
- Click Submit to publish the container.
JavaScript API
Once the snippet has loaded, window.Chatmello lets your own code control the pet.
await Chatmello.ready; // resolves when the pet is shown (or null) Chatmello.open(); // open the chat, as if the pet was clicked Chatmello.destroy(); // remove the pet and bring back your chat tool's button
Troubleshooting
The pet doesn't appear
Check that you clicked Publish, that the pet is switched on in Settings, and that the snippet is on the page you're viewing. Changes can take up to a minute to show.
I see both the pet and my chat tool's button
Open the Chat tool page in your dashboard: it shows what the pet found on your site. Chatmello finds the 17 built-in chat tools by itself; another tool's button can't be taken over when it sits inside that tool's own frame. You can also pick your chat tool there by hand and publish.
The pet showed up, then disappeared
Chatmello removes itself when your chat tool doesn't load or doesn't open, so visitors keep the original button. Make sure your chat tool's own snippet is on the same pages.
Nothing shows on phones
Check Settings → Hide the pet on phones.
My site has a Content Security Policy
Allow the Chatmello domain in script-src and connect-src, and in img-src if your pet uses your own picture.