Sha256: eb964fa9a6b6f8514b1c6c5a2e5cc8a22ad4857bd73b52ffbdb98ab1ebbca003
Contents?: true
Size: 689 Bytes
Versions: 43
Compression:
Stored size: 689 Bytes
Contents
var _gaq = _gaq || []; _gaq.push(['_addTrans', '<%= @order.id %>', '<%= store_name %>', '<%= @order.total %>', '<%= @order.tax_charge %>', '<%= @order.shipments.first.total %>', '<%= @order.billing_address.city %>', '<%= @order.billing_address.state_display %>', '<%= @order.billing_address.country.name %>' ]); <% @order.line_items.each do |line_item| -%> _gaq.push(['_addItem', '<%= @order.id %>', '<%= line_item.variant.try(:sku) %>', '<%= line_item.description %>', '', // category or variation '<%= line_item.price %>', //unit price '<%= line_item.quantity %>' ]); <% end -%> _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
Version data entries
43 entries across 43 versions & 1 rubygems