• Why do Spree and Google Analytics Need to Be Connected?
  • A Complete Solution for Integrating Spree and Google Analytics
  • How Able CDP Integrates Spree and Google Analytics
  • 4 Steps to Connect Spree with Google Analytics by Using Able CDP

Connect Spree and Google Analytics

Why do Spree and Google Analytics Need to Be Connected?

Spree is an open source ecommerce platform. Google Analytics is one of the most widely used web analytics services. Both platforms keep a rich set of sales data, but there are often significant discrepancies between them.

30-40% of conversions in Google Analytics often have direct or incorrect sources, as well as not being attributed to the actual landing page that the customer first saw or found in an organic search engine. This happens because Google Analytics creates a separate session for the returning customer when a different device is used or if browser privacy features block Google Analytics cookies.

Spree and Google Analytics integration enables you to get a complete view of the customer journey. Attributing sales to leads and leads to marketing sources allows you to accurately track marketing campaigns and understand LTV and ROI.

A Complete Solution for Integrating Spree and Google Analytics

Able Customer Data Platform is the ultimate Spree and Google Analytics integration.

Able combines server API integrations with browser tracking, linking website activity with purchases on the back-end, building a complete journey of each customer across Spree and Google Analytics.

This allows you to attribute 99% of sales to the correct marketing source, ad click and landing page and obtain data to inform strategy.

All of this without coding and complex manual set-up of the connection between Spree and Google Analytics. Able already knows how to connect marketing data between Spree and Google Analytics.

How Able CDP Integrates Spree and Google Analytics

Reporting on actual Spree revenue in Google Analytics rather than conversions to leads is made easy by Able CDP. Able attributes all subsequent Spree revenue to the original visitor and campaign - even if it occurs weeks after the initial visit.

Able CDP combines browser and back-end tracking to:

  1. store Client Id for each lead and sign-up;
  2. attribute successful Spree payment to the Google Analytics user id and send e-commerce transaction to Google Analytics.

Able tallows you to track any purchases made by the same customer, regardless of when and how, which are then attributed to the original website visitor and marketing source. This allows you to track and report Spree leads and any subsequent purchases attributed to the original visitor source in Google Analytics.

4 Steps to Connect Spree with Google Analytics by Using Able CDP

Step 1. Sign up for a free account

Step 2. Install Able tracking code on the website

After signing up for a free account, Able CDP will prompt you to add code to your website. The tracking code is necessary to allow Able to link further Spree conversions with the original visitor and Google Analytics Client Id.

Add lead form URLs to the HTML Forms Tracking section to let Able automatically recognize the sign-up and lead forms you're using. Any standard lead form widgets that we could detect during the account setup will appear in the Dynamic Lead Forms Tracking section.

Press "Generate" in the Get Code section to generate a unique tracking code to add to your site.

Able CDP page view tracking doesn't install its own cookies and relies on third-party identifiers such as Google Analytics Client Id to connect customer activity between website pages. Please enable cross-domain measurement in Google Analytics if your landing and lead/order pages are hosted on different domains.

Step 3. Connect Able to Spree

Connect Able to Spree to receive webhook notifications about completed purchases.

Step 4. Add Google Analytics Property Id to Able to send payments as Google Analytics e-commerce conversions

1. The first step is to locate the Google Analytics tracking id for the property you’d like to use for reporting.

Open Google Analytics, Admin – Property Settings page. Tracking Id should be the first item on the list. Record it.

2. Able Setup

Open ‘API Credentials’ tab in the Able CDP Dashboard. Select ‘Google Analytics’ service and enter Tracking Id in the Access Token field. Leave Refresh Token blank and enter arbitrary name you’d like to use as a reference (for example, corresponding Google Analytics property name). Press ‘Save’.

Open ‘Outbound’ tab. Select the Google Analytics Credential you’ve just saved and ‘Purchase’ event type. Press ‘Save’.

At this point required integration setup is complete and Able will start sending all Purchases that it attributed to Google Analytics visitors to Google Analytics Measurement API. Conversions will appear in all standard reports; additionally, Purchases will appear in the Conversions tab of E-commerce reports.

Read more about Able CDP tracking and attribution engine and how it utilizes a customer journey database to correctly attribute all purchases to the original visitors.

E-Commerce Conversion Funnel Tracking
Able CDP helps to track modern multiple step e-commerce funnels where customers interact with multiple services prior to eventually making a purchase, resolving issues with incorrect Google Analytics attribution and conversions missing from Google Ads and Facebook Ads reports.

Send Purchases to Google Ads

Sending conversions to Google Ads is an extremely common integration scenario. Its used to add conversion value to Google Ads’ reports, allowing to report on ROI, as well as to use performance-based targeting and optimization capabilities.

Send Purchases to Facebook Conversions API

Attributing conversions to Facebook Ads is a common task, however doing it with sufficient precision is hard. Sales might happen in CRM, or, when they happen online, customer might not come back to the website, so tracking with Facebook Pixel JS produces substandard results. Able solves this problem with its Facebook Conversions API integration.

Google Analytics
Start integrating Spree and Google Analytics right now
“A valuable insight we've got because of using Able Customer Data Platform is that display ads aren't working for us at all... we've been wasting money for years on paid display ads.

Before Able we'd be excited about every lead or email that came through, but after the last year we've determined that those don't convert at all.

And so we've been focusing on paid search, which does have return on investment.”

— Bryan Brinton, Co-Founder, Aluvii Software

Contact us for more help if you didn't find what you were looking for


Achieve results

Continuously improve marketing strategy with actionable data produced by Able tracking.

Drive sales

Understand how your customers buy and how segments perform across campaigns even on low volume experimental conversion data when you're still perfecting your pipeline.

Boost ad ROI

Stream back-end conversion data to Google Ads and Facebook Ads Conversion APIs to facilitate ad platforms' AI/ML ad delivery optimization and to create super effective lookalike audiences in real time.


Use standard tools such as Facebook Ads, Google Analytics and CRM reports to see exact performance and revenue of each channel and landing page even when sales happen weeks after the initial ad click.