exploring-autocapture-events

Explore PostHog $autocapture events to validate selectors and create actions.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/FrekiManagarm/dunlo --skill exploring-autocapture-events-frekimanagarm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: exploring-autocapture-events
Source: https://github.com/FrekiManagarm/dunlo/tree/main/.agents/skills/exploring-autocapture-events
Command: npx skills add https://github.com/FrekiManagarm/dunlo --skill exploring-autocapture-events-frekimanagarm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about exploring-autocapture-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find what elements users click using PostHog autocapture events?

You can find what elements users click by exploring PostHog $autocapture events and querying materialized fields like elements_chain_elements and elements_chain_href to identify common interaction targets within a specific time window.

How do I create a durable PostHog action from a CSS selector?

To create a durable PostHog action from a CSS selector, identify a stable anchor like a data-attr value in the elements_chain, verify its uniqueness, and use a posthog action-create step to track that click.

What is the best way to validate selector uniqueness in PostHog element interactions?

The best way to validate selector uniqueness for PostHog element interactions is to evaluate the elements_chain using regex matching to ensure your data-attr, ID, or href selector accurately targets only the intended click events.

Why are my PostHog autocapture events missing or not showing up?

PostHog autocapture events may be missing if autocapture is disabled in your project settings or the posthog-js init configuration, so you need to verify your coverage and configuration first.

Can I use HogQL to inspect elements_chain for selector discovery in PostHog?

Yes, you can use HogQL to inspect elements_chain for selector discovery, applying regex matching against materialized columns to evaluate selector fidelity and find stable anchors like data-* attributes and texts.