You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filters can be combined using `and`, `or` and `not` operators.
242
242
@@ -248,6 +248,20 @@ Filters can be combined using `and`, `or` and `not` operators.
248
248
249
249
Note that top level filters is wrapped in an implicit `and`.
250
250
251
+
#### Behavioral filters
252
+
253
+
Behavioral filters can be used to filter whether a user has ever done or not done something. This can be used to filter out users who have not completed a goal or
254
+
who have visited a particular page.
255
+
256
+
| Operator | Example | Explanation |
257
+
| -- | -- | -- |
258
+
|`has_done`|`["has_done", ["is", "event:page", ["/pricing"]]]`| Users who have done a pageview to /pricing page |
259
+
|`has_not_done`|`["has_not_done", ["is", "event:goal", ["Login"]]]`| Users who have not done Login goal |
260
+
261
+
Behavioral filters can only be used with [event dimension](#event-dimensions) filters.
262
+
263
+
[See example](#example-behavioral-filters)
264
+
251
265
### order_by <Optional />
252
266
253
267
Allows for custom ordering of query results.
@@ -389,6 +403,12 @@ The following examples are interactive and can be edited and run against your ow
This example shows how many visitors and how many times visitors have visited the `/pricing` page, needed support before or after and not created an account or logged in.
409
+
410
+
<ApiV2Exampleid="example-behavioral-filters" />
411
+
392
412
### Timeseries query {#example-timeseries}
393
413
394
414
<ApiV2Exampleid="example-timeseries" />
@@ -415,7 +435,6 @@ In this example, imported data could not be included due to dimension and filter
0 commit comments