CellWall Logo

Exception Autocapture

PostHog

Error Tracking
monitor Exposure
v637c1f30
A script for automatically capturing JavaScript errors and exceptions for product analytics and session replay.
10M+ sites
Updated 9/10/2026
https://us-assets.i.posthog.com/static/1.429.1/exception-autocapture.js
Exposure Score
92

Popularity

92%

Usage across websites

File Size

14.62 KB

Download size

Load Time

56.96ms

Network latency

Execution Time

1.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

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

Uptime History

Average response time over time

Version History Details

Detailed information for each version

v637c1f30Latest
Span: 1 day
Score: 85
Size: 14.62 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 (for distinct ID), session (for session ID)
PostHog uses various cookies, often prefixed with 'ph_', to store a distinct ID for user identification, manage user sessions, and track user behavior within a specific project. These cookies help in understanding user journeys and attributing events.

Local Storage

ph_*
PostHog stores data in local storage, often prefixed with 'ph_', to persist a distinct user ID, manage session state, and sometimes queue events before sending them to the server. This ensures data persistence across sessions and enhances data collection reliability.

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 Size14.62 KB
Load Time56.96ms

Runtime Performance

Execution Time1.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

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
3
Is Mirror
No
Network Requests
0
Resource Hash
637c1f3005d4edaad52cf86debb1de9ca6112397001a19f3fe160d6585984ab8

AI Insights & Alternatives

Description

A comprehensive overview of this resource

This script, `exception-autocapture.js`, is a crucial component of the PostHog product analytics platform. Its primary function is to automatically detect and capture unhandled JavaScript errors and exceptions that occur within a web page. Once detected, this error data, including stack traces, error messages, and contextual information about the user's session or environment, is transmitted to the PostHog backend for analysis. By integrating this script, websites can gain critical insights into front-end issues that impact user experience and overall product stability. The collected error details are invaluable for debugging purposes, allowing developers to quickly identify, understand, and resolve client-side bugs. It works in conjunction with PostHog's broader analytics and session replay features, providing a holistic view of user interactions and any technical challenges encountered.

Key Features

Core functionalities and capabilities of this resource

  • Error capture
  • Exception monitoring
  • Automatic reporting
  • Debugging assistance
  • Client-side error tracking
  • Product analytics integration

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation