Skip to content

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.

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 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

  1. On the 1st of each month, ClickRuntime asks Google Analytics for organic search sessions by landing page for the last two months.

  2. It works out which pages gained and lost the most.

  3. AI writes a short summary of the month.

  4. The summary and the two lists are sent to your Telegram chat.

Before it runs live

  • Connect Google Analytics
  • Connect Telegram

What you get

RunsOn a schedule
Get a monthly search traffic report in Telegramtoday, 9:00Succeeded
Telegram · SEO monthly🔎 Search traffic last month: 12,480 sessions (+6%). Gainers: /guides/stock-takes (+840). Losers: /blog/2024-pricing (−410), worth refreshing.

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 Google Analytics and Telegram 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.
monthly_seo_traffic_report_to_telegram.pyexample
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?
GA4 does not hold search keywords. For those you can connect Google Search Console as well.
What counts as organic traffic?
Sessions GA4 puts in the Organic Search channel, which covers Google, Bing and other search engines.
Can it go to my agency too?
Yes. Add them to the Telegram group, or ask for an email copy to their address.
What permissions does it need?
GA4 Viewer; bot token. 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 (on a schedule). 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 monthly search traffic report in Telegram” from your assistant

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