This project provides basic API integration for using Mixpanel from .NET applications.
Supported Platform : UWP, .NET(4.5.1)
- Make basic calls to http://api.mixpanel.com/track and track events
Step 1. install nuget:
- UWP: https://www.nuget.org/packages/MixpanelDotNet.UWP/
- WPF: https://www.nuget.org/packages/MixpanelClientDotNet.WPF
Step 2. new the MixpanelClient instance.
IMixpanelClient tracker = new MixpanelClient("your API token");
Step 3. new the EventData, and set properties.
var eventData = new EventData("event name");
eventData.SetProperty("key1", 1);
eventData.SetProperty("key2", "name");
eventData.SetProperty("ket3", true);
tracker.TrackEvent(eventData);