IntegracjeBiblioteki Finteza SDKSerwery internetowe ASP.NETInstalacja

Installation

Finteza SDK is available at https://www.nuget.org/packages/FintezaAnalytics.AspNet/.

.NET Framework 4.7.2 or higher is required for operation.


To install it using the NuGet package manager, run the following command:

PM> Install-Package FintezaAnalytics.AspNet

To install via .NET CLI, run the following command:

> dotnet add package FintezaAnalytics.AspNet

After installation, you can use the SDK functions as follows:

using FintezaAnalytics;
...
// call the SDK methods

SDK Initialization #

The SDK is initialized in the global application class in the Global.asax file. Call the Finteza.RegisterAnalytics method inside the Application_Start method of the application:

Finteza.RegisterAnalytics(websiteId: "{WEBSITE_ID}");

Specify the following parameters:

Parameter

Type

Description

websiteId *

string

Website ID. It can be obtained in the website settings (ID field) of the Finteza panel.

url

string

Finteza server address. In most cases, it should not be changed.

logger

Microsoft.Extensions.Logging.ILogger

Microsoft.Extensions.Logging.ILogger interface implementation; used for application logging.

* — required parameters.

After that, add the following call in the Application_End() method of the application:

Finteza.UnregisterAnalytics();

It releases the resources used by Finteza SDK.