C# Class GoogleUniversalAnalytics, swip3

Show file Open project: unit9/swip3 Class Usage Examples

Public Properties

Property Type Description
analyticsDisabled bool
appName string
appVersion string
clientID string
customHeaders Hashtable
trackingID string
useHTTPS bool

Public Methods

Method Description
GoogleUniversalAnalytics ( ) : UnityEngine
addAnonymizeIP ( ) : void
addApplicationVersion ( string text = null ) : void
addCampaignContent ( string text, bool allowNonEscaped = false ) : void
addCampaignID ( string text ) : void
addCampaignKeyword ( string text, bool allowNonEscaped = false ) : void
addCampaignMedium ( string text ) : void
addCampaignName ( string text ) : void
addCampaignSource ( string text ) : void
addContentDescription ( string text ) : void
addCurrencyCode ( string text ) : void
addCustomDimension ( int index, string text ) : void
addCustomMetric ( int index, long value ) : void
addDNSTime ( int value ) : void
addDocumentEncoding ( string text ) : void
addDocumentHostName ( string text ) : void
addDocumentLocationURL ( string url, bool allowNonEscaped = false ) : void
addDocumentPath ( string text, bool allowNonEscaped = false ) : void
addDocumentReferrer ( string url, bool allowNonEscaped = false ) : void
addDocumentTitle ( string text ) : void
addEventAction ( string text ) : void
addEventCategory ( string text ) : void
addEventLabel ( string text ) : void
addEventValue ( int value ) : void
addExceptionDescription ( string text ) : void
addExceptionIsFatal ( bool value ) : void
addExperimentID ( string text ) : void
addExperimentVariant ( string text ) : void
addFlashVersion ( int major, int minor, int revision ) : void
addGoogleAdWordsID ( string text ) : void
addGoogleDisplayAdsID ( string text ) : void
addItemCategory ( string text ) : void
addItemCode ( string text ) : void
addItemName ( string text ) : void
addItemPrice ( double currency ) : void
addItemQuantity ( int value ) : void
addJavaEnabled ( bool enabled ) : void
addLinkID ( string text ) : void
addNonInteractionHit ( ) : void
addPageDownloadTime ( int value ) : void
addPageLoadTime ( int value ) : void
addQueueTime ( int ms ) : void
addRedirectResponseTime ( int value ) : void
addScreenColors ( int depthBits ) : void
addScreenResolution ( int width, int height ) : void
addServerResponseTime ( int value ) : void
addSessionControl ( bool type ) : void
addSocialAction ( string text ) : void
addSocialActionTarget ( string text, bool allowNonEscaped = false ) : void
addSocialNetwork ( string text ) : void
addTCPConnectTime ( int value ) : void
addTransactionAffiliation ( string text ) : void
addTransactionID ( string text ) : void
addTransactionRevenue ( double currency ) : void
addTransactionShipping ( double currency ) : void
addTransactionTax ( double currency ) : void
addUserLanguage ( string text ) : void
addUserTimingCategory ( string text ) : void
addUserTimingLabel ( string text ) : void
addUserTimingTime ( int value ) : void
addUserTimingVariableName ( string text ) : void
addViewportSize ( int width, int height ) : void
beginHit ( HitType hitType ) : bool
initialize ( string trackingID, string anonymousClientID, string appName = "", string appVersion = "", bool useHTTPS = false ) : void
sendAppScreenHit ( string screenName ) : void
sendBrowserTimingHit ( int dnsTime, int pageDownloadTime, int redirectTime, int tcpConnectTime, int serverResponseTime ) : void
sendEventHit ( string eventCategory, string eventAction, string eventLabel = null, int eventValue = -1 ) : void
sendExceptionHit ( string description, bool isFatal ) : void
sendHit ( ) : bool
sendItemHit ( string transactionID, string itemName, double price, int quantity, string itemCode, string itemCategory, string currencyCode ) : void
sendPageViewHit ( string documentHostName, string documentPath, string documentTitle ) : void
sendSocialHit ( string network, string action, string target ) : void
sendTransactionHit ( string transactionID, string affiliation, double revenue, double shipping, double tax, string currencyCode ) : void
sendUserTimingHit ( string category, string variable, int time, string label ) : void
setStringEscaping ( bool useStringEscaping ) : void

Private Methods

Method Description
returnStringAsIs ( string s ) : string
returnStringAsIs_withEscapingCheck ( string s ) : string

Method Details

GoogleUniversalAnalytics() public method

public GoogleUniversalAnalytics ( ) : UnityEngine
return UnityEngine

addAnonymizeIP() public method

public addAnonymizeIP ( ) : void
return void

addApplicationVersion() public method

public addApplicationVersion ( string text = null ) : void
text string
return void

addCampaignContent() public method

public addCampaignContent ( string text, bool allowNonEscaped = false ) : void
text string
allowNonEscaped bool
return void

addCampaignID() public method

public addCampaignID ( string text ) : void
text string
return void

addCampaignKeyword() public method

public addCampaignKeyword ( string text, bool allowNonEscaped = false ) : void
text string
allowNonEscaped bool
return void

addCampaignMedium() public method

public addCampaignMedium ( string text ) : void
text string
return void

addCampaignName() public method

public addCampaignName ( string text ) : void
text string
return void

addCampaignSource() public method

public addCampaignSource ( string text ) : void
text string
return void

addContentDescription() public method

public addContentDescription ( string text ) : void
text string
return void

addCurrencyCode() public method

public addCurrencyCode ( string text ) : void
text string
return void

addCustomDimension() public method

public addCustomDimension ( int index, string text ) : void
index int
text string
return void

addCustomMetric() public method

public addCustomMetric ( int index, long value ) : void
index int
value long
return void

addDNSTime() public method

public addDNSTime ( int value ) : void
value int
return void

addDocumentEncoding() public method

public addDocumentEncoding ( string text ) : void
text string
return void

addDocumentHostName() public method

public addDocumentHostName ( string text ) : void
text string
return void

addDocumentLocationURL() public method

public addDocumentLocationURL ( string url, bool allowNonEscaped = false ) : void
url string
allowNonEscaped bool
return void

addDocumentPath() public method

public addDocumentPath ( string text, bool allowNonEscaped = false ) : void
text string
allowNonEscaped bool
return void

addDocumentReferrer() public method

public addDocumentReferrer ( string url, bool allowNonEscaped = false ) : void
url string
allowNonEscaped bool
return void

addDocumentTitle() public method

public addDocumentTitle ( string text ) : void
text string
return void

addEventAction() public method

public addEventAction ( string text ) : void
text string
return void

addEventCategory() public method

public addEventCategory ( string text ) : void
text string
return void

addEventLabel() public method

public addEventLabel ( string text ) : void
text string
return void

addEventValue() public method

public addEventValue ( int value ) : void
value int
return void

addExceptionDescription() public method

public addExceptionDescription ( string text ) : void
text string
return void

addExceptionIsFatal() public method

public addExceptionIsFatal ( bool value ) : void
value bool
return void

addExperimentID() public method

public addExperimentID ( string text ) : void
text string
return void

addExperimentVariant() public method

public addExperimentVariant ( string text ) : void
text string
return void

addFlashVersion() public method

public addFlashVersion ( int major, int minor, int revision ) : void
major int
minor int
revision int
return void

addGoogleAdWordsID() public method

public addGoogleAdWordsID ( string text ) : void
text string
return void

addGoogleDisplayAdsID() public method

public addGoogleDisplayAdsID ( string text ) : void
text string
return void

addItemCategory() public method

public addItemCategory ( string text ) : void
text string
return void

addItemCode() public method

public addItemCode ( string text ) : void
text string
return void

addItemName() public method

public addItemName ( string text ) : void
text string
return void

addItemPrice() public method

public addItemPrice ( double currency ) : void
currency double
return void

addItemQuantity() public method

public addItemQuantity ( int value ) : void
value int
return void

addJavaEnabled() public method

public addJavaEnabled ( bool enabled ) : void
enabled bool
return void

addLinkID() public method

public addLinkID ( string text ) : void
text string
return void

addNonInteractionHit() public method

public addNonInteractionHit ( ) : void
return void

addPageDownloadTime() public method

public addPageDownloadTime ( int value ) : void
value int
return void

addPageLoadTime() public method

public addPageLoadTime ( int value ) : void
value int
return void

addQueueTime() public method

public addQueueTime ( int ms ) : void
ms int
return void

addRedirectResponseTime() public method

public addRedirectResponseTime ( int value ) : void
value int
return void

addScreenColors() public method

public addScreenColors ( int depthBits ) : void
depthBits int
return void

addScreenResolution() public method

public addScreenResolution ( int width, int height ) : void
width int
height int
return void

addServerResponseTime() public method

public addServerResponseTime ( int value ) : void
value int
return void

addSessionControl() public method

public addSessionControl ( bool type ) : void
type bool
return void

addSocialAction() public method

public addSocialAction ( string text ) : void
text string
return void

addSocialActionTarget() public method

public addSocialActionTarget ( string text, bool allowNonEscaped = false ) : void
text string
allowNonEscaped bool
return void

addSocialNetwork() public method

public addSocialNetwork ( string text ) : void
text string
return void

addTCPConnectTime() public method

public addTCPConnectTime ( int value ) : void
value int
return void

addTransactionAffiliation() public method

public addTransactionAffiliation ( string text ) : void
text string
return void

addTransactionID() public method

public addTransactionID ( string text ) : void
text string
return void

addTransactionRevenue() public method

public addTransactionRevenue ( double currency ) : void
currency double
return void

addTransactionShipping() public method

public addTransactionShipping ( double currency ) : void
currency double
return void

addTransactionTax() public method

public addTransactionTax ( double currency ) : void
currency double
return void

addUserLanguage() public method

public addUserLanguage ( string text ) : void
text string
return void

addUserTimingCategory() public method

public addUserTimingCategory ( string text ) : void
text string
return void

addUserTimingLabel() public method

public addUserTimingLabel ( string text ) : void
text string
return void

addUserTimingTime() public method

public addUserTimingTime ( int value ) : void
value int
return void

addUserTimingVariableName() public method

public addUserTimingVariableName ( string text ) : void
text string
return void

addViewportSize() public method

public addViewportSize ( int width, int height ) : void
width int
height int
return void

beginHit() public method

public beginHit ( HitType hitType ) : bool
hitType HitType
return bool

initialize() public method

public initialize ( string trackingID, string anonymousClientID, string appName = "", string appVersion = "", bool useHTTPS = false ) : void
trackingID string
anonymousClientID string
appName string
appVersion string
useHTTPS bool
return void

sendAppScreenHit() public method

public sendAppScreenHit ( string screenName ) : void
screenName string
return void

sendBrowserTimingHit() public method

public sendBrowserTimingHit ( int dnsTime, int pageDownloadTime, int redirectTime, int tcpConnectTime, int serverResponseTime ) : void
dnsTime int
pageDownloadTime int
redirectTime int
tcpConnectTime int
serverResponseTime int
return void

sendEventHit() public method

public sendEventHit ( string eventCategory, string eventAction, string eventLabel = null, int eventValue = -1 ) : void
eventCategory string
eventAction string
eventLabel string
eventValue int
return void

sendExceptionHit() public method

public sendExceptionHit ( string description, bool isFatal ) : void
description string
isFatal bool
return void

sendHit() public method

public sendHit ( ) : bool
return bool

sendItemHit() public method

public sendItemHit ( string transactionID, string itemName, double price, int quantity, string itemCode, string itemCategory, string currencyCode ) : void
transactionID string
itemName string
price double
quantity int
itemCode string
itemCategory string
currencyCode string
return void

sendPageViewHit() public method

public sendPageViewHit ( string documentHostName, string documentPath, string documentTitle ) : void
documentHostName string
documentPath string
documentTitle string
return void

sendSocialHit() public method

public sendSocialHit ( string network, string action, string target ) : void
network string
action string
target string
return void

sendTransactionHit() public method

public sendTransactionHit ( string transactionID, string affiliation, double revenue, double shipping, double tax, string currencyCode ) : void
transactionID string
affiliation string
revenue double
shipping double
tax double
currencyCode string
return void

sendUserTimingHit() public method

public sendUserTimingHit ( string category, string variable, int time, string label ) : void
category string
variable string
time int
label string
return void

setStringEscaping() public method

public setStringEscaping ( bool useStringEscaping ) : void
useStringEscaping bool
return void

Property Details

analyticsDisabled public property

public bool analyticsDisabled
return bool

appName public property

public string appName
return string

appVersion public property

public string appVersion
return string

clientID public property

public string clientID
return string

customHeaders public property

public Hashtable customHeaders
return Hashtable

trackingID public property

public string trackingID
return string

useHTTPS public property

public bool useHTTPS
return bool