Contents

Connect Chargebee and Google Analytics

Why do Chargebee and Google Analytics Need to Be Connected?

Chargebee is a powerful payment processing and subscription billing 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.
  2. Not all Chargebee payments are processed online. Many, especially in subscription funnels, occur offline. Attributing them to the original Client ID and last known Session ID allows Google Analytics to correctly report revenue sources.
  3. Browser-based conversion tracking is notoriously unreliable, especially when it's based on thank you page tracking and redirects from payment processor domain are involved.

Chargebee 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 Chargebee and Google Analytics

Able Customer Data Platform is the ultimate Chargebee 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 Chargebee 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 Chargebee and Google Analytics. Able already knows how to connect marketing data between Chargebee and Google Analytics.

How Able CDP Integrates Chargebee and Google Analytics

Able makes it easy  to report in Google Analytics on actual Chargebee revenue rather than conversions to leads, attributing all subsequent Chargebee 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. store Session ID on each user interaction to always know
  3. attribute successful Chargebee payments and other conversions to the Google Analytics Client ID and Session ID and send e-commerce transaction and event to Google Analytics.

6 Steps to Connect Chargebee with Google Analytics by Using Able

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 Chargebee and Google Analytics to ensure all conversions data is transferred successfully.

  • 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. In the Funnel tab, click add service integration to select which platforms you want to integrate with

Step 4. Connect Able to Chargebee

Able Customer Data Platform attributes Chargebee payments to the original marketing source.

To send Purchase events from Chargebee to Able:

  1. In Chargebee, go to Settings > Configure Chargebee > API Keys and Webhooks
  2. Add Webhook Endpoint URL https://dukm0ab28c.execute-api.eu-west-2.amazonaws.com/webhook/%%FUNNEL_MARK%% (where %%FUNNEL_MARK%% is the unique identifier of your funnel in Able CDP)

Able supports the following Chargebee events:

  • subscription_started
  • subscription_activated
  • subscription_cancelled
  • payment_succeeded
  • payment_failed
  • payment_refunded

Able CDP will now receive webhooks from Chargebee, automatically attributing Purchases and other lifecycle events to website visitors by customer emails and phones and tracking payment amounts and other conversion details.

If you need to recognize conversion during user actions (for example, immediately after a service is consumed, rather than when its successfully billed), consider a direct integration with Able REST API.

Step 5. Add Google Analytics Measurement Id to Able to send payments as Google Analytics e-commerce conversions

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

Open Google Analytics, Admin – Web Stream Details page. Tracking Id should be the first item on the list. Record it.

2. Second, you'll be prompted to save a Google Analytics Tracking ID in Able

3. Enable Outbound Integration

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

Step 6. Send purchase info to Google Analytics

Following the above process for sending leads, you will be prompted to set up the purchase integration to send attributed Purchases to Google Analytics from any source, such as a sending a successful Stripe Invoice payment.

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 Protocol. Conversions will appear in all standard reports.

Example of attributed conversions being shown in a Google Analytics 4 User Acquisition report.

 

Chargebee
+
Google Analytics

Start integrating Chargebee and Google Analytics right now

“Able captures 28% more conversions than another popular solution,”

said an Able CDP customer after conducting a case study.

“We were very surprised with the results. We set up two conversion actions in Google Ads: one using another popular solution and another using Able. The conversion action connected with Able had 157 purchase conversions, while the other had only 143. Even more significant was the difference in the reported value: the conversion action receiving data from Able showed a value 28% higher.”

“It turned out that our most valuable customers are the ones who make more expensive purchases some time after the initial conversion, and Able ensured these were correctly attributed in the ad platform. In contrast, conversions sent to Google Ads by another popular solution were missing this data.”

Don't just take our word for it

Software companies, e-commerce stores and various types of digital businesses around the world are using Able CDP to fundamentally improve their marketing strategy.

We have been looking for a tool that could help gain better insights into our marketing efforts. We tried many, but none of them worked until we found Able. The reason Able CDP works for us, is that it is simple and does not try to reinvent the wheel but rather builds on existing tools and software out there. It helps us link our 'offline' sales to our marketing efforts and have it show up in Google Analytics. It then further helps us to optimize the digital marketing efforts by sending the real conversions (sales) to the marketing platforms. We seem to have finally closed the circle of our efforts and it will help us understand better and better what works, what doesn't and how to fix it or reallocate budgets.

Kjeld Schigt
Kjeld Schigt
Managing Director of Kalon Surf
Kalon Surf

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
Bryan Brinton
CFO, Co-Founder of Aluvii
Aluvii

As the owner of Placówkowo, Poland's premier educational listing site, having detailed insights into our transactions is paramount. Able CDP's integration of Stripe with Google Analytics 4 e-commerce has been a game-changer. With their expertise, every Stripe transaction now seamlessly reflects in GA4, providing us with invaluable insights into our financial performance and user behavior. This fusion not only enhances our data clarity but also streamlines our business operations. Able CDP's responsiveness and customer-centric approach have made this integration smooth and efficient. We wholeheartedly endorse their services and appreciate their commitment to excellence.

Łukasz Ostrowski
Łukasz Ostrowski
Owner of Placówkowo
Placówkowo

We have been looking for a tool that could help gain better insights into our marketing efforts. We tried many, but none of them worked until we found Able. The reason Able CDP works for us, is that it is simple and does not try to reinvent the wheel but rather builds on existing tools and software out there. It helps us link our 'offline' sales to our marketing efforts and have it show up in Google Analytics. It then further helps us to optimize the digital marketing efforts by sending the real conversions (sales) to the marketing platforms. We seem to have finally closed the circle of our efforts and it will help us understand better and better what works, what doesn't and how to fix it or reallocate budgets.

Kjeld Schigt
Kjeld Schigt
Managing Director of Kalon Surf
Kalon Surf

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
Bryan Brinton
CFO, Co-Founder of Aluvii
Aluvii

As the owner of Placówkowo, Poland's premier educational listing site, having detailed insights into our transactions is paramount. Able CDP's integration of Stripe with Google Analytics 4 e-commerce has been a game-changer. With their expertise, every Stripe transaction now seamlessly reflects in GA4, providing us with invaluable insights into our financial performance and user behavior. This fusion not only enhances our data clarity but also streamlines our business operations. Able CDP's responsiveness and customer-centric approach have made this integration smooth and efficient. We wholeheartedly endorse their services and appreciate their commitment to excellence.

Łukasz Ostrowski
Łukasz Ostrowski
Owner of Placówkowo
Placówkowo
ICO Data Protection Registration Certificate

Secure and GDPR-friendly

Get peace of mind by choosing a provider that can process customer data regardless of where in the world they are located.

  • All of our data infrastructure is physically based in the UK and we are in a position to seamlessly process EU customers' data according to the European Commission adequacy decision. A Data Processing Agreement and Data Transfer Agreement are available on demand.
  • Able CDP is a data processor registered and regulated by the UK's Information Commissioner's Office (registration reference ZB141484).
  • Able follows best security practices mandated by SOC 2 framework.