Skip to main content
The C# SDK makes it easy to track events from all C#/.NET applications.

Installation

The C# SDK can be installed from NuGet:
To initialize the C# SDK in your application, create a new Analytics instance:

API

Identify

The analytics.Identify method sends an identify event. Example usage:

Track

The analytics.Track method sends a track event. Example usage:

Page

The analytics.Page method sends a page event. Example usage:

Screen

The analytics.Screen method sends a screen event. Example usage:

Group

The analytics.Group method sends a group event. Example usage:

Flush

The C# SDK buffers events locally, either in-memory or on disk, before sending them to Hightouch’s servers. This minimizes the number of requests made by the SDK and makes the tracking non-blocking. To force the local buffer to be sent to Hightouch immediately call the Flush() method. Flush() should be called when shutting down your app to make sure no events are lost. Example usage:
Last modified on August 20, 2024