CellWall Logo

Exception Autocapture

PostHog

Error Tracking
monitor Exposure
v7707bf01
A script for automatically capturing JavaScript errors and exceptions on a website to facilitate error monitoring and debugging.
10M+ sites
Updated 8/25/2026
https://us-assets.i.posthog.com/static/1.418.12/exception-autocapture.js
Exposure Score
92

Popularity

92%

Usage across websites

File Size

13.33 KB

Download size

Load Time

39.23ms

Network latency

Execution Time

40.14ms

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

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

Uptime History

Average response time over time

Version History Details

Detailed information for each version

v7707bf01Latest
Span: 1 day
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 or session duration
Used to identify unique users and sessions for analytics and error tracking purposes by PostHog. This includes user ID and session ID cookies.
ph_session_idSession
Tracks the current user session within PostHog.

Local Storage

ph_posthog-feature-flags
Caches the state of feature flags for the current user, used in A/B testing and feature rollout management.
ph_posthog-session-recording-start
Stores the timestamp when a session recording started, if session recording is enabled.

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 Time39.23ms

Runtime Performance

Execution Time40.14ms
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

posthogErrorWrappingFunctionsextendPostHogWithExceptionAutoCaptureextendPostHogWithExceptionAutocapture

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
6
Is Mirror
No
Network Requests
0
Resource Hash
7707bf01c01a9993bba6ab079b909cc799e20b336fe3c5394d9bca0642736716

AI Insights & Alternatives

Description

A comprehensive overview of this resource

This script integrates with the PostHog platform to provide real-time client-side error tracking. It works by instrumenting the browser's global error handlers (e.g., `window.onerror` and `window.onunhandledrejection`) to automatically detect and capture unhandled JavaScript errors and promise rejections. When an error occurs, the script collects relevant diagnostic information, such as stack traces, error messages, user agent details, and potentially user or session context if the main PostHog library is also in use. This data is then sent to the PostHog backend, allowing developers to monitor application health, identify and debug bugs, and improve the overall stability and user experience of their websites. The script operates silently in the background, minimizing its impact on page performance while ensuring comprehensive error coverage. It is a crucial component for robust web application maintenance, providing insights into issues that might otherwise go unnoticed.

Key Features

Core functionalities and capabilities of this resource

  • Error capturing
  • Exception reporting
  • Automatic error tracking
  • Stack trace collection
  • Client-side monitoring
  • Debugging support

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation