Wix Installation
Install the nuhello chatbot on your Wix website.
Method 1: Custom Code (Recommended)
Step 1: Access Site Settings
- Log in to your Wix dashboard
- Select your site
- Click Settings in the left sidebar
Step 2: Add Custom Code
- Scroll down and click Custom Code under "Advanced"
- Click + Add Custom Code
Step 3: Configure the Code
- Paste your code:
<script>
window.nuhelloSettings = {
key: "YOUR_PIXEL_KEY",
botId: "YOUR_BOT_ID"
};
(function() {
var s = document.createElement('script');
s.src = 'https://cdn.nuhello.com/widget.js';
s.async = true;
document.head.appendChild(s);
})();
</script>-
Name: nuhello Chatbot
-
Add Code to Pages: All pages
-
Place Code in: Head
-
Click Apply
Step 4: Publish
Click Publish to make the changes live.
Method 2: Wix Editor
If you prefer using the Wix Editor:
Step 1: Open the Editor
- Go to your site's dashboard
- Click Edit Site
Step 2: Add Embed Code
- Click the + (Add) button in the left panel
- Select Embed Code → Embed HTML
- Drag the element to your page (you can hide it later)
- Click Enter Code
Step 3: Paste the Code
<script>
window.nuhelloSettings = {
key: "YOUR_PIXEL_KEY",
botId: "YOUR_BOT_ID"
};
(function() {
var s = document.createElement('script');
s.src = 'https://cdn.nuhello.com/widget.js';
s.async = true;
document.head.appendChild(s);
})();
</script>Step 4: Configure Display
- Select the embed element
- Click Settings
- Enable Show on All Pages
- Position it off-screen or make it very small (1x1 pixel)
Step 5: Publish
Click Publish to make changes live.
Method 3: Wix Velo (for Developers)
If you're using Wix Velo:
Step 1: Enable Developer Mode
- In the Editor, click Dev Mode in the top bar
- Click Turn on Dev Mode
Step 2: Add Code to masterPage.js
- In the code panel, open masterPage.js
- Add this code:
$w.onReady(function () {
// Load nuhello
window.nuhelloSettings = {
key: "YOUR_PIXEL_KEY",
botId: "YOUR_BOT_ID"
};
const script = document.createElement('script');
script.src = 'https://cdn.nuhello.com/widget.js';
script.async = true;
document.head.appendChild(script);
});Adding a Chat Button
Create a custom button that opens the chat:
- Add a Button element to your page
- In the button settings, add an onClick event
- Add this code:
export function chatButton_click(event) {
if (window.openNuhelloWidget) {
window.openNuhelloWidget();
}
}Identifying Members
For Wix sites with Member Login:
import wixUsers from 'wix-users';
$w.onReady(async function () {
let user = wixUsers.currentUser;
let settings = {
key: "YOUR_PIXEL_KEY",
botId: "YOUR_BOT_ID"
};
if (user.loggedIn) {
const userEmail = await user.getEmail();
settings.userId = user.id;
settings.email = userEmail;
}
window.nuhelloSettings = settings;
const script = document.createElement('script');
script.src = 'https://cdn.nuhello.com/widget.js';
script.async = true;
document.head.appendChild(script);
});Troubleshooting
Widget not appearing?
- Make sure you published your site after adding the code
- Check if the code is set to load in the "Head" section
- Clear your browser cache
- Try viewing in incognito mode
Code not saving?
- Check if your Wix plan supports Custom Code (Premium feature)
- Try using the Embed HTML method instead
Script blocked?
Wix may block some external scripts. Ensure:
- The script URL uses HTTPS
- The code is properly formatted