Last active
August 29, 2015 14:04
-
-
Save bani/6bfc5a9f0f27e2915b30 to your computer and use it in GitHub Desktop.
Add to product.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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