Skip to content

Instantly share code, notes, and snippets.

@bani
Last active Aug 29, 2015
Embed
What would you like to do?
Add to product.liquid
<script type="text/javascript">
ga('ec:addProduct', {
'id': '{{ product.id }}',
'name': '{{product.title}}',
'category': '{{product.type}}',
'brand': '{{product.vendor}}'
});
ga('ec:setAction', 'detail');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment