Skip to content
Platforms

Lightspeed

Where to add the Otto chat code in Lightspeed eCom (C-Series and E-Series), where to find a product feed, and what to do if the chat does not show.

On this page

Lightspeed has two online store products: eCom (C-Series) with its own Back Office, and eCom (E-Series), which is linked to Lightspeed Retail POS. In both you paste the chat code into a custom JavaScript field, which takes about 5 minutes.

What you need

  • An Otto account. You find the chat code in the panel under Overview, on the Installation & integrations card, on the Lightspeed tile. It is under the More platforms tile, and you can also search for it.
  • Access to the Back Office (eCom C-Series), or to Retail POS or the eCom admin (E-Series).

Chat code

On the Lightspeed tile, click Copy code. You get one line with your company’s public key:

<script async src="https://ottoai.sk/widget.js" data-otto-key="pk_vas_kluc"></script>
The sample shows pk_vas_kluc instead of a key, the tile gives you the code with your own key. The key is not a password, you do not need to hide it. Add the code once, it covers the whole site.

Adding the code

eCom (C-Series)

  1. In the Back Office, open Settings in the left menu and, in the Website Settings column, click Web Extras.
  2. Click Custom JavaScript and turn it on.
  3. Paste the whole chat code, including the <script> tag, and click Save.

eCom (E-Series) with Retail POS (X-Series)

  1. In Retail POS, open the Online tab, then Webstore (or Website) and click Edit Site.
  2. Scroll to Advanced website settings and click Add Code under Custom JavaScript code.
  3. Paste the chat code and save the changes.
  4. Refresh your store page in the browser.

If you have eCom (E-Series) with Lightspeed Retail (R-Series), open the eCom admin and continue from Advanced website settings.

The chat ties itself to the address where it first shows up. If your store has its own domain, open that first after saving, not the store's technical Lightspeed address.

You can also follow the official Lightspeed help.

Checking it works

  1. Open your website in a new browser window and reload. A chat bubble should pop up in the bottom right.
  2. Send the chat a test question. Otto answers within a few seconds.
  3. In the panel, under Settings, Connections, the Your website row shows the domain the chat runs on.
The code runs on every page of your store. After saving, refresh your store page in the browser.

Product catalogue

In eCom (C-Series), the Google format feed is in Settings, Website Settings, Feeds (Set up GoogleBase), and you copy its address in the Back Office. In eCom (E-Series), you create it in the eCom admin under Other channels, Google shopping with Generate Feed.

Paste the feed address in the panel under Settings, Catalogue, and click Check feed. The panel tells you how many products it found, and Otto keeps the feed up to date on its own. More in Product catalogue.

Troubleshooting

I do not see Custom JavaScript code in E-Series

Custom code may not be part of your plan. Check with Lightspeed or in the Retail POS plan overview.

The code is saved in C-Series but the chat does not show

Check that Custom JavaScript is turned on and the whole code is there, from <script to </script>. Lightspeed recommends checking after saving that all tags are in place.

The chat runs on the technical store address but not on my domain

The chat tied itself to the address where it first showed up and does not move to your domain on its own. Write to us.

Also check

  • Reload the page without cache with Ctrl+F5, or open it in a private window.
  • The code should be on the page only once, a second copy is ignored.
  • A cookie consent bar can block scripts until the visitor agrees. If the chat only shows up after consent, see Cookie consent.
  • If your site sends a Content-Security-Policy header, allow https://ottoai.sk in it, as shown in Content-Security-Policy.
  • In the browser console (F12), look for messages starting with [Otto]. They tell you what the chat is missing.
  • Still nothing? Write to us at podpora@ottoai.sk and include your website address.

Removing the chat

In eCom (C-Series), delete or turn off the code in Web Extras, Custom JavaScript and save. In eCom (E-Series), delete it in Advanced website settings, Custom JavaScript code and save the changes.