Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.6 KB
Raw Blame
import { processEvent } from '.'

import { LegacyTransformationPlugin } from '../../types'

// NOTE: This is a deprecated plugin and should never be shown to new users
export const dropEventsOnPropertyPlugin: LegacyTransformationPlugin = {
    processEvent,
    template: {
        free: true,
        status: 'deprecated',
        type: 'transformation',
        id: 'plugin-drop-events-on-property-plugin',
        name: 'Drop Events Based On Property',
        description:
            'This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of they key and the value. You will not be billed for any events that this plugin drops.',
        icon_url: 'https://raw.githubusercontent.com/posthog/drop-events-on-property-plugin/main/logo.png',
        category: ['Custom'],
        code_language: 'javascript',
        code: `return event`,
        inputs_schema: [
            {
                templating: false,
                key: 'property_key',
                description:
                    'Which property key to filter on. If you do not specify a value, all events with this key will be dropped.',
                label: 'Property key to filter on',
                type: 'string',
                required: true,
            },
            {
                templating: false,
                key: 'property_values',
                description: 'Which value to match to drop events. Split multiple values by comma to filter.',
                label: 'Property value to filter on',
                type: 'string',
                required: false,
            },
        ],
    },
}