Back to Integrations
integrationGoogle Ads node
integrationGoogle Analytics node

Google Ads and Google Analytics integration

Save yourself the work of writing custom integrations for Google Ads and Google Analytics and use n8n instead. Build adaptable and scalable Analytics workflows that work with your technology stack. All within a building experience you will love.

How to connect Google Ads and Google Analytics

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Google Ads and Google Analytics integration: Create a new workflow and add the first step

Step 2: Add and configure Google Ads and Google Analytics nodes

You can find Google Ads and Google Analytics in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Google Ads and Google Analytics nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Google Ads and Google Analytics integration: Add and configure Google Ads and Google Analytics nodes

Step 3: Connect Google Ads and Google Analytics

A connection establishes a link between Google Ads and Google Analytics (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Google Ads and Google Analytics integration: Connect Google Ads and Google Analytics

Step 4: Customize and extend your Google Ads and Google Analytics integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Google Ads and Google Analytics with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Google Ads and Google Analytics integration: Customize and extend your Google Ads and Google Analytics integration

Step 5: Test and activate your Google Ads and Google Analytics workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Google Ads to Google Analytics or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Google Ads and Google Analytics integration: Test and activate your Google Ads and Google Analytics workflow

Automate unified marketing reports with Google Analytics, Google Ads, Meta Ads & HubSpot

How it works
This workflow runs on scheduled weekly and monthly triggers to generate unified marketing performance reports. It processes multiple websites by collecting analytics data, paid ads performance, and CRM leads, then calculates KPIs and insights automatically. The workflow sends structured reports via email and stores historical data in Google Sheets. It ensures consistent reporting without manual effort.

Step-by-step
Step 1: Trigger & report type detection**
Schedule Trigger2 – Triggers the workflow weekly at a predefined time.
Schedule Trigger3 – Triggers the workflow monthly at a predefined time.
check month and week1 – Identifies whether the run is weekly or monthly and sets flags.
Set Websites and Campaings1 – Defines websites, GA4 property IDs, and mapped ad campaigns.
Expand Websites1 – Expands the website array into individual website items.
Attach Run Flags1 – Attaches weekly or monthly flags to each website record.

Step 2: Website & ads data processing**
Loop Websites1 – Iterates through each website independently.
Get a report – Fetches website traffic and engagement metrics from analytics.
Get many campaigns – Retrieves Google Ads campaign data.
Fetch Meta Ads – Fetches Meta Ads performance data via API.
Filter Google Ads By Website1 – Filters Google Ads campaigns by website.
Filter Meta Ads By Website1 – Filters Meta Ads campaigns by website.
Merge1 – Merges analytics, Google Ads, and Meta Ads datasets.
Build Website Dataset1 – Builds a unified dataset per website.
Calculate KPIs & Campaign Insights1 – Calculates spend, CTR, CPA, CPL, conversions, and performance insights.
Append or update row in sheet2 – Stores website-level marketing metrics in Google Sheets.

Step 2.1: Marketing report generation**
Prepare Report Data2 – Combines all website datasets into a unified report object.
Switch – Routes execution based on weekly or monthly report type.
Send Weekly Marketing report2 – Sends the weekly marketing performance email.
Send Monthly Marketing Report2 – Sends the monthly marketing performance email.

Step 3: HubSpot lead analysis**
Fetch1 – Fetches leads from HubSpot CRM.
Filter Hubspot Leads – Filters leads based on weekly or monthly time range.
Summarize Hubspot Leads – Aggregates lead status and lifecycle metrics.
Prepare Report Data3 – Prepares CRM summary data for reporting.
Step 3.1: CRM reporting & storage**
Switch3 – Routes CRM reporting by report type.
Send Weekly Marketing report3 – Sends the weekly CRM summary email.
Send Monthly Marketing Report3 – Sends the monthly CRM summary email.
Code in JavaScript1 – Transforms CRM data for storage.
Append or update row in sheet3 – Stores CRM lead performance data in Google Sheets.
Switch3 – Routes CRM reporting by report type.
Send Weekly Marketing report3 – Sends the weekly CRM summary email.
Send Monthly Marketing Report3 – Sends the monthly CRM summary email.
Code in JavaScript1 – Transforms CRM data for storage.
Append or update row in sheet3 – Stores CRM lead performance data in Google Sheets.

Why use this?
Automates complex weekly and monthly marketing reporting.
Unifies website analytics, ad platforms, and CRM data in one flow.
Delivers consistent KPI calculations and insights every run.
Maintains historical performance logs in Google Sheets.
Scales easily across multiple websites and campaigns.

Nodes used in this workflow

Popular Google Ads and Google Analytics workflows

+2

Automate unified marketing reports with Google Analytics, Google Ads, Meta Ads & HubSpot

How it works This workflow runs on scheduled weekly and monthly triggers to generate unified marketing performance reports. It processes multiple websites by collecting analytics data, paid ads performance, and CRM leads, then calculates KPIs and insights automatically. The workflow sends structured reports via email and stores historical data in Google Sheets. It ensures consistent reporting without manual effort. Step-by-step Step 1: Trigger & report type detection** Schedule Trigger2 – Triggers the workflow weekly at a predefined time. Schedule Trigger3 – Triggers the workflow monthly at a predefined time. check month and week1 – Identifies whether the run is weekly or monthly and sets flags. Set Websites and Campaings1 – Defines websites, GA4 property IDs, and mapped ad campaigns. Expand Websites1 – Expands the website array into individual website items. Attach Run Flags1 – Attaches weekly or monthly flags to each website record. Step 2: Website & ads data processing** Loop Websites1 – Iterates through each website independently. Get a report – Fetches website traffic and engagement metrics from analytics. Get many campaigns – Retrieves Google Ads campaign data. Fetch Meta Ads – Fetches Meta Ads performance data via API. Filter Google Ads By Website1 – Filters Google Ads campaigns by website. Filter Meta Ads By Website1 – Filters Meta Ads campaigns by website. Merge1 – Merges analytics, Google Ads, and Meta Ads datasets. Build Website Dataset1 – Builds a unified dataset per website. Calculate KPIs & Campaign Insights1 – Calculates spend, CTR, CPA, CPL, conversions, and performance insights. Append or update row in sheet2 – Stores website-level marketing metrics in Google Sheets. Step 2.1: Marketing report generation** Prepare Report Data2 – Combines all website datasets into a unified report object. Switch – Routes execution based on weekly or monthly report type. Send Weekly Marketing report2 – Sends the weekly marketing performance email. Send Monthly Marketing Report2 – Sends the monthly marketing performance email. Step 3: HubSpot lead analysis** Fetch1 – Fetches leads from HubSpot CRM. Filter Hubspot Leads – Filters leads based on weekly or monthly time range. Summarize Hubspot Leads – Aggregates lead status and lifecycle metrics. Prepare Report Data3 – Prepares CRM summary data for reporting. Step 3.1: CRM reporting & storage** Switch3 – Routes CRM reporting by report type. Send Weekly Marketing report3 – Sends the weekly CRM summary email. Send Monthly Marketing Report3 – Sends the monthly CRM summary email. Code in JavaScript1 – Transforms CRM data for storage. Append or update row in sheet3 – Stores CRM lead performance data in Google Sheets. Switch3 – Routes CRM reporting by report type. Send Weekly Marketing report3 – Sends the weekly CRM summary email. Send Monthly Marketing Report3 – Sends the monthly CRM summary email. Code in JavaScript1 – Transforms CRM data for storage. Append or update row in sheet3 – Stores CRM lead performance data in Google Sheets. Why use this? Automates complex weekly and monthly marketing reporting. Unifies website analytics, ad platforms, and CRM data in one flow. Delivers consistent KPI calculations and insights every run. Maintains historical performance logs in Google Sheets. Scales easily across multiple websites and campaigns.

Build your own Google Ads and Google Analytics integration

Create custom Google Ads and Google Analytics workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Google Ads supported actions

Get Many
Get many campaigns linked to the specified account
Get
Get a specific campaign

Google Analytics supported actions

Get
Return the analytics data
Search
Return user activity data

FAQs

  • Can Google Ads connect with Google Analytics?

  • Can I use Google Ads’s API with n8n?

  • Can I use Google Analytics’s API with n8n?

  • Is n8n secure for integrating Google Ads and Google Analytics?

  • How to get started with Google Ads and Google Analytics integration in n8n.io?

Need help setting up your Google Ads and Google Analytics integration?

Discover our latest community's recommendations and join the discussions about Google Ads and Google Analytics integration.
Du Ponce

Looking to integrate Google Ads and Google Analytics in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Google Ads with Google Analytics

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon