Sean Schofield
-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------
> --
> You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree...@googlegroups.com.
> To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
>
>
I'm pretty sure there would have been no reason to take this out of
Spree edge, so I'm assuming it's still there.
~Steph
<% if tracker = Tracker.current %>
<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("<%= tracker.analytics_id %>");
pageTracker._initData();
/* Standard analytics or "virtual page" (useful for goal tracking
and funnel stuff) plus optional E-Commerce conversion */
<% if flash[:analytics] %>
pageTracker._trackPageview("<%=flash[:analytics]%>");
<% else %>
pageTracker._trackPageview();
<% end %>
<% if flash[:commerce_tracking] %>
// report e-commerce transaction information when applicable
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();
<% end %>
</script>
<% end %>
Correct. It's included in edge as well as 0.30.x
Sean Schofield
-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------