Icon

Google Analytics 4 Blends Local Files

There has been no title set for this workflow's metadata.

This workflow showcases the capabilities of Google Analytics 4 in conjunction with the KNIME Analytics Platform. You can easily download and run the workflow directly in your KNIME installation. We recommend that you use the latest version of the KNIME Analytics Platform for optimal performance.

As you may notice, the workflow nodes are currently not executed (indicated by the red light) because you need to authenticate through your Google account via the Google Authenticator node. Select the node and refer to its description on the left side panel for instructions on storing your credentials within the workflow.

By default, the credentials are stored in memory, meaning you must authenticate again when you reset the node or close the workflow.

Once you have authenticated, you can connect to the Google Analytics Connector and the Google Sheets Connector. The Google Analytics Query node allows you to configure your query and extract data, such as sessions and total users by city (ID) and date. Due to demo purposes, you don't need to configure the node. Just run it.

In the bottom branch, we read the Geo Targets file using the CSV Reader node, which contains information such as city ID, city name, country, etc. This file was downloaded from Google and saved in the workflow data area.

With the Value LookUp node, we perform a VLOOKUP-like function using the Geo Target list as our dictionary table and the city ID as the key value. The final output is a table from Google Analytics with appended Geo Target information.

Finally, we create a new Google Sheets document using the Google Sheets Writer node. Remember that the Google Sheets sheet will be overwritten each time you run the node.

URL: Geo Target source - Google https://developers.google.com/google-ads/api/data/geotargets?hl=en

Nodes

Extensions

Links