Analtyics API - How do these fields map to the HubSpot UI?


#1

Hi There!

From the Analtyics Get Breakdown Documentation - https://developers.hubspot.com/docs/methods/analytics/get-analytics-data-breakdowns

How do these entities map to the fields in the UI?

API Documentation Fields

  • rawViews
  • visits
  • visitors
  • leads
  • contacts
  • subscribers
  • marketingQualifiedLeads
  • salesQualifiedLeads
  • opportunities
  • customers
  • pageviewsPerSession
  • bounceRate
  • timePerSession
  • newVisitorSessionRate
  • sessionToContactRate
  • contactToCustomerRate

UI fields

  • Sessions
  • Contract Conversion Rate
  • New contacts
  • Customer conversion rate
  • Customers
  • Bounce Rate
  • New visitor sessions
  • New Session %
  • Page views / session
  • Avg. session length

Thanks!


Analytics API - raw value for Bounces
#2

Good Morning!

Any guidance in regards to this item would be greatly appreciated.

Thank you!


#3

Hi @brie,

In many cases, the names are the same, but snake case when returned by the Analytics API (e.g. bounceRate === Bounce rate). In other cases it's not quite so explicit. Here's how they correspond:

  • Sessions === visits
  • Contract Conversion Rate === sessionToContactRate
  • New contacts === contacts
  • Customer conversion rate === contactToCustomerRate
  • Customers === customers
  • Bounce Rate === bounceRate
  • New visitor sessions === newVisitorSessionrate
  • New Session % === visitors
  • Page views / session === pageviewsPerSession
  • Avg. session length === timePerSession