Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deevus/analytics-plugin-posthog
https://github.com/deevus/analytics-plugin-posthog
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deevus/analytics-plugin-posthog
- Owner: deevus
- Created: 2024-01-15T23:04:32.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T11:45:00.000Z (12 months ago)
- Last Synced: 2024-12-13T17:51:15.442Z (24 days ago)
- Language: TypeScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostHog
This library exports the `posthog` plugin for the [`analytics`](https://www.npmjs.com/package/analytics) package & standalone methods for any project to use to make it easier to interact with [PostHog](https://www.posthog.com/).
This analytics plugin will load PostHog into your application.
## Installation
```bash
npm install analytics
npm install analytics-plugin-posthog
```## How to use
```typescript
import Analytics from "analytics";
import posthog from "analytics-plugin-posthog";const analytics = Analytics({
app: "awesome-app",
plugins: [
posthog({
token: "1234", // required
}),
],
});
```