Loading...
Loading...
HogQL queries for PostHog analytics
npx skill4agent add posthog/skills tools-and-features-hogqlreferences/expressions.mdreferences/aggregations.mdreferences/clickhouse-functions.mdreferences/data-access.mdreferences/variables.mdreferences/useful-functions.mdreferences/posthog.mdreferences/sessions.mdproperties.$property_nameperson.properties.$property_name{filters}count()uniq()avg()sum()SELECT event, count()
FROM events
WHERE {filters}
GROUP BY event
ORDER BY count() DESCSELECT properties.$browser AS browser, count()
FROM events
WHERE event = '$pageview' AND {filters}
GROUP BY browserSELECT person.properties.email, count()
FROM events
WHERE {filters}
GROUP BY person.properties.email