CellWall Logo

Surveys

PostHog

Surveys
Needs review
v17f57285
A JavaScript library for displaying in-app surveys and collecting user feedback.
Updated 11/5/2026
https://us-assets.i.posthog.com/static/1.445.5/surveys.js
Overall Score
89

Recorded Observations

2

For this resource version

File Size

139.56 KB

Download size

Load Time

31.92ms

Network latency

Execution Time

4.80ms

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

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

Uptime History

Average response time over time

Version History Details

Detailed information for each version

v17f57285Latest
Span: 1 day
Score: 79
Size: 139.56 KB

Exposure & Risks

Security Score

Overall Security79 / 100
Security RatingNeeds review

Risk Assessment

Critical Risks0
Total Observations2

Security Rating

Needs review
Behavioral concerns detected; review and mitigation are 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_session30 minutes
Stores information about the current user session.
ph_previous_session1 hour
Stores information about the previous user session.
ph_persistent2 years
Stores a persistent anonymous ID for the user.
ph_session_id30 minutes
Identifies a unique user session.
ph_survey_*1 year
Used to track survey display status and responses to prevent repeat showings or store partial answers.

Local Storage

ph_opt_out
Stores user's opt-out preference for PostHog tracking. If set, PostHog will not send data for this user. This is typically set by a consent management system or user preference. This key ensures that the user's choice to opt out of tracking persists across sessions and page loads.
ph_posthog
Stores various PostHog-related client-side data, including feature flags, user properties, and session information. This data helps maintain context for the user within the PostHog ecosystem, such as which feature variations they are exposed to or their current session state.
ph_survey_*
Stores survey states, responses, or visibility information to manage survey display. This prevents showing the same survey repeatedly and can store partial responses if a user closes a survey before completing it. It ensures a consistent survey experience across page loads for a user.

Third-party Connections

External domains this script connects to

No external connections detected

Permissions Required

Browser permissions and capabilities used

storage

Privacy Observations

Privacy-related findings from analysis

No privacy observations recorded for this version

Technical & Performance Analytics

Load Performance

File Size139.56 KB
Load Time31.92ms

Runtime Performance

Execution Time4.80ms
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

extendPostHogWithSurveys

Event Listeners

Events this script listens for

No event listeners detected

Browser API Access

APIs and browser features accessed by this script

localStorage.getItem

Technical Details

Compressed
Yes
CDN Delivery
No
Recorded Observations
2
Is Mirror
No
Network Requests
0
Resource Hash
17f57285011f01dbb835fa91b5e6701e94592def6cf4efcb3ac7b35b8027692d

AI Insights & Alternatives

Description

A comprehensive overview of this resource

This script is part of the PostHog platform, specifically designed to handle in-app surveys. It initializes the survey functionality on a website, allowing site owners to configure and display targeted surveys to their users. When loaded, it communicates with the PostHog backend to fetch survey configurations, determine eligibility for specific users based on defined criteria (e.g., user properties, events triggered), and then renders the survey interface within the web page. User responses are captured by this script and sent back to PostHog's analytics system for analysis. It manages the display logic, including when and how often surveys are shown, and ensures survey data is collected efficiently.

Key Features

Core functionalities and capabilities of this resource

  • In-app surveys
  • User feedback collection
  • Targeted surveys
  • NPS surveys
  • Customer sentiment analysis
  • Survey display logic
  • Response submission

Alternatives

Similar libraries you might consider

Documentation & Resources

Official Documentation