Skip to content

Instantly share code, notes, and snippets.

@juancarlosqr
Last active June 28, 2023 12:36
Show Gist options
  • Save juancarlosqr/bdec68bab107c8030ddda856524ba19f to your computer and use it in GitHub Desktop.
Save juancarlosqr/bdec68bab107c8030ddda856524ba19f to your computer and use it in GitHub Desktop.
Shopify Liquid template to install the Gorgias Chat Widget in JSON templates
<!-- Gorgias Chat Widget Start -->
<script
defer
id="gorgias-chat-widget-install-v3"
src="https://config.gorgias.chat/bundle-loader/{{ section.settings.gorgias_chat_app_key }}"
></script>
<!-- Gorgias Chat Widget End -->
{% schema %}
{
"name": "Gorgias Chat Widget",
"tag": "section",
"settings": [
{
"type": "text",
"id": "gorgias_chat_app_key",
"label": "App ID",
"info": "Get your App ID from the Manual installation section in the Installation tab of your Chat settings"
}
],
"presets": [
{
"name": "Gorgias Chat Widget"
}
]
}
{% endschema %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment