CellWall Logo
Posthog logo

Posthog

Heatmaps & Session ReplayAnalyticsOfficial Site

This script is part of the PostHog suite, designed to be integrated into web applications to provide detailed insights into user behavior. It captures a wide array of user interactions, including page views, clicks, scrolls, form submissions, and more. When the session recording feature is enabled (as indicated by 'posthog-recorder.js'), it records and reconstructs user sessions, allowing product teams to visually replay user journeys, identify pain points, and understand user experience in detail. The script operates by listening to DOM events and sending captured data to PostHog's backend. It can also be used for advanced features like feature flagging (gradually rolling out new features to specific user segments) and A/B testing (comparing different versions of a feature to determine which performs better). It's a comprehensive tool for product teams to build better products based on data-driven decisions.

Capabilities

The PostHog recorder script enables high-fidelity session recording, allowing businesses to visually replay user interactions on their website or application. This helps in understanding user behavior, identifying friction points, debugging issues, and improving user experience. It works by capturing DOM changes and user events (clicks, scrolls, inputs) and sending them to the PostHog platform for reconstruction and analysis. This provides invaluable qualitative data to complement quantitative analytics, helping product managers, designers, and developers gain deeper insights into how users engage with their product.

  • Session Recording
  • User Replay
  • Product Analytics
  • Behavioral Tracking
  • Error Reproduction
  • User Journey Mapping

Digital Footprint

Known Cookies

ph_*
Used by PostHog to identify unique users across sessions and track their activity, which is essential for targeting surveys and attributing responses. This cookie typically contains a distinct user ID.1 year
_ph_opt_out
Stores a user's preference regarding opting out of PostHog tracking.Indefinite
ph_distinct_id
Stores a unique identifier for the user to track their activity across sessions.1 year
ph_session_id
Tracks the current user session.30 minutes
ph_*_distinct_id
Identifies a unique user across sessions for analytics and session recording. The asterisk represents the project API key.1 year
ph_*_session_id
Used to track individual user sessions, allowing for analysis of user journeys within a single visit.30 minutes
ph_*:sessionid
Stores a unique ID for the user's current session for session replay and analytics.1 day
ph_*:distinct_id
A unique identifier for the user to track their activity across sessions.1 year
_ph_sess
Used to identify the current user session.30 minutes
_ph_id
Used to uniquely identify a user across sessions.1 year
ph_console_log
Used for debugging purposes, storing console log messages.Session
ph_survey_id
Used to track if a user has seen or completed a survey.1 year
ph_*:_posthog_cookie
Used by PostHog to store information about the user's current session and identify repeat visitors.1 year
ph_*:_posthog_session_id
Used by PostHog to track the user's current session.30 minutes
ph_*:_posthog_props
Used by PostHog to store user properties.1 year
ph_phc_*
Used by PostHog to identify a unique user across sessions and devices. The '*' denotes a dynamic project ID.1 year
ph_session_*
Used by PostHog to group user events into a single session. The '*' denotes a dynamic project ID.30 minutes
ph_*:posthog_phc_*
Used by PostHog for session recording to identify unique users and sessions. The exact name may vary but typically includes 'phc_'.1 year
ph_*:posthog_session_id
Used by PostHog to identify the current user session for session recording.Session
ph_posthog_distinct_id
Stores a distinct ID for the user, helping PostHog identify unique users.1 year
ph_posthog_session_id
Used to store a unique identifier for the current session.30 minutes
ph_posthog_persist
Used to persist user information and settings.1 year
ph_current_url
Stores the last URL visited by the user within the current session, used for session context.Session
ph_next_url
Used to store the next URL in the user's journey, often for multi-page funnels or redirects.Session
ph_persisted_properties
Stores various user properties that persist across sessions, such as device information or initial referrer.1 year
ph_sessionId
Used to identify the current user session.30 minutes of inactivity
ph_survey_seen_*
Tracks which specific surveys a user has already seen or interacted with, preventing repeated display of the same survey.Session to 30 days
ph_opt_out
Records a user's preference to opt out of PostHog tracking.1 year
ph_*:_posthog
Used by PostHog to identify unique users and sessions, track events, and manage survey states. The '*' part is dynamic and represents the project ID.1 year
ph_permanent_session_id
Identifies a user's permanent session for longer-term tracking.2 years
ph_*: distinct_id
Identifies a unique user across sessions for analytics and survey targeting.1 year
ph_*: session
Tracks user session activity for analytics and survey display logic.30 minutes
ph_survey_id_*
Records which surveys a user has been shown or interacted with to manage display frequency and avoid repetition.1 year
ph_survey_shown_*
Stores whether a specific survey has been shown to a user to prevent repeated displays.1 year
__ph_opt_in_out
Stores a user's preference regarding tracking opt-in or opt-out.1 year
ph_persistent_session_id
Used to uniquely identify a user across sessions for persistent tracking.1 year
ph_survey_*
Used to track the state or display of specific surveys for a user, such as whether a survey has been shown or completed, to manage frequency and prevent re-display.1 year
ph_referral
Stores referral information about how the user arrived at the site.6 months
ph_current_session
Stores details about the current user session, often for session replay or survey targeting.30 minutes
ph_persistent_id
A unique identifier for the user, persistent across sessions.1 year
ph_token
Stores the project API key for authentication.1 year
ph_current_session_id
Tracks the current user session ID for analytics.30 minutes
ph_*:sessionId
Stores the session ID for a specific PostHog project.30 minutes
ph_*:posthog_survey_*
Stores the state of a specific survey for a user (e.g., seen, dismissed, completed) to manage survey display and avoid repetition.1 year
ph_phc_session_id
Unique identifier for a user's session in PostHog.30 minutes
__ph_opt_out
Set if the user has opted out of PostHog tracking.1 year
ph_console_tabs
Used by PostHog for internal console debugging purposes.Session
ph_current_team_id
Used by PostHog for internal console debugging purposes, related to the current team context.Session
ph_*_posthog
Used by PostHog to store a distinct ID for the user across sessions, enabling user identification.1 year
ph_*_posthog_session
Used by PostHog to identify and track a user's current session.30 minutes
ph_next_id
Temporary ID used during initial user identification.1 year
ph_*:session_id
Identifies a user's current session for recording and analytics purposes.30 minutes
ph_*:_phc_is_returning
Indicates if the user is a returning visitor to the site, used for analytics.1 year
ph_phc_posthog
Used by PostHog to identify a user across sessions and track their activity.1 year
ph_temporary_token
A temporary token used for anonymous tracking before a distinct ID is assigned.1 day
ph_survey_answer_in_progress_*
May store partial answers or survey progress for a specific survey to allow users to resume or prevent re-asking questions within the same session.Session

Endpoints

  • app.posthog.com
  • us.posthog.com
  • eu.posthog.com
  • us-assets.i.posthog.com
  • *.posthog.com
  • us.i.posthog.com
  • eu-assets.i.posthog.com
  • i.posthog.com
  • events.posthog.com
  • t.posthog.com

Security Incidents & Vulnerabilities

No known historical CVEs or supply chain attacks found for these specific resources.