C# 클래스 Dinheiro.GoogleAnalytics.GoogleAnalytics

상속: IGoogleAnalytics
파일 보기 프로젝트 열기: davidduffett/Dinheiro

공개 프로퍼티들

프로퍼티 타입 설명
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