{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_body_script %}
{{ parent() }}
{% block shop_studio_hotjar_cloud_base_body_script %}
{% set shopStudioHotjarCloud = config('ShopStudioHotjarCloud.config') %}
{% if shopStudioHotjarCloud is not empty and shopStudioHotjarCloud.hotjarId|trim is not empty %}
{% set shopStudioHotjarCloudConfig = {
hotjarId: shopStudioHotjarCloud.hotjarId|trim
} %}
{% block shop_studio_hotjar_cloud_base_body_script_tag %}
<script data-shop-studio-hotjar-cloud="true"
data-shop-studio-hotjar-cloud-options="{{ shopStudioHotjarCloudConfig|json_encode }}"></script>
{% endblock %}
{% endif %}
{% endblock %}
{% endblock %}