signals-scout-web-analytics
Fungsinya
Scout ini memantau dari mana trafik situs web Anda berasal, halaman mana yang didarati pengunjung, dan apakah mereka bertahan. Ditujukan untuk tim pemasaran dan pertumbuhan yang ingin menangkap masalah trafik sejak dini.
Kapan dipakai
- โSaat trafik dari satu kanal, seperti pencarian atau iklan, turun sementara total trafik tetap.
- โSaat trafik kampanye tiba-tiba muncul sebagai trafik langsung, yang dapat berarti tag pelacakan rusak.
- โSaat rasio pentalan halaman arahan melonjak, atau halaman mulai banyak mengembalikan error tidak ditemukan.
Link skill
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-web-analytics/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โApakah trafik dari kanal mana pun turun, dan apakah tautan kampanye saya masih dilacak dengan benar?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Scout membandingkan setiap sumber trafik dan halaman arahan dengan riwayatnya sendiri untuk pola waktu yang sama. Scout hanya melaporkan perubahan yang bertanggal dan spesifik, dan mengabaikan naik turun harian yang normal.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa itu kerusakan atribusi?
Itu terjadi ketika trafik dari kampanye salah dihitung sebagai langsung atau tidak diketahui, sering kali karena tag pelacakan berhenti berfungsi.
Apakah scout memeriksa kecepatan halaman?
Tidak. Kecepatan halaman dicakup oleh scout web vitals.
Apakah scout akan mengulang masalah trafik yang sudah diketahui?
Tidak. Jika sebuah laporan sudah mencakup isu itu, scout hanya memperbaruinya saat gambarannya berubah.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6947
- Lisensi
- โ
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.