Code in spree/shared/_google_purchase.html.erb is executed, but it doesn't get to google analytics.
ga('send', 'pageview'); // Send transaction data with initial pageview. should be called after rendering this partial.
https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#transaction
Looks like there was supposed to be content_for :google_analytics do, but it is missing.