iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📈

Visualizing and Notifying Google Analytics Data with Looker Studio

に公開

What this article covers

In this article, I will describe the following:

  • Creating a dashboard using Google Analytics metrics
  • Sending regular notifications to email addresses such as Gmail

The following is a report I actually created. It visualizes the access data to my article pages on Zenn. Recently, it seems that traffic has been concentrated on my Python articles.

report

As shown below, it is possible to view the access sources using a map-based graph. The figure shows that my Zenn pages get a lot of traffic from Tokyo and Osaka.
report map

Looker Studio

Looker Studio is what is known as a BI (Business Intelligence) tool. It allows you to create and share collections of graphs and tables called "reports."

https://cloud.google.com/looker-studio

Looker Studio is a free tool. Upgrading to Pro costs $9/member per project. (As of May 4, 2024)

https://cloud.google.com/looker-studio#pricing

Creating a Report

When you log in to Looker Studio, the following screen appears. Click the "Blank Report" button to create a new empty report.

If you see a screen like the one below, you have succeeded. For now, "[Add a chart]" is not available because there is no connection to a data source yet, but you will be able to use it after connecting to a data source in the next section.

blank report

Integrating with Google Analytics

Let's add data right away. Click the [Add Data] button at the top center of the screen. A data source selection screen like the one below will appear. This time, select Google Analytics as the data source.

When a screen like the one below appears, select the Google Analytics project you want to use.

If a screen like the following appears, you have succeeded. Unlike in the previous section, [Add a chart] is now available.

Creating a Chart

Click the [Add a chart] button and select the diagram you want to insert. Here, I selected [time series].

A diagram visualizing time-series data is displayed. For the data, the Metric (vertical axis) seems to be View, and the Dimension (horizontal axis) seems to be the date. Since we're at it, let's add Active User to the Metric to visualize how many people are reading Zenn.

Click the [Metric] button and select the data you want to use.

Confirm that the data has been added. We can read that there seems to be access from about 50-100 people.

Let's change the appearance of the chart. Clicking the [Style] button switches to the sidebar for changing the appearance.

Also, by clicking the three-dot button at the top of the screen and selecting the [Theme and Layout] button that appears, you can choose a theme.

By this point, it is possible to create a dark-themed table like the one below.

Regular Notifications to Gmail

Click the [▼] part of the [Share] button in the top right of the Looker Studio report screen. From the options that appear, select Schedule delivery.

  • *Note: Clicking the [Share] part itself will open the Google account sharing settings.

A popup like the following will appear, allowing you to configure the regular notification settings. Clicking the [Send now] button will send the report to the configured Gmail address as a test.

An email like this will arrive in your Gmail.

Now you are able to receive regular notifications via Gmail.

Summary

  • Looker Studio allows for easy data visualization and notifications.
  • You can flexibly change graph appearances, notification frequencies, and sharing methods.

Afterword

A colleague introduced it to me, and I tried using it as a BI tool for my Zenn pages. I felt it was an extremely powerful tool. Since it can connect to data sources such as databases like PostgreSQL and MySQL, or data warehouses like BigQuery, I'd like to use it in my work as well!

References

For more detailed information, please refer to the official Google documentation Tutorial: Create a Google Analytics data source.

https://support.google.com/looker-studio/answer/6295036?hl=en&sjid=9815118672486319052-AP

Discussion