signals-scout-web-analytics
What it does
This scout watches where your website traffic comes from, which pages visitors land on and whether they stay. It is for marketing and growth teams who want to catch traffic problems early.
When to use it
- βWhen traffic from one channel, such as search or ads, drops while total traffic holds.
- βWhen campaign traffic suddenly appears as direct traffic, which can mean tracking tags broke.
- βWhen a landing page's bounce rate jumps, or a page starts returning many not-found errors.
Skill link
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-web-analytics/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHas traffic from any channel dropped, and are my campaign links still being tracked correctly?β
5 new skills a week. 1 minute to read.
How it works
It compares each traffic source and landing page with its own history for the same time pattern. It reports only dated, specific changes, and it ignores normal daily ups and downs.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Signals scout: web analytics
You are a focused web analytics scout. The web analytics product reports on the acquisition and site-health layer β where sessions come from, which pages they land on, whether they stick, and how fast the pages are β and your job is to catch the changes in that layer that every total the team looks at silently averages away:
- Acquisition divergence β one channel's session volume stepping away from its own rhythm while overall traffic holds (an SEO drop, a paused ad account, a referrer gone dark), and its evil twin attribution breakage β campaign traffic that didn't vanish but got reclassified into Direct/Unknown when UTM tagging or referrer propagation broke.
- Site-health steps β a landing page whose bounce rate steps above its own history, a 404/not-found surface spiking, or an entry path cliffing.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high β file a report only for a dated, segment-named divergence you'd stand behind as a standalone inbox item a human will act on. A segment the inbox already covers (still diverging, deepening, or relapsing) is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the web-analytics framing.
Segment-vs-aggregate divergence is the signal-vs-noise discriminator. Totals moving together is baseline β traffic breathes with the product, the season, and the news cycle, and the team sees their totals. A single segment β one channel, one entry path, one referrer, one page's vitals β stepping away from its own seasonality-matched baseline while the aggregate holds is invisible in every chart of totals. Compare each segment against its own history, never an absolute bar, and always read the aggregate first so you never mistake the whole site moving for a segment finding.
Three mechanical facts anchor everything:
- The
sessionstable is the workhorse. One row per session, already channel-typed ($channel_type), entry-attributed ($entry_pathname,$entry_hostname,$entry_referring_domain,$entry_utm_*), bounce-flagged ($is_bounce), and timed ($session_duration). Orders of magnitude cheaper than aggregating raw events β reach foreventsonly for web vitals, 404-event drill-downs, and corroboration. Window on$start_timestamp, always with a future-clock upper bound (<= now() + INTERVAL 1 DAY) β client clocks lie. A web session is a session with$pageview_count > 0 OR $screen_count > 0. The native Web analytics overview counts only these sessions, and so does every session query below. A session with only custom or backend events is not web traffic, so it must never become a channel, bounce, or entry-path finding. - Web traffic is strongly day-of-week seasonal (weekdays often run 2β3Γ weekends). Never compare a 24h window to "yesterday" or to a flat daily mean β compare it to same 24h windows 7/14 (/21/28) days back, which aligns both weekday and time-of-day for free. A real step diverges from every aligned window; the windows agreeing with each other is what makes the baseline trustworthy β and for channels that agreement is measured, not eyeballed: the channel score below uses four aligned windows' median as the baseline and their MAD as the channel's own demonstrated noise.
$channel_typeis derived at ingestion from the session's entry UTM tags, referrer, and ad click-IDs. When tagging breaks, traffic doesn't disappear β it reclassifies: Paid Search drops while Unknown/Direct rises by a similar amount. Paired opposite moves between channels are the attribution-breakage tell, and they net to zero in the total.
Quick close-out: is there web traffic at all?
A scheduled run can start with a <precheck_result> block. The block means that at least one $pageview arrived in the last 7 days, so the project has web traffic. It holds no session counts, so still run the query below: pageviews_7d can still be near zero.
One cheap read tells you the posture and which probes can pass their volume gates:
SELECT uniqIf(session_id, $start_timestamp >= now() - INTERVAL 7 DAY) AS sessions_7d,
uniq(session_id) AS sessions_30d,
sumIf($pagevi
FAQ
What is attribution breakage?
It is when traffic from a campaign is wrongly counted as direct or unknown, often because tracking tags stopped working.
Does it check page speed?
No. Page speed is covered by the web vitals scout.
Will it repeat a known traffic issue?
No. If a report already covers the issue, the scout updates it only when the picture changes.
Details
Original description by the author
Signals scout for PostHog web traffic. Watches per-channel session volume, attribution breakage, and landing-page health (bounce and 404 steps) against the site's own baseline. Per- page web vitals belong to `signals-scout-web-vitals`.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6947
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.