Sha256: 42db1099ad6d5a9c3b420db4af87b92278e511ac771a9c765d25eb1e6fec894b

Contents?: true

Size: 1.11 KB

Versions: 18

Compression:

Stored size: 1.11 KB

Contents

<% if tracker = Spree::Tracker.current(:segment) %>
  <script>
    !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
    analytics.load('<%= tracker.analytics_id %>');
    analytics.page()
    }}();
  </script>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spree_frontend-3.4.6 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.6 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.5 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.5 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.4 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.3 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.4 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.2 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.3 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.1 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.0 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.0.rc2 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.4.0.rc1 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.2 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.1 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.0 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.0.rc4 app/views/spree/shared/trackers/segment/_initializer.js.erb
spree_frontend-3.3.0.rc3 app/views/spree/shared/trackers/segment/_initializer.js.erb