The PageSense C# SDK empowers developers to integrate, conduct A/B testing, and personalize user experiences within C#.NET applications. PageSense C# SDK offers a simple and reliable way to integrate FullStack A/B Testing into your C#.NET-based applications. Acting as a lightweight wrapper around the PageSense REST APIs, this SDK enables backend services to trigger experiments, evaluate variations, and track user engagement and conversion metrics in real time.
C# SDK allows you to
- Add A/B testing support to your C#.NET application with minimal configuration.
- Handles all communication with the PageSense server internally using secure REST API calls.
- Programmatically retrieves all relevant project settings to ensure your application stays synchronised.
- Captures and sends user interactions, engagements, and conversion details in real time.
- Stores user attributes for use in audience targeting and report segmentation.
The C# SDK serves as a communication layer between your C# .Net application and the PageSense to run FullStack A/B Test. Once configured, it can:
- Fetch all active experiments associated with your project.
- Determine the correct variation to serve for a user or session as part of the A/B test.
- Track goal completions and other experiment-specific events.
- Report all metrics back to PageSense for detailed analytics and decision-making.
PageSense C# SDK is available as a downloadable DLL file that you can integrate into your application to run the A/B Test. Click on the link given below to download the same.
PageSense C# SDK requires the following external DLL libraries (dependencies) to function properly. These libraries provide essential functionalities such as logging, hashing, and JSON serialization for the C# SDK.
Dependencies:
Dependency | Version | Description |
log4net | 3.1.0 | Provides a robust logging framework for .NET applications |
murmurhash | 1.0.3 | Implements the MurmurHash algorithm used for generating hash values |
Newtonsoft.Json | 13.0.3 | Enables serialization and deserialization of JSON data
|
All the above libraries are available on the official NuGet package repository. NuGet is the package manager for .NET that simplifies the process of managing third-party libraries and dependencies in a .NET project.
You can add the required dependencies to your project using one of the following methods:
1. Using the NuGet Package Manager Console (Recommended)
Open Package Manager Console in Visual Studio (from Tools > NuGet Package Manager > Package Manager Console) and execute the following commands:
Install-Package log4net -Version 3.0.4
Install-Package murmurhash -Version 1.0.3
Install-Package Newtonsoft.Json -Version 13.0.3
This method will automatically download and include the packages in your project.
2. Using Visual Studio’s NuGet Package Manager UI
1. Right-click your project in Solution Explorer.
2. Select Manage NuGet Packages.
3. Navigate to the Browse tab.
4. Search for and install each of the following packages with their specified versions:
log4net - Version - 3.0.4
murmurhash - Version - 1.0.3
Newtonsoft.Json - Version - 13.0.3
Ensure that the correct version is selected before installing and verify all the packages are included in your project.
3. Editing the Project File Manually
You may also add the following package references directly to your .csproj file of your .Net project.
<ItemGroup> <PackageReference Include="log4net" Version="3.0.4" /> <PackageReference Include="murmurhash" Version="1.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> </ItemGroup> |
After saving the changes, rebuild your project to restore the packages.
Once the dependencies are successfully added, ensure that:
- All packages appear under Dependencies > Packages in your project.
- Your application compiles without any missing reference errors.
Please ensure your development environment has access to the internet to download NuGet packages and that your project targets .NET Framework 4.7.2 or higher.
We hope this documentation helps make the process easy for you. Please feel free to reach out to us anytime by dropping an email to
support@zohopagesense.com if you need more explanation or have any questions.