An advanced event tracking and analytics platform designed to help developers capture, analyze, and react to user interactions efficiently.
EvntalySDK is a .NET client for interacting with the Evntaly event tracking platform. It provides methods to initialize tracking, log events, identify users, and check API usage limits.
- Initialize the SDK with a developer secret and project token.
- Track events with metadata and tags.
- Identify users for personalization and analytics.
- Enable or disable tracking globally.
To install the SDK using NuGet:
dotnet add package EvntalySDKInitialize the SDK with your developer secret and project token:
using System;
using EvntalySDK;
class Program
{
static void Main()
{
var evntaly = new SDK("YOUR_DEVELOPER_SECRET", "YOUR_PROJECT_TOKEN");
Console.WriteLine("Evntaly SDK initialized!");
}
}To track an event:
var eventData = new Event
{
Title = "Payment Received",
Description = "User completed a purchase",
Message = "Order #12345",
Data = new EventData
{
UserId = "67890",
Timestamp = "2025-01-08T09:30:00Z",
Referrer = "social_media",
EmailVerified = true,
},
Tags = new string[] {"purchase", "payment", "ecommerce"},
Notify = true,
Icon = "💰",
ApplyRuleOnly = false,
User = new EventUser { ID = "12345" },
Type = "Transaction",
SessionID = "20750ebc-dabf-4fd4-9498-443bf30d6095_bsd",
Feature = "Checkout",
Topic = "@Sales"
};
await evntaly.TrackEventAsync(eventData);To identify a user:
var userData = new UserProfile
{
ID = "12345",
Email = "user@example.com",
FullName = "John Doe",
Organization = "ExampleCorp",
Data = new UserProfileData
{
Id = "JohnD",
Email = "user@example.com",
Location = "USA",
Salary = 75000,
Timezone = "America/New_York",
SubscriptionPlan = "Premium",
LastLogin = "2025-02-24T15:30:00Z"
}
};
await evntaly.IdentifyUserAsync(userData);Control event tracking globally:
evntaly.DisableTracking(); // Disables tracking
evntaly.EnableTracking(); // Enables trackingThis project is licensed under the MIT License.
Note: Replace "YOUR_DEVELOPER_SECRET" and "YOUR_PROJECT_TOKEN" with actual credentials.
