Automate Google Analytics Reporting - AlexK1919
Configured with Gmail, Google Analytics, Schedule Trigger. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Integration
- Code
- Transform
- Messaging
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Get Page Engagement Stats for this week | Integration | Google Analytics | See node parameters |
| Get Page Engagement Stats for prior week | Integration | Google Analytics | See node parameters |
| Get Google Search Results for this week | Integration | Google Analytics | See node parameters |
| Get Country views data for this week | Integration | Google Analytics | See node parameters |
| Aggregate Data | Code | Code | See node parameters |
| Get Google Search Results for prior week | Integration | Google Analytics | See node parameters |
| Get Country views data for prior week | Integration | Google Analytics | See node parameters |
| Parse - Get Page Engagement This Week | Code | Code | See node parameters |
| Parse - Get Page Engagement Prior Week | Code | Code | See node parameters |
| Parse - Get Google Search This Week | Code | Code | See node parameters |
| Parse - Get Google Search Prior Week | Code | Code | See node parameters |
| Parse - Country Views This Week | Code | Code | See node parameters |
| Parse - Country Views Prior Week | Code | Code | See node parameters |
| Set urlStrings | Transform | Edit Fields | See node parameters |
| Format Data | Code | Code | See node parameters |
| Input All | Code | Code | See node parameters |
| Email the Report | Messaging | Gmail | See node parameters |
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
gmailOAuth2googleAnalyticsOAuth2
Workflow notes
Aggregate Google Analytics data and Email the results
Aggregate Google Analytics data and Email the results
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.
Credit to Keith Rumjahn for the original workflow, which I modified.
Property ID
Property ID
- Create your Google Analytics Credentials
- Enter your property ID or Choose from the List of Properties.
AlexK1919
AlexK1919
I’m Alex Kim, an AI-Native Workflow Automation Architect Building Solutions to Optimize your Personal and Professional Life.
Automate Google Analytics Reporting - AlexK1919
Automate Google Analytics Reporting - AlexK1919
Purpose and structure
This folder contains the Automate Google Analytics Reporting - AlexK1919 workflow. Its executable nodes use code, gmail, googleAnalytics, manualTrigger, scheduleTrigger, set. 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
When clicking ‘Test workflow’, Schedule Trigger
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/0475_Googleanalytics_Code_Automate_Scheduled.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Format the data and Email