Sha256: 9f88950e3a3f21caea0f9d5debfc5272bb235dd2511a1251bc36f1c660fae7d5
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
<script> if (typeof analytics !== 'undefined') { analytics.track('Cart Viewed', { cart_id: '<%= @order.number %>', products: [ <% @order.line_items.each_with_index do |line_item, index| %> <%= product_for_segment(line_item, position: index+1, quantity: line_item.quantity) %>, <% end %> ] }); analytics.page('Cart Viewed', { cart_id: '<%= @order.number %>', products: [ <% @order.line_items.each_with_index do |line_item, index| %> <%= product_for_segment(line_item, position: index+1, quantity: line_item.quantity) %>, <% end %> ] }); } </script>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_analytics_trackers-1.1.0 | app/views/spree/shared/trackers/segment/_cart_viewed.js.erb |
spree_analytics_trackers-1.0.1 | app/views/spree/shared/trackers/segment/_cart_viewed.js.erb |