CellWall Logo

Exception Autocapture

PostHog

Error Tracking
monitor Exposure
v4574b3d4
A script that automatically captures unhandled JavaScript errors and exceptions occurring on a website for monitoring and analysis.
10M+ sites
Updated 8/28/2026
https://us-assets.i.posthog.com/static/1.421.0/exception-autocapture.js
Exposure Score
92

Popularity

92%

Usage across websites

File Size

13.33 KB

Download size

Load Time

26.23ms

Network latency

Execution Time

0.90ms

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

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

Uptime History

Average response time over time

Version History Details

Detailed information for each version

v4574b3d4Latest
Span: 2 days
Score: 85
Size: 13.33 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_*1 year to 30 minutes (varies per specific cookie)
Used by PostHog to identify unique users and sessions for analytics and error tracking.

Local Storage

ph_posthog
Stores the PostHog distinct ID, session information, and a queue of events (including errors) to be sent to the PostHog backend.

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 Size13.33 KB
Load Time26.23ms

Runtime Performance

Execution Time0.90ms
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
4574b3d4d83dd76d391c766c021be72e7efff1c1f2c7aa47a9acd957ace93967

AI Insights & Alternatives

Description

A comprehensive overview of this resource

The `exception-autocapture.js` script is an integral part of the PostHog JavaScript SDK, designed to enhance client-side monitoring. Its core function is to automatically detect and report any unhandled JavaScript errors or promise rejections that occur within the web browser. When an exception is caught, the script gathers crucial information, including the error message, stack trace, and relevant contextual data such as the page URL, user agent, and potentially details about the user's session or specific events that led to the error. This automatic capture mechanism significantly simplifies the process of identifying and debugging frontend issues. Instead of requiring developers to manually wrap every potential error point with `try-catch` blocks, this script provides a comprehensive, hands-off approach to error tracking. The collected error data is then sent to the PostHog analytics platform, where it can be analyzed by developers to pinpoint bugs, understand their frequency and impact, and ultimately improve the stability and user experience of the web application.

Key Features

Core functionalities and capabilities of this resource

  • Automated error capture
  • JavaScript exception tracking
  • Stack trace collection
  • Frontend error monitoring
  • Client-side error reporting
  • Unhandled promise rejection capture

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation