See how to install Tidio on your Shopware store.
In this article, you'll learn:
Install Tidio to your Shopware store
This method is for a Shopware 6 storefront with a running custom plugin and access to its files. Ask your Shopware developer to make the template change if you don't manage those files. It is not a code field in the Shopware administration.
First, copy your Tidio installation snippet from Settings > Live Chat > Installation. See Install Tidio on your website for help finding the code:
- In your active custom Shopware plugin, create or open
src/Resources/views/storefront/layout/meta.html.twig. Do not edit Shopware's core template. - Extend
@Storefront/storefront/layout/meta.html.twigand itslayout_head_javascript_hmr_modeblock, as shown below. - Keep
{{ parent() }}inside the block, then paste the complete Tidio script tag you copied immediately after it, before{% endblock %}. Keep the attributes from your Tidio snippet. - Save and deploy the plugin template to your store. Clear the store cache so the updated template is served.
- Open your storefront in a new browser tab and check that the Tidio widget appears. Send a test message and check that it arrives in your Tidio Inbox.
{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_javascript_hmr_mode %}
{{ parent() }}
{% endblock %}
Paste your Tidio script after {{ parent() }} in this template. Do not remove {{ parent() }}, because Shopware needs it to load its own storefront JavaScript. You do not need to upload the Tidio script as a local asset.
These steps follow Shopware's official guide to adding JavaScript as a script tag. If the widget does not appear, check that the custom plugin is active and that the updated template is deployed before adding another copy of the snippet.
