Integrate Bytechat on your Shopify store
Do you have a store via Shopify? You can easily add Bytechat by placing a small piece of code in your theme. This makes the chatbot immediately available on all pages of your store.
Step 1: Edit theme
- Log in to your Shopify admin panel.
- In the left menu, go to Online Store and click Themes.
- Click the three dots button (...) next to your current theme.
- Select the option Edit code from the menu.
Step 2: Find the correct file
You're now in Shopify's code editor. We need to modify a file that loads on every page.
- Look in the left sidebar under the Layout heading.
- Click on the file theme.liquid to open it.
Step 3: Add script
Now we'll add the Bytechat code to this file.
- Open your Bytechat dashboard and go to the Account tab.
- Here you'll find your unique installation code. Copy the complete script.
- Go back to Shopify and scroll all the way down in the
theme.liquidfile. - Look for the line with
</body>(this is usually near the bottom). - Paste the copied script just above the
</body>tag.
<script
src="https://app.bytechat.ai/loader.js"
data-customer-id="[your-customer-id]"
defer>
</script>
Note: In your dashboard, [your-customer-id] is already automatically filled in for you.
Note: Make sure you copy the complete code, including the opening and closing tags.
Step 4: Save and test
- Click the Save button in the top right.
- Go to your store (the front end that customers see) and refresh the page.
- If everything is correct, the Bytechat icon should now appear in the bottom right corner.
Congratulations! You've successfully integrated Bytechat on your Shopify store.
Next: Wix integration