error-tracking-web
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "error-tracking-web" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0d320c33560faa995e685101b3bef9fc671558e69c73217a5d60b839f27430ae. Verify the upstream source and version against https://skills.sh/posthog/skills/error-tracking-web before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skills.sh
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
PostHog error tracking for Web (JavaScript) applications.
Introduction source: third_party · posthog · 1.0.0 Reference
SkillPi interpretation
- Tasks
- PostHog error tracking for Web (JavaScript)
- Testing
- Not tested
Browse files
Frontmatter
name: error-tracking-web
description: PostHog error tracking for Web (JavaScript)
metadata:
author: PostHog
version: 1.9.4PostHog error tracking for Web (JavaScript)
This skill helps you add PostHog error tracking to Web (JavaScript) applications.
Reference files
references/web.md- Web error tracking installation - docsreferences/fingerprints.md- Fingerprints - docsreferences/alerts.md- Send error tracking alerts - docsreferences/monitoring.md- Monitor and search issues - docsreferences/assigning-issues.md- Assign issues to teammates - docsreferences/upload-source-maps.md- Upload source maps - docs
Consult the documentation for API details and framework-specific patterns.
Key principles
- Environment variables: Always use environment variables for PostHog keys and host URLs. Never hardcode them.
- Minimal changes: Add error tracking alongside existing error handling. Don't replace or restructure existing error handling code.
- Autocapture first: Enable exception autocapture in the SDK initialization before adding manual captures.
- Source maps: Upload source maps so stack traces resolve to original source code, not minified bundles.
- Manual capture for boundaries: Use
captureException()at error boundaries and catch blocks for errors that don't propagate to the global handler.
Framework guidelines
- Remember that source code is available in the node_modules directory
- Check package.json for type checking or build scripts to validate changes
- posthog-js is the JavaScript SDK package name
- posthog.init() MUST be called before any other PostHog methods (capture, identify, etc.)
- posthog-js is browser-only — do NOT import it in Node.js or server-side contexts (use posthog-node instead)
- Autocapture is ON by default with posthog-js (tracks clicks, form submissions, pageviews). Do NOT disable autocapture unless the user explicitly requests it.
- NEVER send PII in posthog.capture() event properties — no emails, full names, phone numbers, physical addresses, IP addresses, or user-generated content
- PII belongs in posthog.identify() person properties (email, name, role), NOT in capture() event properties
- Call posthog.identify(userId, { email, name, role }) on login AND on page refresh if the user is already logged in
- Call posthog.reset() on logout to unlink future events from the current user
- For SPAs without a framework router, capture pageviews with posthog.capture($pageview) or use the capture_pageview history_change option in init for History API routing
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 PostHog 前端错误追踪集成能力,解决 Web 开发者实际监控痛点
- 涵盖环境变量、PII 处理、SDK 初始化等关键最佳实践
Highlights
- 触发词精准明确,边界清晰,无歧义
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档中未提供 When to Use 章节,用户无法快速判断适用场景
Recommendation: 建议添加 When to Use 章节,说明该 Skill 的典型使用场景和适用条件
-
缺少端到端示例 Reported severity: Minor
文档中未提供完整的端到端集成示例,用户可能难以理解完整流程
Recommendation: 建议添加一个完整的端到端集成示例,展示从初始化到错误捕获的完整流程
Highlights
- 结构清晰,关键原则和框架指南完整
- 提供了详细的参考文件列表
Highlights
- 提供了详细的环境变量使用规范
- 明确了 PII 处理规则和 SDK 初始化顺序
- 涵盖了多种框架和场景的最佳实践
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.