Last active
August 29, 2015 14:04
-
-
Save bani/4e3fd2d4b462a8499c89 to your computer and use it in GitHub Desktop.
Revisions
-
bani revised this gist
Jul 20, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ga('ec:addProduct', { 'category': '{{line_item.product.type}}', 'brand': '{{line_item.vendor}}', 'variant': '{{line_item.variant.option1}} {{line_item.variant.option2}} {{line_item.variant.option3}}', 'price': '{{line_item.price | money_without_currency}}', 'quantity': {{line_item.quantity}} }); {% endfor %} -
bani revised this gist
Jul 20, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,9 +12,9 @@ ga('ec:addProduct', { {% endfor %} ga('ec:setAction', 'purchase', { 'id': '{{order.order_number}}', 'revenue': '{{order.total_price | money_without_currency}}', 'tax': '{{order.tax_price | money_without_currency}}', 'shipping': '{{order.shipping_price | money_without_currency}}', 'coupon': '{% for discount in order.discounts %}{{discount.code}}{% endfor %}' }); </script> -
bani revised this gist
Jul 20, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ {% for line_item in order.line_items %} ga('ec:addProduct', { 'id': '{{line_item.id}}', 'name': '{{line_item.product.title}}', 'category': '{{line_item.product.type}}', 'brand': '{{line_item.vendor}}', 'variant': '{{line_item.variant.option1}} {{line_item.variant.option2}} {{line_item.variant.option3}}', -
bani renamed this gist
Jul 20, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ <script type="text/javascript"> {% for line_item in order.line_items %} ga('ec:addProduct', { 'id': '{{line_item.id}}', @@ -15,4 +16,5 @@ ga('ec:setAction', 'purchase', { 'tax': '{{order.tax_price}}', 'shipping': '{{order.shipping_price}}', 'coupon': '{% for discount in order.discounts %}{{discount.code}}{% endfor %}' }); </script> -
bani revised this gist
Jul 20, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,5 +14,5 @@ ga('ec:setAction', 'purchase', { 'revenue': '{{order.total_price}}', 'tax': '{{order.tax_price}}', 'shipping': '{{order.shipping_price}}', 'coupon': '{% for discount in order.discounts %}{{discount.code}}{% endfor %}' }); -
bani revised this gist
Jul 20, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ ga('ec:addProduct', { 'id': '{{line_item.id}}', 'name': '{{line_item.title}}', 'category': '{{line_item.product.type}}', 'brand': '{{line_item.vendor}}', 'variant': '{{line_item.variant.option1}} {{line_item.variant.option2}} {{line_item.variant.option3}}', 'price': '{{line_item.price}}', 'quantity': {{line_item.quantity}} }); @@ -14,5 +14,5 @@ ga('ec:setAction', 'purchase', { 'revenue': '{{order.total_price}}', 'tax': '{{order.tax_price}}', 'shipping': '{{order.shipping_price}}', 'coupon': '{% for discount in order.discounts %}{{discount.code}} {% endfor %}' }); -
bani renamed this gist
Jul 20, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bani created this gist
Jul 20, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ {% for line_item in order.line_items %} ga('ec:addProduct', { 'id': '{{line_item.id}}', 'name': '{{line_item.title}}', 'category': 'Apparel', 'brand': '{{line_item.vendor}}', 'variant': '{{line_item.variant.option1}}/{{line_item.variant.option2}}', 'price': '{{line_item.price}}', 'quantity': {{line_item.quantity}} }); {% endfor %} ga('ec:setAction', 'purchase', { 'id': '{{order.order_number}}', 'revenue': '{{order.total_price}}', 'tax': '{{order.tax_price}}', 'shipping': '{{order.shipping_price}}', 'coupon': '{% for discount in order.discounts %}{{discount.code}}{% endfor %}' });