Comment on page
Shopify
Integrate the CustomerGlu SDK on your Shopify Store with a few clicks...
- 1.Log in to your Shopify Store Admin Panel

2. Select Online Store->Themes

3. Select Actions->Edit Code

4. In the
theme.liquid
file, paste the code snippet given below, just before the </body>
tag⚠
{% comment %}__GLU__CODE__START{% endcomment %}
{% if customer %}
<script type="text/javascript">
window.__GLU__userId = "{{ customer.id }}";
</script>
{% endif %}
<script type="text/javascript">
window.__GLU__writeKey = "<YOUR API KEY>";
</script>
<script type="text/javascript" src="https://assets.customerglu.com/scripts/sdk/v4.5/shopify.js"></script>
{% comment %}__GLU__CODE__END{% endcomment %}

5. Save the file

6. Viola! You're all set!
Here's a video walkthrough of the process:
Last modified 8mo ago