On a schedule
Get a monthly search traffic report in Telegram
On the 1st of each month Telegram shows how your search traffic changed, with the landing pages that gained and lost the most.
- Runs
- On a schedule
- Apps
- Google Analytics, Telegram
- AI
- Yes, uses the built-in AI allowance
- Access
- GA4 Viewer; bot token
Send this to your assistant
Create a ClickRuntime automation: on the 1st of every month, compare last month's organic search sessions in GA4 with the month before, list the 5 landing pages that gained most and the 5 that lost most, add a short AI summary and send it to my Telegram.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A content marketer publishes several articles a month and needs to know which ones are earning search traffic and which older pages are slipping. GA4 can show it, but it takes a custom exploration they rebuild every month.
A monthly message with the winners and losers points them straight at the pages that need a refresh and the topics worth writing more about.
What you get out of it
Know which pages are slipping
Pages losing search traffic are listed, so you can update them before they drop further.
See what is working
The biggest gainers show which topics and formats search engines reward.
No monthly report building
The comparison is done for you on the 1st.
On your phone
The summary arrives in Telegram, ready to forward to a writer or an agency.
How it works
What happens, step by step
On the 1st of each month, ClickRuntime asks Google Analytics for organic search sessions by landing page for the last two months.
It works out which pages gained and lost the most.
AI writes a short summary of the month.
The summary and the two lists are sent to your Telegram chat.
Before it runs live
- Connect Google Analytics
- Connect Telegram
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 Slack
- Combine it with other Google Analytics and Telegram steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, http, credentials, ai
CHAT_ID = "123456789"
def tg(method, **params):
r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
return r.raise_for_status() or r.json()["result"]
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", [])
MONTHS = [{"startDate": "30daysAgo", "endDate": "yesterday"}, {"startDate": "60daysAgo", "endDate": "31daysAgo"}]
ORGANIC = {"filter": {"fieldName": "sessionDefaultChannelGroup", "stringFilter": {"value": "Organic Search"}}}
@on_trigger
def run(event):
rows = ga({"dateRanges": MONTHS, "dimensions": [{"name": "landingPage"}], "metrics": [{"name": "sessions"}],
"dimensionFilter": ORGANIC, "limit": 500})
pages = {}
for r in rows:
page, rng = r["dimensionValues"][0]["value"], r["dimensionValues"][1]["value"]
pages.setdefault(page, [0, 0])[0 if rng == "date_range_0" else 1] = int(r["metricValues"][0]["value"])
moves = sorted(((now - before, page, now) for page, (now, before) in pages.items()), reverse=True)
total_now, total_before = sum(v[0] for v in pages.values()), sum(v[1] for v in pages.values())
fmt = lambda xs: "\n".join(f"{p}: {n} ({d:+d})" for d, p, n in xs)
data = f"Organic sessions {total_now} vs {total_before}\n\nGainers:\n{fmt(moves[:5])}\n\nLosers:\n{fmt(moves[-5:][::-1])}"
note = ai.generate(data, system="In 3 sentences, summarise this month's search traffic and what to do next.", max_output_tokens=200).text
tg("sendMessage", chat_id=CHAT_ID, text=f"🔎 Search traffic last month\n{note}\n\n{data}"[:4000])
return {"pages": len(pages)}FAQ
Common questions
Does it include keywords?
What counts as organic traffic?
Can it go to my agency too?
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 weekly website report in Telegram
Every Monday a Telegram message compares last week's traffic, sources and top pages with the week before, with a short explanation.
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 “Get a monthly search traffic report in Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.