프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Account | string | ||
EnableDisplayFeatures | bool | ||
StateStorage | IStateStorage | ||
TrackingType | GoogleAnalyticsTrackingType |
프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
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 |
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 |
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 |
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 |
public TrackSocial ( string network, string socialAction, string target = null, string pagePath = null ) : void | ||
network | string | |
socialAction | string | |
target | string | |
pagePath | string | |
리턴 | void |