Shopify
Integrate the CustomerGlu Web SDK on your Shopify Store with a few clicks...
  1. 1.
    Login to your Shopify Store Admin Panel
2. Select Online Store->Themes
3. Select Actions->Edit Code
4. In theme.liquid file, paste the code snippet given below, just before the
</body></body>
tag
1
{% comment %}__GLU__CODE__START{% endcomment %}
2
{% if customer %}
3
<script type="text/javascript">
4
window.__GLU__userId = "{{ customer.id }}";
5
</script>
6
{% endif %}
7
<script type="text/javascript">
8
window.__GLU__writeKey = "3d20848e4e9cb99a2ed781d83ba09ecff23128c6";
9
</script>
10
<script type="text/javascript" src="https://assets.customerglu.com/scripts/sdk/v4.1/shopify.js"></script>
11
{% comment %}__GLU__CODE__END{% endcomment %}
Copied!
5. Save the file
Last modified 2mo ago
Copy link