PostHog 1.0.0-beta.11

Prefix Reserved
This is a prerelease version of PostHog.
dotnet add package PostHog --version 1.0.0-beta.11                
NuGet\Install-Package PostHog -Version 1.0.0-beta.11                
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.11" />                
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.11                
#r "nuget: PostHog, 1.0.0-beta.11"                
#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.11&prerelease

// Install PostHog as a Cake Tool
#tool nuget:?package=PostHog&version=1.0.0-beta.11&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.

Docs

More detailed docs for using this library can be found at PostHog Docs for the .NET Client SDK.

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" });
client.Capture("user-123", "Test Event");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.11 361 2/17/2025
1.0.0-beta.10 358 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 273 2/14/2025
1.0.0-beta.6 41 2/13/2025
1.0.0-beta.5 662 2/11/2025
1.0.0-beta.4 58 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