Google Analytics 4

A guide on how to add a Google Analytics 4 data source in Plecto, and useful information about the data types.

Last updated: July 29, 2022

Integration page

Visit our Google Analytics 4 integration page to find more detailed information about the data you can import, data source update frequency, custom field support, and more.

  1. Go to Data management > Data sources > + New data source > Google Analytics.
  2. Click Next and sign in to your Google account.
  3. Once signed in, Plecto will ask for access to your Google Analytics account. Click Allow. Don't worry – we get read-only access to your Google Analytics data.
  4. Open the Advanced settings and add the data source title, property, time dimension, and secondary dimension.
    1. Title: Give your data source a title that reflects what data it contains. For example, Google Analytics - Country - Day. By adding a specific title, you will know that you've segmented your data by country, and the chosen time dimension is Day.
    2. Property: Choose the property.
    3. Time dimension: Choose one of the available time dimensions.
    4. Secondary dimension: Select one of the 150+ dimensions. If you want to import another secondary dimension, create another Google Analytics data source.
  5. Click Next to continue and import your data.
  6. (Optional) You can create your first dashboard by selecting some of the pre-built KPIs we've made. Select the KPIs and click Create dashboard or skip this step and build your own.

Repeat these steps and create as many Google Analytics data sources as you need!

Tip – Include the time and secondary dimensions in your data source title

When connecting a Google Analytics data source to Plecto, make sure to include the time and secondary dimensions in your data source title. It will be much easier for you to understand what data you see in the data source.

With the new Google Ads 4 integration, we support all secondary dimensions (there are more than 150). If you choose a secondary dimension such as Campaign, Plecto will create one registration per campaign per time dimension (hour, day, month, year).

For more technical information, find the list of all the API dimensions & metrics on Google developer docs. If you want to see the list of field names and dimensions compared to the previous Google Analytics version, follow this link.

Tip – Add as many data sources as you need

Feel free to create new data sources and select a different time and secondary dimensions for each of them – there's no limit to how many data sources you can add in Plecto!

It is necessary to think about the time dimension you want to look at when creating a data source in Plecto. Here are the available time dimensions for Google Analytics 4 integration:

  • Hour
  • Day
  • Month
  • Year

If you want to track your metrics on a daily time period, you should select the time dimension Day when importing your data. If you want to know, for example, how many users have visited your website each month, you should select Month.

Match the widget's time period to your data source's time dimension

Google Analytics data sources require you to choose a time dimension. To get the most accurate metrics on your dashboard, you should select a time period that matches the time dimension whenever you add a formula to a widget.

For example, if your time dimension is Day, you should choose the time periods Today, Yesterday, or Tomorrow on the widget to get the most accurate metrics.

What is a bounce?

If a visitor goes to and looks at our front page, integration page, and pricing page, that counts as 1 user, 1 session, 3 page views. However, if they visit our front page and leave, that counts as a bounce, since there is no trigger sent to the Google Analytics server.

How to create the Average Bounce Rate KPI
  1. Open the formula editor and add a new data function component.
    1. Lookup function: Avg
    2. Data source: Choose your Google Analytics data source that contains your bounce rates.
    3. Field: Session - Bounce Rate
  2. Add the % sign in the suffix field. Plecto already receives a calculated bounce rate, so there's no need to change the number format.
  3. Give your formula a title such as Google Analytics - Average Bounce Rate and save the formula.
  4. Open a dashboard and add a widget of your choice.
  5. Add your new bounce rate formula, select a time period, and save the widget.

You now have a beautiful bounce rate KPI that will update automatically whenever the data in your data source updates. 🎉

Bounce Rate - Google Analytics Example

An example of the different bounce rate KPIs visualized on different widgets.

Is high bounce rate a bad thing?

The answer is – it depends. If the purpose of a page on your website is to inform, and people visit it to read for example an article or a blog post, then a high bounce rate is not necessarily a bad thing. In such case, it's more about how long the visitors stay on your page.

However, if your objective is to make the visitor engage with the website and make them navigate through the different pages and content, you would probably want to reduce the bounce rate.

Track your bounce rate with widgets and conditional colors

Visualize your bounce rate on number box, speedometer, table, or other widgets. Add conditional colors to see if your bounce rate is within norm or if it should be improved.

Pre-computed metrics

Google Analytics is among those marketing integrations that don't support importing raw data. The data you get from Google Analytics is already accumulated based on the time dimension (per hour, day, month, or year).

It means that you can't use the same time dimension to show accurate metrics for different time periods. If you import data with the time dimension Month, you should choose a widget's time period that looks at whole months, for example, Current month, Previous month, and so on.

Ads data

It is possible to link your Google Ads account to your Google Analytics account and import your Ads data into the Analytics data source. However, you can't use your Ads data together with the Hour time dimension in Analytics because Google Ads is only calculated once per day.

Secondary dimension – Source / medium

If you want to see where your data comes from, you need to set the secondary dimension to Source / medium in the advanced settings when setting up your data source.

Looking for KPI inspiration?

Read our blog, visit our KPI library, or go to Plecto Store and see if there's something you like!

Was this article helpful?

Please leave a comment to help us improve.