C# Класс Dinheiro.GoogleAnalytics.GoogleAnalytics

Наследование: IGoogleAnalytics
Показать файл Открыть проект

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

Свойство Тип Описание
Account string
EnableDisplayFeatures bool
StateStorage IStateStorage
TrackingType GoogleAnalyticsTrackingType

Private Properties

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

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

Метод Описание
AddItem ( string sku, string name, decimal price, int quantity, object orderId = null, string category = null ) : void
AddTransaction ( object orderId, decimal total, decimal tax = null, decimal shipping = null, string affiliation = null, string city = null, string state = null, string country = null ) : void
Render ( ) : IHtmlString

Renders the required JavaScript onto the page for Google Analytics tracking. Recommended to include this within the head element of the page.

Reset ( ) : void

Clears the current GoogleAnalytics state.

SetCurrency ( string currencyCode ) : void
TrackEvent ( string category, string action, string label = null, int value = null, bool nonInteraction = false ) : void
TrackSocial ( string network, string socialAction, string target = null, string pagePath = null ) : void

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

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

public AddItem ( string sku, string name, decimal price, int quantity, object orderId = null, string category = null ) : void
sku string
name string
price decimal
quantity int
orderId object
category string
Результат void

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

public AddTransaction ( object orderId, decimal total, decimal tax = null, decimal shipping = null, string affiliation = null, string city = null, string state = null, string country = null ) : void
orderId object
total decimal
tax decimal
shipping decimal
affiliation string
city string
state string
country string
Результат void

Render() публичный статический Метод

Renders the required JavaScript onto the page for Google Analytics tracking. Recommended to include this within the head element of the page.
public static Render ( ) : IHtmlString
Результат IHtmlString

Reset() публичный статический Метод

Clears the current GoogleAnalytics state.
public static Reset ( ) : void
Результат void

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

public SetCurrency ( string currencyCode ) : void
currencyCode string
Результат void

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

public TrackEvent ( string category, string action, string label = null, int value = null, bool nonInteraction = false ) : void
category string
action string
label string
value int
nonInteraction bool
Результат void

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

public TrackSocial ( string network, string socialAction, string target = null, string pagePath = null ) : void
network string
socialAction string
target string
pagePath string
Результат void

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

Account публичное статическое свойство

Your Google Analytics account, or web property ID.
public static string Account
Результат string

EnableDisplayFeatures публичное статическое свойство

Enable/disable the Google Analytics Display Features plugin. See https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features for more information.
public static bool EnableDisplayFeatures
Результат bool

StateStorage публичное статическое свойство

public static IStateStorage StateStorage
Результат IStateStorage

TrackingType публичное статическое свойство

Set to whichever type of Google Analytics your profile is setup as. This determines how the scripts for web tracking are rendered.
public static GoogleAnalyticsTrackingType TrackingType
Результат GoogleAnalyticsTrackingType