Skip to content

Weekly

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.

Runs
Weekly
Apps
Gmail, Google Analytics
AI
Yes, uses the built-in AI allowance
Access
GA4 Viewer (service account); gmail.send

Send this to your assistant

Create a ClickRuntime automation: every Monday at 8am, pull last week's users, sessions, engagement rate and top 10 pages from GA4, compare them with the week before, add a short AI commentary and email it to me and my team.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A small business owner knows they should keep an eye on their website, but GA4 is confusing and they never open it. When sales dip, they cannot tell whether fewer people visited or the same people stopped buying.

A short weekly email with the key numbers and a plain explanation keeps them informed in two minutes, and gives the team a shared sense of how the site is doing.

What you get out of it

  • No GA4 skills needed

    The numbers arrive in plain language, with no reports to build.

  • Week on week, at a glance

    Every figure shows its change from the week before, which is what tells you whether something happened.

  • A short explanation

    AI points out what moved and the likely reasons, such as a new page or a drop in one source.

  • Shared with the team

    Everyone sees the same report, so conversations start from the same facts.

How it works

What happens, step by step

  1. Every Monday morning, ClickRuntime asks Google Analytics for last week's and the previous week's numbers.

  2. It works out the change in visitors, sessions and engagement, and lists the top pages.

  3. AI writes a few lines explaining what moved.

  4. The report is emailed from your Gmail to you and anyone you listed.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect Google Analytics

What you get

RunsWeekly
Get a weekly website report from Google Analytics by emailtoday, 9:00Succeeded
Email · Website last weekVisits rose 14%, mostly from the new pricing guide. Users: 4,812 (+14%) · Sessions: 6,390 (+11%) · Top page: /pricing-guide

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Gmail and Google Analytics steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
weekly_ga4_report_by_email.pyexample
import base64
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, http, credentials, ai

def api(name, version):
    return build(name, version, credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)

def send_gmail(to, subject, text):
    raw = base64.urlsafe_b64encode(f"To: {to}\r\nSubject: {subject}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n{text}".encode()).decode()
    api("gmail", "v1").users().messages().send(userId="me", body={"raw": raw}).execute()

PROPERTY = "123456789"

def ga(body):
    url = f"https://analyticsdata.googleapis.com/v1beta/properties/{PROPERTY}:runReport"
    return http.post(url, headers={"Authorization": f"Bearer {credentials.connection('google', 'work')}"}, json=body).json().get("rows", [])

WEEKS = [{"startDate": "7daysAgo", "endDate": "yesterday"}, {"startDate": "14daysAgo", "endDate": "8daysAgo"}]

@on_trigger
def run(event):
    totals = ga({"dateRanges": WEEKS, "metrics": [{"name": m} for m in ("totalUsers", "sessions", "engagementRate")]})
    pages = ga({"dateRanges": WEEKS[:1], "dimensions": [{"name": "pagePath"}], "metrics": [{"name": "screenPageViews"}],
                "orderBys": [{"metric": {"metricName": "screenPageViews"}, "desc": True}], "limit": 10})
    now, before = ([float(v["value"]) for v in r["metricValues"]] for r in totals)
    names = ["Users", "Sessions", "Engagement rate"]
    lines = [f"{n}: {a:,.2f} ({(a - b) / b * 100:+.0f}%)" if b else f"{n}: {a:,.2f}" for n, a, b in zip(names, now, before)]
    lines += ["", "Top pages:"] + [f"{p['dimensionValues'][0]['value']}: {p['metricValues'][0]['value']} views" for p in pages]
    report = "\n".join(lines)
    note = ai.generate(report, system="In 3-4 plain sentences, explain what changed on this website last week.", max_output_tokens=200).text
    send_gmail("you@example.com, team@example.com", "Website last week", f"{note}\n\n{report}")
    return {"sent": True}

FAQ

Common questions

Can it include conversions or revenue?
Yes. Name your key events or ecommerce revenue in the prompt and they are added to the report.
Can I get it monthly instead?
Yes. Change the schedule and the comparison period to month on month.
Can it report on several websites?
Yes. List the GA4 properties and each gets its own section.
What permissions does it need?
GA4 Viewer (service account); gmail.send. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it runs (weekly). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get a weekly website report from Google Analytics by email” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.