How to Embed Chateasily on Your Website
Add a fully functional live chat room to any website in under 2 minutes. No coding experience required. This guide walks you through every step — from creating your room to pasting the embed code.
What You’ll Get
When you embed Chateasily, your website visitors get a real-time chat experience — group messages, voice notes, emoji reactions, and guest access — all running inside a small widget on your page. You choose how it looks and where it appears.
Bubble Mode
A floating chat button in the corner of your site. Visitors click to expand.
Inline Mode
Chat panel embedded directly into your page content. Always visible.
Sara: Hey everyone 👋
Before You Start
You’ll need two things:
- A Chateasily account — Sign up for free (takes 10 seconds)
- A chat room — Create one from the chat interface, or use an existing room
Tip: You don’t need a Chateasily account to use the embedded chat — your website visitors can join as guests. You only need an account to create the room and get the embed code.
Step 1: Create a Chat Room
Go to Chateasily and log in
Visit chat.chateasily.com and sign in with your account. If you don’t have one, register — it only takes a username, email, and password.
Click “All Rooms” to open the Room Browser
In the left panel, click the “All Rooms” button. This opens the room browser where you can see existing rooms or create a new one.
Create a new room
Click “Create Room” and fill in the details:
- Room Name — Choose something relevant (e.g., “support”, “community”, “gaming-lounge”)
- Public / Private — Public rooms appear in the room browser. Private rooms require a password.
- Topic — Optional description shown at the top of the room
Step 2: Enable Embedding
Open Room Settings
Inside your room, click the settings icon (gear icon) in the navigation bar. This opens the Room Settings modal.
Go to the “Embed” tab
In the Room Settings modal, switch to the “Embed” tab. You’ll see a toggle to enable embedding and the embed code snippets.
Enable “Embeddable” and copy the code
Toggle the Embeddable switch to ON. The embed code will appear below. Choose either Bubble or Inline mode, then click Copy.
Allowed Domains: By default, your room can be embedded on any website. To restrict it to specific domains, enter them in the “Allowed Domains” field (one per line). Leave empty to allow all.
Step 3: Add the Code to Your Website
Bubble Mode (Floating Chat Button)
Paste this single script tag anywhere in your website’s HTML — ideally just before the closing </body> tag:
HTML<script
src="https://chat.chateasily.com/embed-loader.js"
data-room-id="YOUR_ROOM_ID"
data-theme="dark"
data-position="bottom-right"
></script>
This adds a chat bubble to the bottom-right corner of your page. When visitors click it, the chat window expands.
Inline Mode (Embedded Panel)
To embed the chat directly in your page content, add a container div and the script tag together:
HTML<div id="chateasily-container"
style="width:100%; height:500px;"></div>
<script
src="https://chat.chateasily.com/embed-loader.js?room=YOUR_ROOM_ID&theme=dark"
data-room-id="YOUR_ROOM_ID"
data-mode="inline"
data-theme="dark"
></script>
The chat will render at full width inside the container. Adjust the height value to fit your layout.
Configuration Options
All configuration is done through data-* attributes on the script tag. Here’s every option available:
| Attribute | Values | Description |
|---|---|---|
data-room-id |
Your room ID | Required. The unique identifier for your chat room. Found in Room Settings > Embed tab. |
data-theme |
dark or light |
Color theme. Dark is the default and recommended for most sites. |
data-position |
bottom-right, bottom-left, top-right, top-left |
Bubble position on screen. Only applies to bubble mode. |
data-mode |
bubble or inline |
Display mode. Bubble shows a floating button; inline renders in a container. |
data-open |
true or false |
Whether the bubble chat starts expanded. Default: false. |
Platform-Specific Instructions
WordPress
Two easy methods:
- Custom HTML Widget: Go to Appearance > Widgets, add a Custom HTML widget to your footer area, and paste the embed code.
- Theme Footer: Go to Appearance > Theme File Editor, open
footer.php, and paste the script tag just before</body>.
Tip for WordPress: If your theme or page builder strips data-* attributes, use the URL parameter method instead: add ?room=YOUR_ROOM_ID&theme=dark to the script src URL. This works with Elementor, Divi, and all major builders.
Shopify
- Go to Online Store > Themes > Edit Code
- Open
theme.liquid - Paste the embed code just before
</body> - Click Save
Squarespace
- Go to Settings > Advanced > Code Injection
- Paste the embed code in the Footer section
- Click Save
Wix
- Go to Settings > Custom Code
- Click Add Custom Code
- Paste the embed code, set placement to Body – End
- Apply to All Pages (or choose specific pages)
Plain HTML
Simply paste the script tag in your HTML file, just before </body>:
HTML<!-- Your page content above -->
<script
src="https://chat.chateasily.com/embed-loader.js"
data-room-id="YOUR_ROOM_ID"
data-theme="dark"
></script>
</body>
</html>
Advanced: Using JavaScript Configuration
For more control, you can configure the widget using a JavaScript object before the embed script loads. This takes priority over data-* attributes:
JavaScript<script>
window.__chateasilyConfig = {
roomId: 'YOUR_ROOM_ID',
theme: 'dark',
position: 'bottom-right',
open: false
};
</script>
<script src="https://chat.chateasily.com/embed-loader.js"></script>
Config priority order: window.__chateasilyConfig (highest) > URL query parameters > data-* attributes (lowest). Use whichever method works best with your platform.
Customizing the Height (Inline Mode)
For inline embeds, the height of the chat panel is controlled by the container element. Set it to whatever fits your design:
HTML<!-- Short panel (good for sidebars) -->
<div id="chateasily-container" style="height: 400px;"></div>
<!-- Full-height panel (good for dedicated chat pages) -->
<div id="chateasily-container" style="height: calc(100vh - 80px);"></div>
The width is always 100% of the container. To control the width, wrap it in a parent element with a fixed or max-width.
What Your Visitors See
When someone visits your page with the embed widget:
- They see the chat widget — a floating bubble (bubble mode) or embedded panel (inline mode)
- They choose how to join — three options: enter as a Guest (just a username), Log in to an existing account, or Register a new account
- They start chatting — full access to messages, voice notes, emoji reactions, and private messaging with other users in the room
Guest access is frictionless: Visitors only need to type a username to start chatting. No email, no password, no verification. This keeps the barrier to entry as low as possible.
Room Moderation for Embedded Rooms
As the room owner, you have full moderation control — even when the room is embedded on another website:
- /ban username — Ban a user by IP (persists even after they leave)
- /mute username — Prevent a user from sending messages
- /kick username — Remove a user from the room immediately
- /voice username — Grant voice to a user in a muted room
- /topic New topic here — Change the room’s topic
- /banlist — View all currently banned users
You can also assign moderator and admin roles to trusted users so they can help manage the room when you’re not around.
Troubleshooting
The widget doesn’t appear
- Make sure Embeddable is toggled ON in Room Settings > Embed
- Check that the
data-room-idmatches your actual room ID - Open your browser’s developer console (F12) and look for errors
- If using Allowed Domains, make sure your website’s domain is in the list
The data-* attributes are being stripped
Some page builders (especially WordPress Elementor and Divi) strip data-* attributes from script tags. Use the URL parameter method instead:
HTML<!-- URL params survive attribute stripping -->
<script
src="https://chat.chateasily.com/embed-loader.js?room=YOUR_ROOM_ID&theme=dark&position=bottom-right"
></script>
No sound notifications in the embed
Browsers require user interaction before playing audio in iframes. The embed uses allow="autoplay", but some browsers may still block audio until the user interacts with the chat widget. This is expected browser behavior.
Chat appears but users can’t join
- Verify the room is set to Public (or provide the password for private rooms)
- Check that guests are allowed in Room Settings
- Make sure your backend at
chat.chateasily.comis running and accessible
Ready to Embed?
Create a room, enable embedding, and add live chat to your website in under 2 minutes.
