analytics-plugin-posthog
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

PostHog

This library exports the posthog plugin for the analytics package & standalone methods for any project to use to make it easier to interact with PostHog.

This analytics plugin will load PostHog into your application.

Installation

npm install analytics
npm install analytics-plugin-posthog

How to use

import Analytics from "analytics";
import posthog from "analytics-plugin-posthog";

const analytics = Analytics({
  app: "awesome-app",
  plugins: [
    posthog({
      token: "1234", // required
    }),
  ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i analytics-plugin-posthog

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

211 kB

Total Files

13

Last publish

Collaborators

  • deevus