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

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.

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