{"id":11222,"date":"2024-08-20T17:26:30","date_gmt":"2024-08-20T17:26:30","guid":{"rendered":"https:\/\/spreecommerce.org\/?post_type=cpt_integrations&#038;p=11222"},"modified":"2025-10-28T15:23:51","modified_gmt":"2025-10-28T15:23:51","slug":"segment-integration-with-spree","status":"publish","type":"cpt_integrations","link":"https:\/\/spreecommerce.org\/integrations\/segment-integration-with-spree\/","title":{"rendered":"Segment and Spree integration"},"content":{"rendered":"\n<p><a href=\"https:\/\/segment.com\/\">Segment<\/a>&nbsp;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.<\/p>\n\n\n\n<p>More than 15,000 companies across 71 countries, from fast-growing businesses to some of the world\u2019s largest organizations use Segment to achieve a common understanding of their users and activate their own data to create customer-first decisions and experiences.<\/p>\n\n\n\n<p>The integration of Segment with your Spree Commerce store can be done quickly and easily following the guidelines mentioned below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The benefits of using Segment for your eCommerce business<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"simplify-data-collection-with-a-single-api\">Simplify data collection with a single API<\/h3>\n\n\n\n<p>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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"integrate-200-tools-with-the-flip-of-a-switch\">Integrate 200+ tools<\/h3>\n\n\n\n<p>Once your data is flowing to Segment, you can easily turn on new tools for advertising, email, push notifications, analytics, webhooks, and more.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-a-single-view-of-the-customer\">Build a single view of the customer<\/h3>\n\n\n\n<p>Answer any question about your customers without engineering ETL pipelines. Segment will transform and load multiple data sources into your warehouse for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"manage-data-across-your-business\">Manage data across your business<\/h3>\n\n\n\n<p>Test your implementation, review the data you\u2019re collecting, and easily control where your data flows with tools for debugging and data management.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to integrate Segment with Spree<\/h2>\n\n\n\n<p>Spree offers out of the box Segment integration using&nbsp;<a href=\"https:\/\/github.com\/spree-contrib\/spree_analytics_trackers\">Spree Analytics Trackers<\/a>.<\/p>\n\n\n\n<p>This extensions adds support for&nbsp;<a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/enhanced-ecommerce\">Google Analytics Enhanced Ecommerce<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/segment.com\/docs\/spec\/ecommerce\/v2\/\">Segment Ecommerce<\/a>&nbsp;tracking to&nbsp;<a href=\"https:\/\/spreecommerce.org\/\">Spree Commerce<\/a>&nbsp;stores.<\/p>\n\n\n\n<p>Via&nbsp;<a href=\"https:\/\/segment.com\/\">Segment.com<\/a>&nbsp;you can plug-in also a lot of additional vendors and services like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/spreecommerce.org\/integrations\/mixpanel-integration-with-spree\/\">Mixpanel<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/spreecommerce.org\/integrations\/kissmetrics-integration-with-spree\/\">Kissmetrics<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/spreecommerce.org\/integrations\/google-tag-manager-integration-with-spree\/\">Google Tag Manager<\/a><\/li>\n\n\n\n<li>Facebook Pixels<\/li>\n\n\n\n<li>Google Adwords remarketing<\/li>\n\n\n\n<li><a href=\"https:\/\/segment.com\/catalog#integrations\/all\">and hundreds others<\/a><\/li>\n<\/ul>\n\n\n\n<p>No additional development required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add this extension to your Gemfile with this line:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">gem 'spree_analytics_trackers', github: 'spree-contrib\/spree_analytics_trackers'\n<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Install the gem using Bundler:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">bundle install<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Copy &amp; run migrations<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">bundle exec rails g spree_analytics_trackers:install<\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Restart your server<\/li>\n<\/ol>\n\n\n\n<p>If your server was running, restart it so that it can find the assets properly.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Adding specialized analytics to your online store has never been so simple! Just install `<a href=\"https:\/\/github.com\/spree-contrib\/spree_analytics_trackers\">spree_analytics_trackers<\/a>`, configure Segment and connect hundreds of various analytic solutions. \u2013 Piotr Leniec, Senior Fullstack Developer,&nbsp;<a href=\"https:\/\/sparksolutions.co\/\">Spark Solutions<\/a><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Examples of Segment and Spree integration<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.meundies.com\/\">MeUndies<\/a>&nbsp;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.<\/p>\n\n\n\n<p>Read more:&nbsp;<a href=\"https:\/\/spreecommerce.org\/stories\/meundies-uses-spree-to-redefine-how-people-shop-for-underwear-with-a-subscription-model\/\">MeUndies success story<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" width=\"1610\" height=\"980\" src=\"https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration.jpg\" alt=\"example of Segment and Spree Commerce Integration\" class=\"wp-image-2344\" srcset=\"https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration.jpg 1610w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-300x183.jpg 300w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-768x467.jpg 768w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1024x623.jpg 1024w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-600x365.jpg 600w\" sizes=\"(max-width: 1610px) 100vw, 1610px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.farmdrop.com\/\">Farmdrop<\/a>\u2018s&nbsp;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.<\/p>\n\n\n\n<p>Read more:&nbsp;<a href=\"https:\/\/spreecommerce.org\/stories\/farmdrop-launches-a-spree-marketplace-with-fresh-food\/\">Farmdrop\u2019s success story<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" width=\"1597\" height=\"980\" src=\"https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1.jpg\" alt=\"example of Segment and Spree Commerce Integration\" class=\"wp-image-2345\" srcset=\"https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1.jpg 1597w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1-300x184.jpg 300w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1-768x471.jpg 768w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1-1024x628.jpg 1024w, https:\/\/spreecommerce.org\/wp-content\/uploads\/2019\/01\/example-of-Segment-and-Spree-Commerce-Integration-1-600x368.jpg 600w\" sizes=\"(max-width: 1597px) 100vw, 1597px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Segment&nbsp;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\u2019s largest organizations use Segment to achieve a common [&hellip;]<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":""},"cpt_integrations_category":[983,985],"class_list":["post-11222","cpt_integrations","type-cpt_integrations","status-publish","hentry","cpt_integrations_category-analytics","cpt_integrations_category-marketing-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/spreecommerce.org\/wp-json\/wp\/v2\/cpt_integrations\/11222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spreecommerce.org\/wp-json\/wp\/v2\/cpt_integrations"}],"about":[{"href":"https:\/\/spreecommerce.org\/wp-json\/wp\/v2\/types\/cpt_integrations"}],"wp:attachment":[{"href":"https:\/\/spreecommerce.org\/wp-json\/wp\/v2\/media?parent=11222"}],"wp:term":[{"taxonomy":"cpt_integrations_category","embeddable":true,"href":"https:\/\/spreecommerce.org\/wp-json\/wp\/v2\/cpt_integrations_category?post=11222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}