0.2.4-deprecated • Published 3 years ago
posthog-plugins v0.2.4-deprecated
DEPRECATED
This package has been renamed @posthog/plugin-scaffold
. Please update your dependencies!
posthog-plugins
This project contains shared typescript types that PostHog plugin authors can use.
# if using yarn
yarn add --dev posthog-plugins
# if using npm
npm install --save-dev posthog-plugins
Then in your plugins:
import { PluginEvent, PluginMeta } from 'posthog-plugins'
export function processEvent(event: PluginEvent, meta: PluginMeta) {
if (event.properties) {
event.properties['hello'] = 'world'
}
return event
}