Weekly Fathom Analytics digest that records why the graph moved
Every Monday this flow logs last week's Fathom Analytics numbers in Google Sheets, posts a digest to Slack, and asks your marketing lead what caused any big swing, then marks it as a milestone.
The prompt
Every Monday morning, pull last week and the week before from Fathom Analytics: total pageviews, visitors and bounce rate, pageviews by page, visits by referrer, and our signup event by UTM campaign. Add the week's totals as a row in our traffic log in Google Sheets and post a digest to our marketing channel in Slack with the top pages, referrers and campaigns. If any page, referrer or campaign moved by 50% or more against the week before, ask our marketing lead in the thread what ran and when it started. When they reply, add a milestone on that date in Fathom Analytics so the graph shows the reason, and confirm in the thread.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: Until the lead replies
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Pull both weeks from Fathom Analytics Every Monday, runs eight Fathom Analytics reports side by side: totals, pages, referrers and signups by UTM campaign, for last week and the week before.
- Compare the two weeks Works out each change against the week before and flags any page, referrer or campaign that moved by half or more, up or down, once it has enough traffic to count.
- Log the week in Google Sheets Adds the week's pageviews, visitors, bounce rate, signups and flagged swings as one row in your traffic log.
- Post the digest to Slack Posts the totals, the top five pages, referrers and campaigns, and any big swings to your marketing channel. A week with no big swings ends here.
- Ask the marketing lead Asks the marketing lead in the digest's thread what ran, such as a launch, a campaign, an email or a post, and the day it started.
- Until the lead replies Checks the thread every 30 minutes for up to three days and picks up the first reply.
- Read the lead's answer An AI agent turns the reply into a short milestone name and a date. A reply of nothing ends the run.
- Mark the cause on the graph Adds the milestone in Fathom Analytics on the day it started and confirms in the Slack thread, so the graph explains the jump to whoever reads it next.
Before you turn it on
- Enter your Fathom Analytics API token in the Fathom Analytics settings. A token with Full access covers every step. Connect your Google Sheets and Slack accounts.
- Add your Anthropic key in the flow setting Anthropic key.
- Fill the flow settings Site ID (the ID in your tracking code), Signup event (the event name exactly as tracked) and Marketing lead (their Slack member ID).
- Make a Google Sheet whose first tab has the headers Week starting, Week ending, Pageviews, Visitors, Bounce rate, Signups, Pageviews vs week before, Signups vs week before and Flagged swings. Put its URL or ID in the flow setting Traffic log sheet.
- Pick your marketing channel in the four Slack steps, and set the flow's schedule to Monday morning.
- Change Swing threshold %, Minimum visits for a swing and Minimum signups for a swing if your traffic needs other limits.
- Every Fathom Analytics API request counts toward the account's monthly pageviews. This flow makes eight report requests a week, plus one for each milestone it adds.