Google Analytics is the world's most popular analytics service that allows you to track and report your website traffic across a variety of sources. It lets you measure your advertising ROI, as well as set up tracking code to perform data collection based on the type of your website.

This guide will help you set up Google Analytics as a source in RudderStack. Once configured, RudderStack automatically ingests your specified Google Analytics data and routes it to your data warehouse.

All the Cloud Extract sources support sending data only to a data warehouse destination.

Getting started

To add Google Analytics as a source in RudderStack, follow these steps:

  • Log into your RudderStack dashboard.

  • Then, click on the Directory option in the left navigation bar and go to Cloud Extract under Sources. From the list of sources, click on Google Analytics.

Google Analytics source
  • Assign a name to your source, and click on Next.

Setting up the connection

  • Click on Connect with Google Analytics and give RudderStack the required access permissions. Then, click on Next.

If you've already configured Google Analytics as a source before, you can select the account under the Use existing credentials tab.

Selecting the data to import

  • In the next screen, select your Google Analytics View in the Source Settings.

  • Once you select a view, the Dimensions and Metrics rows should appear automatically. Choose the appropriate dimensions and metrics for RudderStack to ingest the data from, and then click Next.

Selecting the data to import

Not all Dimensions and Metricscan be queried together. Only those dimensions and metrics combinations that follow Google’s compatibility rules can be used. Read the Valid Dimensions and Metrics section below for more information.

The Dimensions and Metrics combination cannot be changed after the source is created and saved. The primary key that RudderStack creates depends on your choices during the source configuration.

Setting the table prefix, run frequency, and data update schedule

  • Next, under Destination Settings, specify the Table Prefix. RudderStack will create a table in your warehouse destination with this prefix and store your Google Analytics data.

  • Then, under Schedule Settings, set the Run Frequency with which RudderStack will sync the data to the warehouse destination.

  • Optionally, you can also specify the time when you want this synchronization to happen, by choosing the time under the Sync Starting At option.

Prefix, run frequency, and data update settings

RudderStack will start ingesting data from Google Analytics as per the specified frequency. You can then connect this source to your data warehouse by clicking on Add Destination, as shown:

Adding warehouse destination

Select the Use Existing Destination option if you have already configured a data warehouse destination in RudderStack. To configure a data warehouse destination from scratch, select the Create New Destination option.

Valid dimensions and metrics combinations

Not all the dimensions and metrics can be queried together in Google Analytics. Only those dimensions-metrics combinations that follow Google's compatibility rules can be used together for querying.

Check out the valid combinations in the Google Dimensions & Metrics Explorer.

Definition limits

Google has set a limit on the number of dimensions and metrics that you can define. Read more about these limits in Google's Core Reporting API documentation.


Is it possible to have multiple Cloud Extract sources writing to the same schema?

Yes, it is.

We have implemented a feature wherein RudderStack associates a table prefix for every Cloud Extract source writing to a warehouse schema. This way, multiple Cloud Extract sources can write to the same schema with different table prefixes.

My costs, impressions, and clicks are received as zeros in the destination. What should I do?

While configuring the Google Analytics source in RudderStack, make sure you are defining the right combination of metrics and dimensions.

Not all the dimensions and metrics can be queried together in Google Analytics. Only those dimensions-metrics combinations that follow Google's compatibility rules can be used together for querying.

For more information, refer to this Google Dimensions & Metrics Explorer page.

Contact us

For more information on the topics covered on this page, email us or start a conversation in our Slack community.