Română

Advanced Data Analytics for CRM: Native integration between HubSpot and BigQuery

Advanced Data Analytics for CRM: Native integration between HubSpot and BigQuery
26.11.2024
Note: This article is over a year old. Some information may be outdated. We recommend reading the latest documentation or talking to one of our experts.

As your business grows, so does the complexity of your data! HubSpot, the customer relationship management (CRM) platform, makes it easy to organize customer interactions, track sales, and measure marketing performance with surface-level metrics like email open rates, lead conversion percentages, and deal progress.

What happens when you need to dig deeper—like identifying which marketing campaigns drive the highest customer lifetime value, forecasting future sales trends, or analyzing customer retention across products?

That’s where Google BigQuery, a cloud-based data warehouse, comes in. BigQuery allows you to process large datasets, perform advanced analyses, and uncover insights that go far beyond standard CRM reporting.

Why integrate HubSpot with BigQuery?

E-mail migration

Centralize data across platforms

HubSpot is excellent for managing CRM-specific data, but businesses often use multiple tools, creating silos of information. By integrating with BigQuery, you can centralize all your data, from HubSpot contacts and deals to website analytics and financial metrics, into one system.

Example use case:

A retail business combines HubSpot’s lead data with inventory information from a separate ERP system. Using BigQuery, they identify which promotional campaigns led to inventory shortages, helping them improve demand forecasting.

Unlock deeper insights

HubSpot provides valuable insights into your sales and marketing performance, but these reports are limited to predefined templates. BigQuery enables businesses to customize analytics and uncover insights specific to their goals.

Example use case:

A subscription service uses BigQuery to analyze customer churn rates by combining HubSpot’s deal data with customer support interactions. They discover that customers with unresolved tickets are twice as likely to cancel, prompting them to improve their support processes.

Read how OPTI used Google BigQuery for a multiplayer game with hundreds of thousands of players

Enable predictive analytics

HubSpot focuses on real-time and historical data, but BigQuery opens the door to predictive analytics. Businesses can forecast trends and anticipate challenges before they arise.

Example use case:

A software company uses BigQuery ML to predict which leads in HubSpot’s CRM are most likely to convert, allowing the sales team to prioritize high-value opportunities.

Build custom dashboards for decision-making

E-mail migration

While HubSpot’s dashboards are great for quick overviews, they lack the flexibility for advanced reporting. BigQuery allows you to create custom dashboards in tools like Looker Studio, combining data from HubSpot and other sources.

Example use case:

A marketing team builds a dashboard that visualizes revenue attribution across email campaigns, social ads, and SEO efforts, helping them allocate budgets more effectively.

Discover how OPTI unified an analytic dashboard for a gaming company

Scale without limits

HubSpot’s reporting capabilities are tailored for CRM data, but they may struggle to handle massive datasets as your business grows. BigQuery is built to scale seamlessly, allowing you to analyze millions of rows of data without slowing down.

Example use case:

An international logistics company uses BigQuery to analyze shipping data alongside HubSpot deal information, identifying inefficiencies in specific regions that lead to delays in closing deals.

Integration guide (native HubSpot integration - currently in beta)

Setting up an integration between HubSpot and BigQuery is straightforward if you have OpHub Enterprise. Follow these steps:

Step 1: Install Google BigQuery from the HubSpot App Marketplace

  1. Open both your HubSpot account and Google BigQuery account in separate browser tabs for convenience.
  2. Ensure your HubSpot account is enrolled in the public beta for this feature. To opt-in, follow these instructions.
  3. Navigate to the HubSpot App Marketplace.
  4. Search for "Google BigQuery" and select the app.
  5. Click the Install App button.
  6. Enter your Bucket URI and Project ID when prompted, then click Next.
  7. E-mail migration
  8. Review the generated Google Service Account and BigQuery details. Save this information for use in later steps.
  9. E-mail migration

Step 2: Create a custom IAM role in Google Cloud Platform

  1. Log into your Google Cloud Console.
  2. From the navigation menu, go to IAM & Admin > Roles.
  3. Click on Create Role at the top of the screen.
  4. Add a title, optional description, and a unique ID for the role.
  5. Select Add Permissions and include the following:
    • bigquery.datasets.create
    • bigquery.datasets.get
    • bigquery.jobs.create
    • bigquery.tables.create
    • bigquery.tables.update
    • bigquery.tables.get
    • storage.objects.get
    • storage.objects.create
  6. Once all permissions are added, click Create to save the role.
E-mail migration

Step 3: Assign the custom IAM role to the Google Service Account

  1. In the Google Cloud Console, go to Cloud Storage > Buckets.
  2. Select the bucket associated with your project.
  3. Open the Permissions tab and click Grant Access.
  4. In the New Principals field, enter the Google Service Account name generated earlier.
  5. Under Assign Roles, choose the custom IAM role you created in Step 2.
  6. Click Save to confirm the changes.
E-mail migration

Step 4: Grant permissions to the HubSpot-generated BigQuery account

  1. Navigate to IAM & Admin > IAM in your Google Cloud Console.
  2. Click Grant Access.
  3. In the New Principals field, add the Google Services Account name from step 2..
  4. Assign the custom IAM role from Step 2 to this account.
  5. Save your settings to finalize the permissions.

Step 5: Finalize setup in HubSpot

  1. Return to your HubSpot account and go to Connected Apps.
  2. Follow the prompts to complete the integration setup.
  3. In the final dialog, review the permissions, check the required boxes, and click Allow and Install to activate the integration.

Contact us for more info!

The integration of HubSpot and Google BigQuery is a powerful step toward unlocking the full potential of your data.

OPTI is both a Hubspot Solution Provider and a Google Cloud Partner. Find us here

Start your integration today and take your analytics to the next level.

Book a meeting!

Steps Overview

Step 1: Install Google BigQuery from the HubSpot App Marketplace

Ensure your HubSpot account is enrolled in the public beta. Navigate to the App Marketplace, search for 'Google BigQuery', select the app, and click 'Install App'. Enter your Bucket URI and Project ID.

Step 2: Create a Custom IAM Role in Google Cloud Platform

In the Google Cloud console, go to IAM & Admin > Roles. Create a new role with the required permissions (e.g., bigquery.datasets.create, bigquery.jobs.create, storage.objects.get).

Step 3: Assign the Custom IAM Role to the Google Service Account

In Cloud Storage > Buckets, select your project's bucket. In the 'Permissions' tab, click 'Grant Access' and add the HubSpot-generated service account, assigning it the custom IAM role.

Step 4: Grant Permissions to the HubSpot-generated BigQuery Account

In IAM & Admin > IAM, click 'Grant Access' and again add the Google service account, assigning it the custom IAM role.

Step 5: Finalize the Setup in HubSpot

Return to your HubSpot account under 'Connected Apps'. Follow the prompts to complete the setup, review permissions, and click 'Allow and Install'.

Quick Questions

Why should I integrate HubSpot with BigQuery?

To centralize data from multiple platforms, discover deeper insights than standard reports allow, and enable predictive analytics.

What is the native HubSpot - BigQuery integration?

It is a new feature (in beta) that allows data to be synchronized directly between HubSpot and BigQuery, without requiring complex third-party connectors.

What kind of predictive analysis can I perform?

You can use BigQuery ML to predict which leads in HubSpot are most likely to convert, allowing the sales team to prioritize opportunities.

What is the TLDR (conclusion)?

This guide is for businesses that have hit the limits of standard CRM reports and need to perform advanced analytics. We'll cover the official HubSpot to BigQuery integration (currently in beta), which allows you to combine sales data with other business metrics for a complete view of performance.

What technologies and methodologies are involved?

Technologies: HubSpot, Google BigQuery, BigQuery ML, Looker Studio, IAM (Identity and Access Management)
Methodologies: Data analysis, Business Intelligence, Data migration, Predictive analysis, Revenue Operations (RevOps)

Marian Călborean

Article written by

Marian Călborean

Manager, Software Architect, PhD. in Logic, Fulbright Visiting Scholar (CUNY GC, 2023)

See on LinkedIn →
Interesat?

Interested?

Schedule a meeting

Get a Free Audit

News and Guides

More News