posthog-plugin-hello-world

1.0.0 • Public • Published

Hello World – a PostHog Plugin

npm package License: MIT

This is an exemplary PostHog plugin. It adds property "greeting" to every event, with a configurable value (by default: "Hello world!").

Feel free to use it as a base for your own plugins!

Goodies included

  • TypeScript for best reliability and development experience
  • Jest for convenient testing
  • Prettier and ESLint for code style and best practices – both handled by pre-commit hooks
  • GitHub Actions set up to run code quality and functionality tests in pull requests, and also to publish a new npm release when the package version is incremented in main (the latter requires an automation type npm access token to be set with a repo secret NPM_TOKEN)

Installation

  1. Open PostHog.
  2. Head to the Plugins page from the sidebar.
  3. Either install Hello World from Available plugins, or install from URL using this repository's URL.

Questions?

Join our Slack community.

We're here to help you with anything PostHog!

/posthog-plugin-hello-world/

    Package Sidebar

    Install

    npm i posthog-plugin-hello-world

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • timgl