PostHog 1.0.0-beta

Prefix Reserved
This is a prerelease version of PostHog.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PostHog --version 1.0.0-beta                
NuGet\Install-Package PostHog -Version 1.0.0-beta                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PostHog" Version="1.0.0-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PostHog --version 1.0.0-beta                
#r "nuget: PostHog, 1.0.0-beta"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PostHog as a Cake Addin
#addin nuget:?package=PostHog&version=1.0.0-beta&prerelease

// Install PostHog as a Cake Tool
#tool nuget:?package=PostHog&version=1.0.0-beta&prerelease                

PostHog .NET SDK

This is a client SDK for the PostHog API written in C#. This is the core implementation of PostHog.

[!WARNING]
This package is currently in a pre-release stage. We're making it available publicly to solicit feedback. While we always strive to maintain a high level of quality, use this package at your own risk. There will be many breaking changes until we reach a stable release.

Goals

The goal of this package is to be usable in multiple .NET environments. At this moment, we are far short of that goal. We only support ASP.NET Core via PostHog.AspNetCore.

Usage

To use this package, you need to create an instance of PostHogClient and call the appropriate methods. Here's an example:

using PostHog;

var client = new PostHogClient(new PostHogOptions { ProjectApiKey = "YOUR_PROJECT_API_KEY" });
await client.CaptureAsync("user-123", "Test Event");
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PostHog:

Package Downloads
PostHog.AspNetCore

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-beta.12 0 2/22/2025
1.0.0-beta.11 512 2/17/2025
1.0.0-beta.10 370 2/15/2025
1.0.0-beta.9 49 2/14/2025
1.0.0-beta.8 93 2/14/2025
1.0.0-beta.7 282 2/14/2025
1.0.0-beta.6 41 2/13/2025
1.0.0-beta.5 664 2/11/2025
1.0.0-beta.4 60 2/10/2025
1.0.0-beta.3 586 2/6/2025
1.0.0-beta.2 28 2/6/2025
1.0.0-beta 56 2/5/2025
1.0.0-alpha.2 46 2/3/2025
1.0.0-alpha 62 2/2/2025