C# Класс CSharpAnalytics.Protocols.Urchin.UrchinAnalyticsClient

UrchinAnalyticsClient should exist for the scope of your application and is the primary entry point for tracking via Urchin.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SessionCustomVariables CustomVariableSlots
VisitorCustomVariables CustomVariableSlots

Открытые методы

Метод Описание
Configure ( UrchinConfiguration configuration, SessionManager sessionManager, IEnvironment environment, Action sender ) : void

Create a new AnalyticsClient with a given configuration, session, environment and URI sender.

Track ( IUrchinActivity activity, CustomVariableSlots activityCustomVariables = null ) : void

Track this activity in analytics.

Приватные методы

Метод Описание
GetFinalCustomVariables ( CustomVariableSlots activityCustomVariables ) : ScopedCustomVariableSlot[]

Expands a set of scoped custom variable slots into a final array containing the custom variables and their scope.

Описание методов

Configure() публичный Метод

Create a new AnalyticsClient with a given configuration, session, environment and URI sender.
public Configure ( UrchinConfiguration configuration, SessionManager sessionManager, IEnvironment environment, Action sender ) : void
configuration UrchinConfiguration Configuration of this Google Analytics Urchin client.
sessionManager CSharpAnalytics.Sessions.SessionManager Session manager with visitor and session information.
environment IEnvironment Provider of environmental information such as screen resolution.
sender Action Action to take prepared URIs for Google Analytics and send them on.
Результат void

Track() публичный Метод

Track this activity in analytics.
public Track ( IUrchinActivity activity, CustomVariableSlots activityCustomVariables = null ) : void
activity IUrchinActivity Activity to track in analytics.
activityCustomVariables CustomVariableSlots Activity scoped custom variable slots to record for this activity.
Результат void

Описание свойств

SessionCustomVariables публичное свойство

Custom variables currently declared for this session.
public CustomVariableSlots SessionCustomVariables
Результат CustomVariableSlots

VisitorCustomVariables публичное свойство

Custom variables currently declared for this visitor.
public CustomVariableSlots VisitorCustomVariables
Результат CustomVariableSlots