@slates-integrations/posthog
v0.2.0-rc.6
Published
Capture and analyze product usage events, manage feature flags, run A/B test experiments, and create user surveys. Track persons and groups, evaluate feature flags for specific users, query analytics data using HogQL, and manage cohorts. Retrieve session
Readme
Posthog
Capture and analyze product usage events, manage feature flags, run A/B test experiments, and create user surveys. Track persons and groups, evaluate feature flags for specific users, query analytics data using HogQL, and manage cohorts. Retrieve session recording metadata, create and manage insights and dashboards (trends, funnels, retention, paths). Manage projects, organizations, annotations, actions, and event/property definitions.
Tools
Capture Event
Send one or more events to PostHog. Supports single event capture or batch capture of multiple events. Use this to track pageviews, custom events, screen views, and identify users.
List Event Definitions
List all event definitions in the project. Event definitions describe the possible event names that have been captured. Use this to discover which events are available for querying, filtering, and analysis.
List Projects
List all projects accessible with the current credentials. Returns project IDs, names, and tokens needed for configuration.
List Organizations
List organizations accessible with the current credentials. Use an organization ID with List Projects when targeting PostHog's organization-scoped project endpoint.
Get Current User
Retrieve the current PostHog user, current organization, and current project context.
List Session Recordings
List session recording metadata. Supports filtering by person, date range, and pagination. Note: This returns metadata only, not the raw replay data. Use the PostHog UI to view full replays.
List Annotations
List annotations on charts/dashboards. Annotations mark significant events or deployments with text notes at specific dates.
List Cohorts
List all cohorts in the project. Cohorts are groups of users that match specific criteria. Static cohorts are manually managed lists, while dynamic cohorts are automatically updated every 24 hours.
List Dashboards
List all dashboards in the project. Supports searching by name.
List Experiments
List A/B test experiments in the project. Returns experiment metadata, status, and associated feature flag keys.
List Feature Flags
List all feature flags in the project. Supports searching by flag key or name. Returns flag configuration including key, active status, rollout percentage, and targeting rules.
List Insights
List analytics insights (trends, funnels, retention, paths, stickiness, lifecycle). Supports searching by name and filtering to saved insights only.
List Persons
Search and list person profiles in PostHog. Supports filtering by search query and person properties. Returns paginated results with person details including distinct IDs and properties.
List Group Types
List configured PostHog group types and their group type indexes.
List Groups
List groups for a specific group type, with optional group key or search filtering.
List Surveys
List all surveys in the project with their configuration, questions, and status.
List Actions
List PostHog actions. Actions group one or more event patterns into reusable analytics definitions.
Run HogQL Query
Execute an ad-hoc HogQL query against your PostHog data. HogQL is PostHog's SQL-like query language that supports querying events, persons, sessions, and more. Use this for custom analytics queries, aggregations, and data exploration that go beyond predefined insights.
License
This integration is licensed under the FSL-1.1.
