Weekly
Post a weekly website brief to Slack
Every Monday, Slack shows last week's visitors, conversions and top pages compared with the week before, with a short explanation.
- Runs
- Weekly
- Apps
- Google Analytics, Slack
- AI
- Yes, uses the built-in AI allowance
- Access
- GA4 Viewer for service account; chat:write
Send this to your assistant
Create a ClickRuntime automation: every Monday at 9am, post a brief to #marketing with last week's GA4 users, sessions, conversions and top 5 pages, each compared with the week before, plus a 3-line AI summary of what moved.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A marketing team of four spends the first part of every Monday meeting pulling up GA4 and arguing about date ranges. By the time everyone agrees on the numbers, there is no time left to talk about what to do.
A brief posted before the meeting means everyone arrives with the same numbers and the meeting starts with what to do about them.
What you get out of it
Everyone sees the same numbers
One brief, one date range, posted where the team already is.
Meetings start with decisions
The numbers are read before the meeting, so time goes on what to do next.
Change, not just totals
Every figure shows how it moved from the previous week.
A plain summary
AI explains the biggest moves in three lines, so people outside marketing can follow it.
How it works
What happens, step by step
Every Monday morning, ClickRuntime asks Google Analytics for last week's and the previous week's numbers.
It works out the change in users, sessions and conversions, and lists the top pages.
AI writes a three-line summary of what moved.
The brief is posted to your #marketing Slack channel.
Before it runs live
- Connect Google Analytics
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
What you get
Build your own
Need it to work differently?
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 Google Sheets
- Combine it with other Google Analytics and Slack steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, http, credentials, ai, notify
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"}]
METRICS = ["totalUsers", "sessions", "conversions"]
@on_trigger
def run(event):
totals = ga({"dateRanges": WEEKS, "metrics": [{"name": m} for m in METRICS]})
now, before = ([float(v["value"]) for v in r["metricValues"]] for r in totals)
lines = [f"{m}: {a:,.0f} ({(a - b) / b * 100:+.0f}%)" if b else f"{m}: {a:,.0f}" for m, a, b in zip(METRICS, now, before)]
pages = ga({"dateRanges": WEEKS[:1], "dimensions": [{"name": "pagePath"}], "metrics": [{"name": "screenPageViews"}],
"orderBys": [{"metric": {"metricName": "screenPageViews"}, "desc": True}], "limit": 5})
lines += ["Top pages:"] + [f"• {p['dimensionValues'][0]['value']} ({p['metricValues'][0]['value']})" for p in pages]
body = "\n".join(lines)
summary = ai.generate(body, system="In 3 short lines, explain what moved on this website last week and why it might have.", max_output_tokens=150).text
notify.slack(f"*Website last week*\n{summary}\n\n{body}", channel="#marketing")
return {"posted": True}FAQ
Common questions
Can I add our own goals?
Can it post monthly too?
Can team members ask follow-up questions?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get a Slack alert when a page loses traffic
Each morning, Slack lists the pages whose traffic fell most compared with the previous 28 days, with a likely reason and a suggested fix.
See how it worksGet a daily news digest in Slack
Each morning your team gets a short summary of what's new on the sites and blogs you follow.
See how it worksFollow your stocks and crypto in Slack
During market hours you get a short update on the tickers you care about, with a heads-up on big moves.
See how it worksKeep exploring
Set up “Post a weekly website brief to Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.