Connect Google Analytics to Google Sheets
Ideas
What you can do with Google Analytics and Google Sheets
Log your weekly website numbers to a sheet
Every week your key GA4 numbers are added as a row in your reporting sheet, and you get an email summarising what changed.
See how it worksLog daily website KPIs and get alerted when one drops
Every day yesterday's key numbers go into a sheet, and you are alerted in Slack and by email if any falls well below its recent average.
See how it worksWrite a monthly search traffic report to a sheet
Each month, organic search traffic by landing page is written to a sheet with the change from the month before, and you get an email listing the best opportunities.
See how it worksLog daily GA4 traffic by source to Google Sheets
Each morning yesterday's GA4 sessions, users and key events per source / medium are appended to a Traffic tab.
See how it worksWeekly GA4 top pages report in Google Sheets
Every Monday a new tab lists last week's top 50 pages by views, with users, engagement time and change against the week before.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Google Analytics and Google Sheets, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Google Analytics and Google Sheets automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Each week, read the list of URLs in column A of my Pages sheet and fill in their GA4 pageviews and average engagement time for the last 7 days.
Every day, log GA4 sessions by source and mark the row red in a Status column when any source drops more than 40% from its 4-week average.
Use cases
Why people connect Google Analytics and Google Sheets
How the two apps work together
- The script queries the GA4 Data API on a schedule, such as every morning, because GA4 has no webhooks.
- It appends rows or updates a range in the Google Sheet you choose.
- It can also read targets or page lists from the sheet and use them to decide what to fetch or flag.
Analysts keep a daily metrics table
Users, sessions, conversions and revenue are added as one row per day. Pivot tables and charts in Sheets update on their own.
Agencies build client dashboards in Sheets
Each client's GA4 numbers fill a tab that feeds a Looker Studio or Sheets chart. Monthly reports no longer need manual exports.
SEO teams track pages over time
Pageviews and engagement for each landing page are logged weekly. It shows which pages are slipping long before rankings tools flag them.
Finance teams reconcile marketing numbers
GA4 conversions by source are written next to spend data in the same workbook. Cost per acquisition is calculated with normal formulas.
More apps
Google Analytics, Google Sheets and other apps in one automation
Sheet log with a Slack summary
Every morning, add yesterday's GA4 numbers to my KPI sheet and post a one-line summary with the change from the day before in #growth on Slack.
GA4 and Google Ads in one sheet
Every day, write yesterday's Google Ads spend and clicks per campaign next to GA4 conversions for the same campaigns in my Marketing sheet.
Email when a sheet target is missed
Each Monday, compare last week's GA4 signups with the target in my Targets sheet and email me if we are more than 10% below it.
Setup
Connect Google Analytics and Google Sheets once
Google Analytics
Analytics
- In Google Cloud Console, enable the Google Analytics Data API (and the Admin API if you want reports across several properties).
- Create a service account and download a JSON key for it.
- In GA4, go to Admin, Property Access Management, and add the service account's email with the Viewer role.
- In the ClickRuntime dashboard, open Connections & secrets, upload the JSON key and enter your numeric GA4 Property ID.
Google Sheets
Spreadsheets
- In the ClickRuntime dashboard, open Connections and choose Google Sheets.
- Sign in with your Google account and allow access.
- Pick the spreadsheets the automation may use. It can't see any other file in your Drive.
FAQ
Questions about connecting Google Analytics and Google Sheets
Does it need access to my whole Drive?
Will it overwrite my formulas?
Can I chart the results?
Can it log more than one website?
How far back can it go?
Can it backfill past data?
Will it change rows I have edited?
Can I choose the dimensions and metrics?
Related pages
Keep exploring
Tell your assistant what Google Analytics and Google Sheets should do together
Free plan. No credit card.