Icon

Google Analytics 4 Blends Local Files

<p>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.<br><br>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.<br><br>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.<br><br>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.<br><br>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.<br><br>Finally, we create a new Google Sheets document using the Google Sheets Writer node.</p>

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

GA4 blends with local files

  • In this workflow, we demonstrate how to merge your local data with Google Analytics data and export it to any desired location, such as a new Google sheet.

  • To run the workflow, ensure you have an active Google Analytics account and the necessary permission. Afterwards, authenticate using the Google Authenticator node.

  • To learn more about the workflow, click the left bar and check the description section.


Google Analytics Connector
Fetching session, total users bycity ID and date
Google Analytics Query
Geo Targets CSV
CSV Reader
Use city_Id as Look up column and CRITERIA_IDas Key column
Value Lookup
Google Sheets Connector
Create and open a new Google Sheet
Google Sheets Writer
Convert CRITERIA_ID column into string to performthe value look up operation.
Number to String
Open the configurationwindow and authenticateby clicking the "Login" button.
Google Authenticator

Nodes

Extensions

Links