Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add inside {% for product in collection.products %} in collection.liquid
<script type="text/javascript">
ga('ec:addImpression', {
'id': '{{ product.id }}',
'name': '{{product.title}}',
'category': '{{product.type}}',
'brand': '{{product.vendor}}',
'list': '{{collection.title}}'
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment