What problem does it solve?
This Skill helps you investigate PostHog $autocapture event data to understand which elements users interact with and to turn those findings into reliable selector-based analyses and actions.
Core Features & Use Cases
- Audit autocapture coverage: Verify whether $autocapture events exist in your data and ensure autocapture isn’t disabled via PostHog project settings or the posthog-js init configuration.
- Explore interactions using elements_chain materializations: Use pre-parsed fields like elements_chain_elements, elements_chain_texts, and elements_chain_href to quickly identify common clicked targets.
- Find and validate candidate selectors: Prioritize stable selector sources (data-attr/data-*), evaluate selector uniqueness against elements_chain, and refine with URL/text/href filters.
- Convert insights into durable actions: Create a posthog:action-create step for recurring reporting and confirm correctness using matchesAction().
Quick Start
Ask to explore the top clicked elements for the last 7 days, then generate a unique CSS selector based on a data-attr value and draft the posthog action to track that click on a specific page.