Weekly analytics digest
Monday morning: last week against the week before from GA4 and Stripe, explained in five lines by Claude, in Slack and email.
Included with Everything
- Tools
- n8nMakeZapier
- Job
- Reporting
- Uses
- Google Analytics, Stripe, Claude, Slack, Gmail
- Tested
- n8n 2.42.6: ran end to end against mock APIs, 11 nodes, 5 API calls
- Make: blueprint structure and mappings checked
- Zapier: steps, references and code steps checked
What it does
- Runs every Monday at 08:00 (the workflow's time zone).
- Works out last week (Monday to Sunday) and the week before.
- GA4: active users, new users, sessions, page views, engagement rate and key events for both weeks, by channel.
- Stripe: every charge in the two weeks; revenue is succeeded charges minus refunds, in your currency.
- Computes the changes and the top channels.
- Claude writes five short lines: the headline, traffic, channels, revenue, and the one thing to check.
- Posts the lines to Slack and emails them to the team with a table of the figures.
Prerequisites
- GA4 property (Viewer access)
- Stripe restricted key (Charges: read)
- Anthropic API key
- Slack bot with chat:write
- Gmail or Google Workspace account (Google OAuth client with the Gmail and Analytics Data APIs on)
Settings
| Placeholder | What | Where it goes |
|---|---|---|
ANTHROPIC_API_KEY | Claude API key | Anthropic API credential, header x-api-key |
GOOGLE_CLIENT_ID | Google OAuth client ID | Google Analytics and Gmail credentials (OAuth2), Client ID |
GOOGLE_CLIENT_SECRET | Google OAuth client secret | Google Analytics and Gmail credentials (OAuth2), Client Secret |
STRIPE_RESTRICTED_KEY | Stripe restricted key, Charges read | Stripe credential, Secret Key |
SLACK_BOT_TOKEN | Slack bot token | Slack bot credential |
Keys stay in your tool's credentials, never in the files.