Connect Gmail to Google Analytics
Ideas
What you can do with Gmail and Google Analytics
Get a weekly website report from Google Analytics by email
Every Monday you get an email with last week's visitors, engagement and top pages compared with the week before, plus a short explanation.
See how it worksGet an email when your website traffic changes sharply
When yesterday's traffic, conversions or a key source moves sharply from normal, you get an email explaining what changed and what to do.
See how it worksTrack visits from AI assistants to your website
Every week you get an email showing how many visitors came from AI assistants such as ChatGPT, Claude, Perplexity and Gemini, and which pages they landed on.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Gmail and Google Analytics, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Gmail and Google Analytics 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
Email me only if conversion rate from paid traffic drops below 1.5% for two days in a row.
Every Friday, email me the five landing pages with the most sessions but the lowest engagement rate, with AI suggestions for each.
Use cases
Why people connect Gmail and Google Analytics
How the two apps work together
- GA4 does not send webhooks, so the script pulls reports from the Google Analytics Data API on a schedule, such as daily or weekly.
- It compares the numbers you choose against earlier periods and can add an AI summary.
- The report is sent from your Gmail account to the recipients you list.
Founders get a Monday traffic email
Users, sessions, conversions and top pages for last week arrive in one email. No GA4 login needed to see if the site is growing.
Agencies send monthly client reports
Each client gets an email with their GA4 numbers, month-over-month change and a short AI commentary. Reporting day takes minutes.
Ecommerce managers watch revenue and conversion rate
A daily email shows purchases, revenue and conversion rate compared to the same day last week. Problems with checkout show up the next morning.
Content teams see which posts bring traffic
A weekly email lists new blog posts and their pageviews and sources. Writers learn which topics work.
More apps
Gmail, Google Analytics and other apps in one automation
GA4 email report plus a sheet history
Every Monday, email me last week's GA4 users, sessions and conversions and append the same numbers to my Traffic History Google Sheet.
Combined Search Console and GA4 report
Each Monday, email me GA4 organic sessions plus the top 10 Search Console queries by clicks for last week, with changes from the week before.
Email and Slack alert for traffic drops
If yesterday's GA4 sessions were 30% lower than the same day last week, email me and post a short alert in #marketing on Slack.
Setup
Connect Gmail and Google Analytics once
Gmail
- At console.cloud.google.com, create a project and enable the Gmail API under APIs & Services → Library.
- Set up the OAuth consent screen. On Google Workspace choose Internal. On a personal Gmail account choose External, then under Audience click Publish app so it is In production, not Testing.
- Under Data Access, add the scopes you need, such as
https://www.googleapis.com/auth/gmail.modify, orgmail.sendif you only want to send. - Under Clients, create an OAuth client of type Web application with the redirect URI
https://clickruntime.com/oauth/callback. - In the ClickRuntime dashboard, open Connections, choose Gmail and enter the client ID and secret. On a personal account Google shows an unverified-app screen: click Advanced, then go to your app.
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.
FAQ
Questions about connecting Gmail and Google Analytics
How does ClickRuntime read my Google Analytics?
Can the report go to people without an Analytics login?
Does it work with Universal Analytics?
Which numbers can it report?
Which GA4 access does the connected account need?
Can one report cover several properties?
How current is the data?
Related pages
Keep exploring
Tell your assistant what Gmail and Google Analytics should do together
Free plan. No credit card.