Sha256: 0a2d0029be18be7a4d906f2ec3680a37f0385194b4dcc144d4b0bcf90ff4d66f
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
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_charges.sum(:amount).to_s %>", //Tax Amount "<%= order.shipping_charges.sum(:amount).to_s %>", //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
7 entries across 7 versions & 3 rubygems