Facebook pixel is an analytics tool that allows you to measure the effectiveness of your advertising by understanding the actions people take on your website.



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

The benefits of using Facebook Pixel for your Ecommerce business


Reach the right people


Find new customers, or people who have visited a specific page or taken a desired action on your website. Plus, create Lookalike Audiences to reach more people who are similar to your best customers. Learn more.


Drive more sales


Set up automatic bidding to target people who are more likely to take an action you care about, like making a purchase. See how to optimize your ad sets for conversions.


Measure the results of your ads


Understand how successful your ad is by seeing what happened as a direct result. You can view information like your conversions and sales. Find out what data you can see from your Facebook pixel page.

How to integrate Facebook Pixel with Spree


The easiest way to integrate Facebook Pixel with Spree is 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 Facebook Pixel and Spree integration


Urban Ladder is an omnichannel furniture and decor retailer based out of Bangalore, India. The company uses Spree for its e-commerce platform and Facebook Pixel for Facebook ads conversion tracking.


Read more: Urban Ladder’s success story

example of Spree Commerce and Facebook Pixel integration Urban Ladder

Yuve is an NYC based brand of premium vegan foods and nutritional supplements. Made with hand-selected natural ingredients, Yuve products promote health and longevity through complete wholesome nutrition and encourage a life of happiness. The company uses Spree for their online store and Facebook Pixel for Facebook ads conversion tracking.


Read more: Yuve’s success story

example of Spree Commerce and Facebook Pixel integration Yuve

Interested? Got questions about Spree?

Please do contact us. We’ll reply shortly.

reactangularsymfonygraphqlnone of the above

continuous deploymentcontainer/dockercloud hostingdedicated serverother

By submitting you agree to our Terms and Privacy Policies.