跳到正文
Skillpedia
分析与电子表格41k · #6947

signals-scout-web-analytics

它能做什么

该侦察器监看你网站流量的来源、访客着陆的页面以及他们是否停留。适合希望及早发现流量问题的营销和增长团队。

适用场景

  • ✓当某个渠道(例如搜索或广告)的流量下降,而总流量保持不变时。
  • ✓当广告活动的流量突然显示为直接访问时,这可能意味着追踪代码已失效。
  • ✓当某个落地页的跳出率突然上升,或某个页面开始频繁返回找不到页面的错误的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-web-analytics/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-web-analytics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“是否有任何渠道的流量下降?我的广告活动链接是否仍被正确追踪?”

每周 5 个新技能,1 分钟读完。

工作原理

它会将每个流量来源和落地页,与其在相同时间规律下的自身历史进行比较。它只报告有日期且具体的变化,并忽略正常的每日波动。

技术内容(原始 SKILL.md)

作者在 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:

  1. 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.
  2. 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:

  1. The sessions table 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 for events only 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.
  2. 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.
  3. $channel_type is 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
常见问题

什么是归因失效?

指广告活动的流量被错误地计为直接访问或未知来源,这通常是因为追踪代码停止工作。

它会检查页面速度吗?

不会。页面速度由网页指标侦察器负责。

它会重复报告已知的流量问题吗?

不会。如果报告已涵盖该问题,侦察器只会在情况发生变化时更新它。

详情

作者的原始描述

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

热度

GitHub 星标
41k
排名
#6947
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能