Segment provides the customer data infrastructure that helps businesses put their customers first. Using this tool, companies can collect, unify and connect their first-party to over 200 marketing, analytics and data warehouse tools.

More than 15,000 companies across 71 countries, from fast-growing businesses to some of the world’s largest organizations use Segment to achieve a common understanding of their users and activate their own data to create customer-first decisions and experiences.

The integration of Segment with your Spree Commerce store can be done quickly and easily following the guidelines mentioned below.

The benefits of using Segment for your eCommerce business


Simplify data collection with a single API

Collect clickstream data from your mobile apps, websites, and servers with one API. Use turnkey integrations to pull in contextual data from cloud apps like your CRM and payment systems.


Integrate 200+ tools

Once your data is flowing to Segment, you can easily turn on new tools for advertising, email, push notifications, analytics, webhooks, and more.


Build a single view of the customer

Answer any question about your customers without engineering ETL pipelines. Segment will transform and load multiple data sources into your warehouse for you.


Manage data across your business

Test your implementation, review the data you’re collecting, and easily control where your data flows with tools for debugging and data management.

How to integrate Segment with Spree


Spree offers out of the box Segment integration using Spree Analytics Trackers.

This extensions adds support for Google Analytics Enhanced Ecommerce and Segment Ecommerce tracking to Spree Commerce stores.


Via you can plug-in also a lot of additional vendors and services like:

No additional development required.



  1. Add this extension to your Gemfile with this line:
gem 'spree_analytics_trackers', github: 'spree-contrib/spree_analytics_trackers'
  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree_analytics_trackers:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.


Adding specialized analytics to your online store has never been so simple! Just install `spree_analytics_trackers`, configure Segment and connect hundreds of various analytic solutions. – Piotr Leniec, Senior Fullstack Developer, Spark Solutions


Examples of Segment and Spree integration


MeUndies wants to change the way people buy underwear by making it fun and easy with cool patterns and subscription box services. The company uses Spree for their eCommerce platform and Segment for analytics.

Read more: MeUndies success story


example of Segment and Spree Commerce Integration


Farmdrop‘s mission is to Fix The Food Chain, something they plan to do by providing Londoners with their best food retail experience. The company uses Spree for their eCommerce platform and Segment for analytics.

Read more: Farmdrop’s success story


example of Segment and Spree Commerce Integration

Contact us

Learn more about Spree or start a new project!