Skip to content

Send Google Analytics channel data into Chargebee in four steps

Google Analytics shows which channels bring visitors to a site, but it does not show which visitors become paying customers, what they pay, how often they pay, or what they are worth over time. Moving channel and landing-page information into Chargebee closes that gap, so subscription reports can be segmented by the marketing source that produced each customer.

How the connection works

A small script placed on the website watches each arriving visitor, works out where that visit originated, groups it into a channel such as paid search, organic search, paid social or referral, and keeps the result in a browser cookie. When the visitor later creates an account, that stored origin information travels with the signup details into Chargebee.

Once it is there, billing data can be broken down by source. Useful questions include how many customers came from Google ads, how monthly recurring revenue differs between LinkedIn and Twitter ad customers, and how churn compares for customers who arrived through organic Google searches.

Four steps to set it up

Add these hidden fields to signup forms:

  • Channel
  • Channel Drilldown 1
  • Channel Drildown 2
  • Channel Drilldown 3
  • Landing Page
  • Landing Page Group

If people can sign up through Google or Facebook without filling in a form, use a small JavaScript snippet instead to read the cookie and pass the same values to Chargebee at account creation.

When a form is submitted, the attribution values stored in the cookie fill the hidden fields automatically, alongside visible details such as name, email address and company name.

Worked example: a visitor arrives from a paid-search brand campaign. Depending on the UTM parameters behind the ads, the fields might read Channel = Paid Search, Channel Drilldown 1 = Google, Channel Drildown 2 = Brand Campaign, and Channel Drilldown 3 = Salesforce. The first page visited, for example a blog article about CRM software, and its group, /blog, are captured at the same time.

With the values now inside Chargebee, reports can be grouped by channel or campaign for new trials, trial-to-customer conversion, new customers, new MRR and ARR, ARPU, lifetime value, customer churn and MRR churn.

What data is passed, and a pre-reporting checklist

Two kinds of information matter most for attribution:

Channel data records how a lead arrived and adds detail beneath that headline. For paid search, for instance, the ad group, campaign and keyword can be retained alongside the channel itself.

Landing-page data records the first page a lead saw and the section it belongs to, such as a blog. That makes it possible to judge a whole content section together and also to compare individual articles.

Checklist before reporting:

  • Every signup form carries all six hidden fields, or the JavaScript fallback covers social signups
  • UTM parameters are consistent enough for drilldown values to be meaningful
  • A test signup produces the expected channel and landing-page values in Chargebee
  • Reports are checked against known campaigns before they are used for budget decisions

Reporting on channels and content

Reports can be built with Chargebee's own reporting tools, or the enriched data can be sent onward to an analytics or business-intelligence tool that connects to Chargebee for more advanced analysis.

Content reporting is equally valuable. Landing-page and landing-page-group values show how many signups a blog produced, which posts generated the most signups, which posts converted into customers, and what return blogging effort is producing. They also reveal a common trap: a section may attract plenty of traffic yet convert very few visitors into customers, which is a signal to reconsider how time and resources are spent there.