Created
July 20, 2014 01:27
-
-
Save bani/ea7a4c77d57b25d6f8e4 to your computer and use it in GitHub Desktop.
Add inside {% for product in collection.products %} in collection.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: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