Skip to content

Instantly share code, notes, and snippets.

@bani
Created July 20, 2014 01:27
Show Gist options
  • Save bani/ea7a4c77d57b25d6f8e4 to your computer and use it in GitHub Desktop.
Save bani/ea7a4c77d57b25d6f8e4 to your computer and use it in GitHub Desktop.

Revisions

  1. bani created this gist Jul 20, 2014.
    9 changes: 9 additions & 0 deletions ga-ec-impressions.liquid
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <script type="text/javascript">
    ga('ec:addImpression', {
    'id': '{{ product.id }}',
    'name': '{{product.title}}',
    'category': '{{product.type}}',
    'brand': '{{product.vendor}}',
    'list': '{{collection.title}}'
    });
    </script>