Ecwid by Lightspeed lets you add your own code to every page of your Instant Site, the website that comes with your Ecwid store, and that is all the Yaplet widget needs. You copy one block of code from Yaplet, paste it into Ecwid, and the chat button appears on your site. You don't need an app or a developer.
Adding custom code to Instant Site needs the Venture, Business or Unlimited plan. It isn't part of the Starter plan.
If your Ecwid store is shown inside another website (for example WordPress, Wix or your own site), install Yaplet on that website instead, with its own guide. The steps below are for Instant Site.
1. Copy your Yaplet code
In the Yaplet dashboard's left menu, go to Brand → (your brand) → Chat widget → Install. If the tab asks where your website runs, choose Other website. Copy the code with the copy button on the code block.
If the code you copied starts with !function (Yaplet, it has no <script> tags around it yet. Ecwid places what you enter at the end of each page, so you add the tags in step 3 to make the browser run it as a script.
2. Open your Instant Site settings
In your Ecwid admin, go to Website (or Overview → Manage Instant Site). Scroll down to the Advanced website settings section.
3. Add the Yaplet code
- Under Custom JavaScript code, click Add Code.
- In the field, paste the Yaplet code. The code must start with a
<script>line and end with a</script>line. If what you copied starts with!function (Yapletinstead, type<script>on a new line before it and</script>on a new line after it. - Save the changes.
4. Check your site
Open your Instant Site in a new browser tab and reload the page. The Yaplet chat button appears in the bottom-right corner. Click it to check that the chat opens.
For a full checklist, see Verify your installation.
If the chat doesn't appear
- You can't add custom code. Your store is on the Starter plan. Custom code needs Venture, Business or Unlimited.
- The code shows up as text at the bottom of your pages. The
<script>tags are missing. Edit the code, type<script>on a new line before it and</script>on a new line after it, and save. - Your store sits inside another website. Code added in Ecwid only runs on Instant Site. Install Yaplet on the website that shows your store.
- Your browser shows an old copy of the page. Reload the page, or open it in a private browser window.
What's next
To see what the code does and where your widget ID is, read Install Yaplet.