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

Connect Stripe and Google Analytics

Why do Stripe and Google Analytics Need to Be Connected?

Stripe is a powerful payment processing SaaS 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.

  1. 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. Stripe also does not enable track website visitors before they become customers and link purchases to the original lead source. 
  1. Stripe customer data without proper first-party attribution doesn't allow you to leverage the reporting capabilities of the reporting tools like Google Analytics. It is impossible to accurately measure ROAS or other key marketing metrics in reporting tools without attributing sales to original marketing sources. 

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

A Complete Solution for Integrating Stripe and Google Analytics

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

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

This allows 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 Stripe and Google Analytics. Able already knows how to connect marketing data between Stripe and Google Analytics.

How Able CDP Integrates Stripe and Google Analytics

Able makes it easy to know which leads and Google Analytics visitors convert to paying Stripe customers. It allows to report in Google Analytics on actual Stripe revenue rather than conversions to leads, attributing all subsequent Stripe revenue to the original Google Analytics visitor and campaign - even if it occurs weeks after the initial visit.

Able CDP combines browser and back-end tracking to:

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

4 Steps to Connect Stripe with Google Analytics by Using Able

Step 1. Sign up for a free account

Step 2. Install Able tracking code on the website

Add following code to the website to track website events:

<script type="text/javascript" src=""></script>
window.addEventListener('DOMContentLoaded', function () {
uipe('init', '%%FUNNEL_MARK%%')
uipe('track', 'PageView')

Where %%FUNNEL_MARK%% is the unique code of your Able CDP Funnel.

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 Stripe

To send Purchase events from Stripe to Able:

  1. Open Stripe Webhook Dashboard
  2. Add Webhook Endpoint (where %%PROPERTY_ID%% is the id of your Able CDP Funnel) and enable the 'invoice.paid' event

Able CDP will now receive webhooks from Stripe, automatically attributing Purchases to Visitors by customer emails and phones and sending Purchase conversions with detailed Invoice Lines where supported.

To send Stripe payments from Stripe to Able:

In addition to tracking Stripe invoice payments, Able supports tracking of Stripe payments. The set up is almost identical to tracking paid invoices, expect the event name set in Stripe webhook settings should be 'payment_intent.succeeded' instead of 'invoice.paid'.

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.

Google Analytics
Start integrating Stripe 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.