Upgates has a menu for custom codes that run on every page of your shop, and Upgates' own help names chats as one of the things it is for. You copy one block of code from Yaplet, paste it into Upgates, and the chat button appears on your shop.
This guide follows the Czech Upgates admin, as Upgates' own help shows it. Menu and field names are written exactly as Upgates shows them, with an English translation in brackets.
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.
Upgates' code fields expect HTML, so the code must sit between a <script> line and a </script> line. With Other website chosen, the code already has these lines. If the tab didn't ask, the code is plain JavaScript that starts with !function (Yaplet, and you add the lines in step 3.
2. Open the custom codes
Log in to your Upgates admin and go to Doplňky → Vlastní konverzní kódy (Add-ons → Custom conversion codes). Find the section Kódy umístěné na všech stránkách (Codes placed on all pages).
3. Paste the code
- Find the field Kód je umístěn před tagem </body> (Code placed before the </body> tag). The field for the page head works too.
- At the end of the field, start a new line and paste the code you copied.
- Check the start: the code must begin with a
<script>line. If what you copied starts with!function (Yapletinstead, type<script>on a new line before it. - Check the end: the code must finish with a
</script>line. If what you copied started with!function (Yaplet, type</script>on a new line after it. - Save your changes.
If the field already holds other code, don't delete it: add the Yaplet code after it.
4. Check your shop
Open your shop 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
- The code shows up as text on your pages. The
<script>tags are missing. Add them as in step 3 and save. - You pasted the code under the codes for the order-completed page. Those run only after an order. Move the code to the section Kódy umístěné na všech stránkách.
- The chat is missing in one language version of your shop. Upgates marks each code field with a language code, such as CZ. Check that the Yaplet code is in the field for that language too.
- Your browser shows an old copy of the page. Reload the page, or open your shop in a private window.
What's next
To see what the code does and where your widget ID is, read Install Yaplet.