GithubHelp home page GithubHelp logo

posthog-hello-world-plugin's Introduction

PostHog Plugin: Hello World Starter Kit

License: MIT

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

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

How to develop

All of the plugin's code is located in the index.js file, which is JavaScript ran inside of PostHog. To get yourself up to speed with this environment, we sincerely recommend checking out our [Plugins overview in PostHog Docs](the Plugins Overview. For a crash course, read our plugin building tutorial in PostHog Docs.

How to test

To test the plugin, you'll need to install a few npm dependencies already specified in package.json:

npm install

This will get you the testing library Jest and some our test helpers. Then to run tests it's just:

npm test

How to install

  1. Open PostHog.
  2. Open the Plugins page from the sidebar.
  3. Head to the Advanced tab.
  4. "Install from GitHub, GitLab or npm" using this repository's URL.

Questions?

We're here to help you with anything PostHog!

posthog-hello-world-plugin's People

Contributors

fuziontech avatar jamesefhawkins avatar marcushyett-ph avatar mariusandra avatar paolodamico avatar tiina303 avatar twixes avatar yakkomajuri avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

posthog-hello-world-plugin's Issues

Rename to posthog-helloworld-plugin

Rename the plugin to be in line with others, since it's public. Actually I'd suggest a slightly different naming scheme: posthog-plugin-${pluginName}, but it's mostly about consistency anyway.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.