CellWall Logo

Surveys

PostHog

Surveys
monitor Exposure
v6d93516b
A JavaScript library for displaying and managing in-app or website surveys to collect user feedback and measure sentiment.
10M+ sites
Updated 9/9/2026
https://us-assets.i.posthog.com/static/1.428.7/surveys.js
Exposure Score
92

Popularity

92%

Usage across websites

File Size

97.98 KB

Download size

Load Time

34.43ms

Network latency

Execution Time

1.75ms

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

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

Uptime History

Average response time over time

Version History Details

Detailed information for each version

v6d93516bLatest
Span: 1 day
Score: 85
Size: 97.98 KB

Exposure & Risks

Security Score

Overall Security85 / 100
Exposure Levelmonitor

Risk Assessment

Critical Risks0
Total Observations1

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_current_session_id30 minutes
Tracks the current user session ID for analytics.
ph_*:sessionId30 minutes
Stores the session ID for a specific PostHog project.
ph_*:distinct_id1 year
Stores a unique identifier for the user across sessions to track their activity.
ph_*:posthog_survey_*1 year
Stores the state of a specific survey for a user (e.g., seen, dismissed, completed) to manage survey display and avoid repetition.

Local Storage

ph_*:session_id
Stores the session ID for the current user in local storage.
ph_*:distinct_id
Stores the distinct user ID in local storage for identification.
ph_*:last_ingestion_time
Stores the timestamp of the last data ingestion to manage data sending frequency.
ph_*:surveys_seen
Stores a list of survey IDs that the user has seen, to prevent showing the same surveys repeatedly.

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 Size97.98 KB
Load Time34.43ms

Runtime Performance

Execution Time1.75ms
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
6d93516bf133a5a05bebd326046cb0008ce0c31554f55160410cd0d409b9664d

AI Insights & Alternatives

Description

A comprehensive overview of this resource

This script is a core component of PostHog's survey functionality, designed to enable dynamic deployment and interaction with surveys on a website or within a web application. Upon integration, it allows site administrators to define and target specific user segments with various survey types, such as NPS, multiple-choice, or open-ended questions. The script communicates with the PostHog backend to fetch survey definitions, render the survey user interface (e.g., as pop-ups, banners, or embedded elements), and capture user responses. It handles client-side logic for displaying surveys, managing their state (e.g., preventing repeat displays to the same user), and securely transmitting collected data back to PostHog for analytics and reporting. This capability empowers businesses to gather direct qualitative insights, understand user satisfaction, and collect actionable feedback for product improvement.

Key Features

Core functionalities and capabilities of this resource

  • In-app surveys
  • Website surveys
  • User feedback collection
  • NPS surveys
  • Targeted surveys
  • Response collection
  • Survey display logic
  • Client-side survey management

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation