Skip to content
Platforms

FastCentrik

Where to paste the Otto chat code in FastCentrik, why the code has a different form without a script tag and where to find the product feed.

On this page

FastCentrik is a Czech platform for renting an online store. You paste the chat code into the template's custom JavaScript, which takes about 5 minutes. That field only takes JavaScript, so the FastCentrik tile in the panel gives you the code without a <script> tag.

What you need

  • An Otto account. You find the chat code in the panel under Overview, on the Installation & integrations card, on the FastCentrik tile. It is under the More platforms tile, and you can also search for it.
  • Access to the Šablony (Templates) section of the FastCentrik admin.

Chat code

The field in FastCentrik only takes JavaScript, so the usual line with a <script> tag would not work there. That is why the FastCentrik tile gives you the code without it. Click Copy code:

(function(){var s=document.createElement('script');s.src='https://ottoai.sk/widget.js';s.async=true;s.setAttribute('data-otto-key','pk_vas_kluc');(document.head||document.documentElement).appendChild(s);})();
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

  1. In the admin open Šablony in the left menu and click Editovat šablonu (Edit template).
  2. Open the third tab, Vlastní JavaScript (Custom JavaScript).
  3. Paste the code from the FastCentrik tile without changes. If the field already holds other code, put it on a new line after it.
  4. Save the changes.
Do not paste the usual line with a <script> tag into Vlastní JavaScript. The field only takes JavaScript and the chat would not start.

You can also follow the official FastCentrik 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.

Product catalogue

You find the feed addresses in Nastavení (Settings), Nastavení nástrojů (Tool settings), on the XML feedy (XML feeds) tab. Copy the feed for Heureka or for Google. FastCentrik refreshes the Heureka feed every 4 hours.

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 pasted a line with a script tag and the chat does not show

The Vlastní JavaScript field only takes JavaScript. Delete the line and paste the code from the FastCentrik tile, which has no <script> tag.

The chat disappeared after a template change

Check that the code is on the Vlastní JavaScript tab of the new template too, and if it is not, paste it there again.

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 Šablony, Editovat šablonu, on the Vlastní JavaScript tab, delete the Otto code and save the changes.