CellWall Logo

Exception Autocapture

PostHog

Error Tracking
monitor Exposure
va322589d
A script that automatically detects and captures unhandled JavaScript errors and exceptions for analytics and error tracking.
10M+ sites
Updated 10/7/2026
https://us-assets.i.posthog.com/static/1.438.2/exception-autocapture.js
Exposure Score
92

Popularity

92%

Usage across websites

File Size

17.13 KB

Download size

Load Time

25.94ms

Network latency

Execution Time

0.95ms

Runtime performance

Version Telemetry

Version Timeline

Visual representation of each version's active period

Metrics Over Time

Security score, performance score, and file size trends

0255075100va322Normalized ScoreVersion
Security Score
Performance Score
File Size (KB)

Uptime History

Average response time over time

Version History Details

Detailed information for each version

va322589dLatest
Span: 1 day
Score: 85
Size: 17.13 KB

Exposure & Risks

Security Score

Overall Security85 / 100
Exposure Levelmonitor

Risk Assessment

Critical Risks0
Total Observations0

Exposure Status

Monitor
Moderate behavioral concerns, review and mitigation advised.

Behavioral Concerns

No Known Security Risks

Our telemetry scan did not detect any immediate behavioral security risks for this resource.

Security Observations

Security-related findings from analysis

No security observations recorded for this version

Privacy & Data Flow

Data Collection

Cookies and local storage used by this script

Cookies

ph_*:_posthog1 year
Used by PostHog to identify unique visitors, persist their distinct ID, and maintain session state across page views and sessions for analytics.
__ph_opt_out1 year
Indicates if a user has opted out of PostHog tracking.

Local Storage

ph_*:_posthog
Stores client-side state for PostHog, including distinct ID, feature flags, and temporary session data.
__ph_opt_out
Mirrors the opt-out status, indicating if a user has chosen not to be tracked by PostHog.

Third-party Connections

External domains this script connects to

No external connections detected

Permissions Required

Browser permissions and capabilities used

No special browser permissions required.

Privacy Observations

Privacy-related findings from analysis

No privacy observations recorded for this version

Technical & Performance Analytics

Load Performance

File Size17.13 KB
Load Time25.94ms

Runtime Performance

Execution Time0.95ms
Network Requests0

Impact Assessment

Good
Minimal performance impact on page load

Performance Observations

Performance-related findings from analysis

No performance observations recorded for this version

Global Variables

Variables added to the global scope

No global variables detected

Event Listeners

Events this script listens for

No event listeners detected

Browser API Access

APIs and browser features accessed by this script

No API access detected

Technical Details

Compressed
Yes
CDN Delivery
No
Total Views
2
Is Mirror
No
Network Requests
0
Resource Hash
a322589d75892cb31f3a55faba44aaa35385cc5c47f289623f53011facf5fb6f

AI Insights & Alternatives

Description

A comprehensive overview of this resource

This script is a component of the PostHog platform, specifically designed to provide automated client-side error and exception tracking. When loaded on a website, it hooks into the browser's error handling mechanisms to catch any unhandled JavaScript errors or promise rejections that occur. Upon detecting an error, it collects relevant information such as the error message, stack trace, browser details, and potentially user context, which is then sent back to the PostHog product analytics platform. This allows developers and product teams to proactively monitor the health and stability of their web application, identify common issues, and debug problems more efficiently, leading to an improved user experience. The script works by instrumenting the global error handlers (e.g., `window.onerror` and `window.onunhandledrejection`) to intercept errors before they are lost. The collected error data can then be correlated with user sessions, events, and other product usage data within PostHog, providing a holistic view of the error's impact and context.

Key Features

Core functionalities and capabilities of this resource

  • Automated Error Capture
  • JavaScript Exception Monitoring
  • Client-side Error Tracking
  • Stack Trace Collection
  • Contextual Error Reporting
  • Integration with PostHog Analytics
  • Proactive Bug Detection

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation