Sha256: 3df04f3f602b22cba0b14706e2a3815750e1db5fbbc7b1412d207a7b24286609

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

<%# more info: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce %>
<script>
  if (typeof ga !== 'undefined') {
    ga('require', 'ec');
    ga('set', '&cu', '<%= current_currency %>');

    <%= render partial: 'spree/shared/google_add_items', locals: { order: @order } %>

    // Add the step number and additional info about the checkout to the action.
    ga('ec:setAction','checkout', {
      'step': <%= (@order.checkout_steps.index(@order.state) + 1) %>
    });
  }
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_analytics_trackers-1.1.0 app/views/spree/shared/_google_checkout.html.erb
spree_analytics_trackers-1.0.1 app/views/spree/shared/_google_checkout.html.erb