Sha256: d9d2a47eca8f7a665ae6efe4b5902b02349be5027dda62c146b21d7e83e99a5a

Contents?: true

Size: 1007 Bytes

Versions: 9

Compression:

Stored size: 1007 Bytes

Contents

<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  var pageTracker = _gat._getTracker("<%= Spree::Config[:google_analytics_id] %>");
  pageTracker._initData();
  pageTracker._trackPageview();
  pageTracker._addTrans(
  "<%= order.number %>",		//Order Number
  "",		//Affiliation
  "<%= order.total %>",		//Order total
  "<%= order.tax_amount %>",		//Tax Amount
  "<%= order.ship_amount %>",		//Ship Amount
  "",		//City
  "",		//State
  ""		//Country
  );
  <% order.line_items.each do |line_item| -%>
  pageTracker._addItem("<%= order.number %>", "<%= line_item.variant.sku %>", "<%= line_item.variant.product.name %>", 
    "" /*Product Category*/, "<%= line_item.price %>", "<%= line_item.quantity %>");
  <% end -%>
  pageTracker._trackTrans();
</script>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/views/orders/_google_order.html.erb
spree-0.8.4 app/views/orders/_google_order.html.erb
spree-0.8.5 app/views/orders/_google_order.html.erb
spree-0.7.0 app/views/orders/_google_order.html.erb
spree-0.7.1 app/views/orders/_google_order.html.erb
spree-0.8.0 app/views/orders/_google_order.html.erb
spree-0.8.1 app/views/orders/_google_order.html.erb
spree-0.8.2 app/views/orders/_google_order.html.erb
spree-0.8.3 app/views/orders/_google_order.html.erb