← All N8N workflows
Automation & utilitiesBaserowCodeGoogle AnalyticsHTTP RequestManual Trigger

Google analytics template

Configured with Baserow, Google Analytics, HTTP Request, Schedule Trigger. Review the connections and setup before adapting this template.

Workflow preview
TriggerSchedule TriggerSchedule TriggerTriggerWhen clicking ‘Testworkflow’Manual TriggerIntegrationGet Page EngagementStats for this weekGoogle AnalyticsIntegrationGet Page EngagementStats for prior weekGoogle AnalyticsCodeParse data from GoogleAnalyticsCodeCodeParse GA dataCodeIntegrationGet Google SearchResults for this weekGoogle AnalyticsIntegrationGet Google SearchResults for last weekGoogle AnalyticsCodeParse Google AnalyticsDataCodeCodeParse Google AnalyticsData1CodeIntegrationGet Country views datafor this weekGoogle AnalyticsIntegrationGet Country views datafor last weekGoogle AnalyticsCodeParse Google analyticsdataCodeCodeParse Google analyticsdata1CodeWeb / APISend page data to A.I.HTTP RequestWeb / APISend page Search datato A.I.HTTP RequestWeb / APISend country view datato A.I.HTTP RequestData storeSave A.I. output toBaserowBaserow

Node categories in this workflow

  • Trigger
  • Integration
  • Code
  • Web / API
  • Data store

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Schedule TriggerTriggerSchedule TriggerSee node parameters
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Get Page Engagement Stats for this weekIntegrationGoogle AnalyticsSee node parameters
Get Page Engagement Stats for prior weekIntegrationGoogle AnalyticsSee node parameters
Parse data from Google AnalyticsCodeCodeSee node parameters
Parse GA dataCodeCodeSee node parameters
Get Google Search Results for this weekIntegrationGoogle AnalyticsSee node parameters
Get Google Search Results for last weekIntegrationGoogle AnalyticsSee node parameters
Parse Google Analytics DataCodeCodeSee node parameters
Parse Google Analytics Data1CodeCodeSee node parameters
Get Country views data for this weekIntegrationGoogle AnalyticsSee node parameters
Get Country views data for last weekIntegrationGoogle AnalyticsSee node parameters
Parse Google analytics dataCodeCodeSee node parameters
Parse Google analytics data1CodeCodeSee node parameters
Send page data to A.I.Web / APIHTTP RequestPOST
Send page Search data to A.I.Web / APIHTTP RequestPOST
Send country view data to A.I.Web / APIHTTP RequestPOST
Save A.I. output to BaserowData storeBaserowcreate

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleAnalyticsOAuth2

Workflow notes

Send Google analytics to A.I. and save results to baserow

Send Google analytics to A.I. and save results to baserow

This workflow will check for country views, page engagement and google search console results. It will take this week's data and compare it to last week's data.

You can read more about this workflow here

Property ID

Property ID

  1. Create your Google Analytics Credentials
  2. Enter your property ID.
Send data to A.I.

Send data to A.I.

Fill in your Openrouter A.I. credentials. Use Header Auth.

  • Username: Authorization
  • Password: Bearer {insert your API key}

Remember to add a space after bearer. Also, feel free to modify the prompt to A.1.

Send data to Baserow

Send data to Baserow

Create a table first with the following columns:

  • Name
  • Country Views
  • Page Views
  • Search Report
  • Blog

Enter the name of your website under "Blog" field.

Google analytics template

Google analytics template

Purpose and structure

This folder contains the Google analytics template workflow. Its executable nodes use baserow, code, googleAnalytics, httpRequest, manualTrigger, scheduleTrigger. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Schedule Trigger, When clicking ‘Test workflow’

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googleanalytics/1652_Googleanalytics_Code_Automation_Webhook.json MIT; preserve source notices.

More in Automation & utilities