-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathnotes.txt
More file actions
32 lines (17 loc) · 739 Bytes
/
notes.txt
File metadata and controls
32 lines (17 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Concept:
Talk to your PostHog data, the user provides their PostHog API key
and then they can ask questions about their data.
Question examples:
- How many users signed up last week?
- What is the average number of events per user?
- What were the top 10 pages visited last month?
functions:
- list suggestions
- get data
HogQL Rules:
If an event or property name has a space, it should be wrapped in quotes.
To filter to a specific event, use FROM events WHERE event = '{event_name}'
To filter to a specific property, use WHERE properties.{property_name} = {value}
To get events older than 5 days, use the expression:
dateDiff('day', timestamp, now()) > 5
Don't end queries with a semicolon.