Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "posthog",
"description": "Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Claude Code. Optionally capture Claude Code sessions to PostHog LLM Analytics.",
"version": "1.1.3",
"version": "1.1.4",
"author": {
"name": "PostHog",
"email": "hey@posthog.com",
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog",
"version": "1.0.5",
"version": "1.0.6",
"description": "Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Codex",
"author": {
"name": "PostHog",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "posthog",
"displayName": "PostHog",
"version": "1.0.5",
"version": "1.0.6",
"description": "Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Cursor",
"author": {
"name": "PostHog",
Expand Down
2 changes: 1 addition & 1 deletion gemini-extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog",
"version": "1.0.4",
"version": "1.0.5",
"description": "Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Gemini CLI",
"mcpServers": {
"posthog": {
Expand Down
1 change: 1 addition & 0 deletions skills/.sync-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ instrument-integration
instrument-llm-analytics
instrument-logs
instrument-product-analytics
managing-subscriptions
query-examples
signals
skills-store
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ STEP 6: Set up environment variables.
- `references/api.md` - API feature flags installation - docs
- `references/next-js.md` - Next.js - docs
- `references/adding-feature-flag-code.md` - Adding feature flag code - docs
- `references/best-practices.md` - Feature flag best practices - docs
- `references/best-practices.md` - Best practices for production-ready flags - docs

Each platform reference contains SDK-specific installation, flag evaluation, and code examples. Find the one matching the user's stack. If unlisted, use the API reference as a fallback.

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/android.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Android feature flags installation - Docs
# Android Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# API feature flags installation - Docs
# API Feature Flags installation - Docs

1. 1

Expand Down
224 changes: 156 additions & 68 deletions skills/instrument-feature-flags/references/best-practices.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/dotnet.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .NET feature flags installation - Docs
# .NET Feature Flags installation - Docs

The `PostHog` package supports any .NET platform that targets .NET Standard 2.1 or .NET 8+, including MAUI, Blazor, and console applications. The `PostHog.AspNetCore` package provides additional conveniences for ASP.NET Core applications such as streamlined registration, request-scoped caching, and integration with [.NET Feature Management](https://learn.microsoft.com/en-us/azure/azure-app-configuration/feature-management-dotnet-reference).

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/elixir.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Elixir feature flags installation - Docs
# Elixir Feature Flags installation - Docs

> This library was built by the community but it's being maintained by the PostHog core team since v1.0.0. Thank you to [Nick Kezhaya](https://github.com/nkezhaya) for building it originally. Thank you to [Alex Martsinovich](https://github.com/martosaur) for contributing v2.0.0.

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/flutter.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flutter feature flags installation - Docs
# Flutter Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/go.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Go feature flags installation - Docs
# Go Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/ios.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# iOS feature flags installation - Docs
# iOS Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/java.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Java feature flags installation - Docs
# Java Feature Flags installation - Docs

The best way to install the PostHog Java SDK is with a build system like Gradle or Maven. This ensures you can easily upgrade to the latest versions.

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/nodejs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Node.js feature flags installation - Docs
# Node.js Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/php.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PHP feature flags installation - Docs
# PHP Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/python.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Python feature flags installation - Docs
# Python Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/react-native.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# React Native feature flags installation - Docs
# React Native Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/react.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# React feature flags installation - Docs
# React Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/ruby.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ruby feature flags installation - Docs
# Ruby Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/rust.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rust feature flags installation - Docs
# Rust Feature Flags installation - Docs

Install the `posthog-rs` crate by adding it to your `Cargo.toml`.

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-feature-flags/references/web.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Web feature flags installation - Docs
# Web Feature Flags installation - Docs

1. 1

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-integration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ STEP 7: Verify and clean up.
- `references/EXAMPLE-react-react-router-7-data.md` - react-react-router-7-data example project code
- `references/EXAMPLE-react-react-router-7-declarative.md` - react-react-router-7-declarative example project code
- `references/EXAMPLE-react-vite.md` - react-vite example project code
- `references/EXAMPLE-nuxt-3.6.md` - nuxt-3.6 example project code
- `references/EXAMPLE-nuxt-3-6.md` - nuxt-3-6 example project code
- `references/EXAMPLE-nuxt-4.md` - nuxt-4 example project code
- `references/EXAMPLE-vue-3.md` - vue-3 example project code
- `references/EXAMPLE-react-tanstack-router-file-based.md` - react-tanstack-router-file-based example project code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PostHog nuxt-3.6 Example Project
# PostHog nuxt-3-6 Example Project

Repository: https://github.com/PostHog/context-mill
Path: basics/nuxt-3.6
Path: basics/nuxt-3-6

---

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-integration/references/EXAMPLE-nuxt-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a [Nuxt 4](https://nuxt.com) example demonstrating PostHog integration w

Nuxt 4 supports the `@posthog/nuxt` package, which provides automatic PostHog integration with built-in error tracking, source map uploads, and simplified configuration. This is the recommended approach for Nuxt 4+.

For Nuxt 3.0 - 3.6, you must use the `posthog-js` and `posthog-node` packages directly instead. See the [Nuxt 3.6 example](../nuxt-3.6) for that approach.
For Nuxt 3.0 - 3.6, you must use the `posthog-js` and `posthog-node` packages directly instead. See the [Nuxt 3.6 example](../nuxt-3-6) for that approach.

## Features

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-integration/references/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ The `defaults` is a date, such as `2026-01-30`, for a configuration snapshot use
>
> See our guide on [identifying users](/docs/getting-started/identify-users.md) for how to set this up.

Once you've installed PostHog, see our [features doc](/docs/libraries/js/features.md) for more information about what you can do with it.
Once you've installed PostHog, see our [features doc](/docs/libraries/js/features.md) for more information about what you can do with it. You can also install the [PostHog VS Code extension](/docs/vscode-extension.md) to see live analytics, flag status, and session replay links inline in your code.

### Track across marketing website & app

Expand Down
76 changes: 75 additions & 1 deletion skills/instrument-integration/references/posthog-js.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PostHog JavaScript Web SDK

**SDK Version:** 1.364.6
**SDK Version:** 1.369.0

Posthog-js allows you to automatically capture usage and send events to PostHog.

Expand All @@ -11,6 +11,7 @@ Posthog-js allows you to automatically capture usage and send events to PostHog.
- Capture
- Surveys
- Error tracking
- Logs
- LLM analytics
- Privacy
- Session replay
Expand Down Expand Up @@ -43,6 +44,24 @@ posthog.PostHog();

---

#### clearIdentity()

**Release Tag:** public

Clear HMAC-based identity verification, reverting to anonymous mode.

### Returns

- `void`

### Examples

```ts
posthog.clearIdentity()
```

---

#### get_explicit_consent_status()

**Release Tag:** public
Expand Down Expand Up @@ -120,6 +139,33 @@ posthog.push(['register', { a: 'b' }]);

---

#### setIdentity()

**Release Tag:** public

Set HMAC-based identity verification.

**Notes:**

When set, products like conversations use server-verified identity (distinct_id + HMAC hash) instead of anonymous session identifiers. The hash should be computed server-side as HMAC-SHA256 of the distinct_id using the project's API secret.

### Parameters

- **`distinctId`** (`string`) - The verified user distinct_id
- **`hash`** (`string`) - HMAC-SHA256 of distinctId using the project API secret

### Returns

- `void`

### Examples

```ts
posthog.setIdentity('user_123', 'a1b2c3d4e5f6...')
```

---

### Identification methods

#### alias()
Expand Down Expand Up @@ -1131,6 +1177,34 @@ posthog.stopExceptionAutocapture()

---

### Logs methods

#### captureLog()

**Release Tag:** public

Capture a log entry and send it to the PostHog logs endpoint.

### Parameters

- **`options`** (`CaptureLogOptions`) - The log entry options

### Returns

- `void`

### Examples

```ts
posthog.captureLog({
body: 'checkout completed',
level: 'info',
attributes: { order_id: 'ord_789', amount_cents: 4999 },
})
```

---

### LLM analytics methods

#### captureTraceFeedback()
Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-integration/references/posthog-node.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PostHog Node.js SDK

**SDK Version:** 5.28.11
**SDK Version:** 5.29.2

PostHog Node.js SDK allows you to capture events and send them to PostHog from your Node.js applications.

Expand Down
2 changes: 1 addition & 1 deletion skills/instrument-integration/references/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ Python
PostHog AI

```python
posthog.debug = True # +
posthog.debug = True
```

## Disabling requests during tests
Expand Down
Loading
Loading