Package com.dmurph.tracking
Class AnalyticsConfigData
java.lang.Object
com.dmurph.tracking.AnalyticsConfigData
Data that is client-specific, and should be common for all tracking requests.
For convenience most of this data is populated automatically by
.
invalid reference
#populateFromSystem()
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalyticsConfigData
(String argTrackingCode) constructs with the tracking code and a new visitor data.AnalyticsConfigData
(String argTrackingCode, VisitorData visitorData) constructs with the tracking code using the provided visitor data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setColorDepth
(String argColorDepth) Sets the color depth of the user.void
setEncoding
(String argEncoding) Sets the character encoding of the client.void
setFlashVersion
(String argFlashVersion) Sets the flash version of the client, like "9.0 r24"void
setScreenResolution
(String argScreenResolution) Sets the screen resolution, like "1280x800".void
setUserAgent
(String userAgent) void
setUserLanguage
(String argUserLanguage) Sets the user language, like "EN-us"
-
Field Details
-
trackingCode
-
encoding
-
screenResolution
-
colorDepth
-
userLanguage
-
flashVersion
-
userAgent
-
visitorData
-
-
Constructor Details
-
AnalyticsConfigData
constructs with the tracking code and a new visitor data.- Parameters:
argTrackingCode
-
-
AnalyticsConfigData
constructs with the tracking code using the provided visitor data.- Parameters:
argTrackingCode
-
-
-
Method Details
-
getColorDepth
- Returns:
- the colorDepth
-
getEncoding
- Returns:
- the encoding
-
getFlashVersion
- Returns:
- the flashVersion
-
getScreenResolution
- Returns:
- the screenResolution
-
getTrackingCode
- Returns:
- the trackingCode
-
getUserLanguage
- Returns:
- the userLanguage
-
getUserAgent
- Returns:
- the user agent used for the network requests
-
getVisitorData
- Returns:
- the visitor data, used to track unique visitors
-
setColorDepth
Sets the color depth of the user. like 32 bit.- Parameters:
argColorDepth
-
-
setEncoding
Sets the character encoding of the client. like UTF-8- Parameters:
argEncoding
- the encoding to set
-
setFlashVersion
Sets the flash version of the client, like "9.0 r24"- Parameters:
argFlashVersion
- the flashVersion to set
-
setScreenResolution
Sets the screen resolution, like "1280x800".- Parameters:
argScreenResolution
- the screenResolution to set
-
setUserLanguage
Sets the user language, like "EN-us"- Parameters:
argUserLanguage
- the userLanguage to set
-
setUserAgent
-