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
Fix drop-events doc formatting to match standard CDP template
- Add templateId to frontmatter
- Wrap Configuration/FAQ/snippets in HideOnCDPIndex
- Add standard PostHogMaintained and FeedbackQuestions snippets
- Remove showTitle that was causing sidebar issues
- Add Installation section for consistency
The drop events transformation permanently removes events from your data pipeline, preventing them from being stored or processed by PostHog.
11
+
Selectively discard events from being ingested based on specific criteria. Dropped events are permanently removed from your data pipeline, preventing them from being stored or processed by PostHog.
11
12
12
13
<CalloutBoxicon="IconPiggyBank"title="Impact on usage & billing"type="info">
13
14
14
-
Events that are dropped using a transformation **do not count towards your usage/billing**.
15
+
Events that are dropped using a transformation **do not count towards your usage/billing**.
15
16
16
-
While we encourage you to [instrument custom events](/docs/getting-started/send-events#2-capture-custom-events) and [configure autocapture](/docs/product-analytics/autocapture) to only capture the events you need long term, a **Drop Events** transformation can serve as a temporary solution to reduce usage immediately (vs. waiting for your next deployment cycle to modify custom events or configuration).
17
+
While we encourage you to [instrument custom events](/docs/getting-started/send-events#2-capture-custom-events) and [configure autocapture](/docs/product-analytics/autocapture) to only capture the events you need long term, a **Drop Events** transformation can serve as a temporary solution to reduce usage immediately (vs. waiting for your next deployment cycle to modify custom events or configuration).
17
18
18
19
It can also be useful when you want more granular control over _bundled_ autocapture events such as excluding a [specific app lifecycle events](/docs/product-analytics/autocapture#react-native-navigation-and-lifecycle-autocapture) and only capturing the ones you need.
19
20
20
21
</CalloutBox>
21
22
23
+
## Installation
24
+
25
+
1. In PostHog, click the [Data pipeline](https://us.posthog.com/pipeline/overview) tab in the left sidebar.
26
+
2. Click the [Transformations](https://us.posthog.com/pipeline/transformations) tab.
27
+
3. Search for **Drop events** and click **+ Create**.
28
+
4. Configure your filters to target the events you want to drop.
29
+
5. Press **Create & Enable** to start dropping matching events.
30
+
31
+
<HideOnCDPIndex>
32
+
22
33
## Configuration
23
34
24
35
The drop events transformation uses filters to target specific events for removal.
25
36
26
37
### Filtering options
27
38
28
39
1.**Event matching**: Target specific event types by name (e.g., `$pageview`, `user_signed_up`)
29
-
3.**Property filters**: Further refine your filters with property conditions:
40
+
2.**Property filters**: Further refine your filters with property conditions:
30
41
- Match on any event property
31
42
- Supports operators like equals, contains, greater than, etc.
32
43
- Apply property filters globally across all events or specifically to individual event types
33
44
34
-
####How to use the filters
45
+
### How to use the filters
35
46
36
47
The drop events transformation uses two types of filters that work together:
37
48
@@ -43,7 +54,7 @@ The drop events transformation uses two types of filters that work together:
43
54
2.**Property filters**: These filters use AND logic and are applied after the event matching. ALL property conditions must be met for an event to be dropped. For example, if you set:
44
55
-`browser is set`
45
56
-`Country Name is set`
46
-
57
+
47
58
Only events that have BOTH properties matching these conditions will be dropped.
48
59
49
60

@@ -53,7 +64,7 @@ The drop events transformation uses two types of filters that work together:
53
64
- If you select "All events" and add a property filter "browser is set", it will drop ALL events that have the browser property set
54
65
- If you also add specific event matches like `$pageview` and `$pageleave`, it will drop:
55
66
- All `$pageview` events
56
-
- All `$pageleave` events
67
+
- All `$pageleave` events
57
68
- Any other events that have the browser property set
58
69
59
70

@@ -86,11 +97,22 @@ Before enabling your drop events transformation in production, use the built-in
86
97
3. Run the test to see if the event would be dropped
87
98
4. Iterate on your filters until you're satisfied with the results
88
99
89
-
## Important considerations
100
+
## FAQ
101
+
102
+
### Is the source code for this transformation available?
103
+
104
+
PostHog is open-source and so are all the transformations on the platform. The [source code](https://github.com/PostHog/posthog/blob/master/posthog/cdp/templates/drop_events/template_drop_events.py) is available on GitHub.
105
+
106
+
### What happens to dropped events?
107
+
108
+
Dropped events are permanently deleted and cannot be recovered. They are removed before ingestion, so they won't appear in any analytics, cohorts, or exports.
109
+
110
+
### How do I monitor what's being dropped?
111
+
112
+
Check the metrics and logs tabs regularly to ensure the transformation is working as expected. The metrics tab shows how many events have been processed and dropped.
90
113
91
-
-**Permanence**: Dropped events are permanently deleted and cannot be recovered
92
-
-**Monitoring**: Check the metrics and logs tabs regularly to ensure the transformation is working as expected
0 commit comments