Package com.dmurph.tracking
Class AnalyticsConfigData
- java.lang.Object
-
- com.dmurph.tracking.AnalyticsConfigData
-
public class AnalyticsConfigData extends java.lang.ObjectData that is client-specific, and should be common for all tracking requests. For convenience most of this data is populated automatically by#populateFromSystem().
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcolorDepthprivate java.lang.Stringencodingprivate java.lang.StringflashVersionprivate java.lang.StringscreenResolutionprivate java.lang.StringtrackingCodeprivate java.lang.StringuserAgentprivate java.lang.StringuserLanguageprivate VisitorDatavisitorData
-
Constructor Summary
Constructors Constructor Description AnalyticsConfigData(java.lang.String argTrackingCode)constructs with the tracking code and a new visitor data.AnalyticsConfigData(java.lang.String argTrackingCode, VisitorData visitorData)constructs with the tracking code using the provided visitor data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetColorDepth()java.lang.StringgetEncoding()java.lang.StringgetFlashVersion()java.lang.StringgetScreenResolution()java.lang.StringgetTrackingCode()java.lang.StringgetUserAgent()java.lang.StringgetUserLanguage()VisitorDatagetVisitorData()voidsetColorDepth(java.lang.String argColorDepth)Sets the color depth of the user.voidsetEncoding(java.lang.String argEncoding)Sets the character encoding of the client.voidsetFlashVersion(java.lang.String argFlashVersion)Sets the flash version of the client, like "9.0 r24"voidsetScreenResolution(java.lang.String argScreenResolution)Sets the screen resolution, like "1280x800".voidsetUserAgent(java.lang.String userAgent)voidsetUserLanguage(java.lang.String argUserLanguage)Sets the user language, like "EN-us"
-
-
-
Field Detail
-
trackingCode
private final java.lang.String trackingCode
-
encoding
private java.lang.String encoding
-
screenResolution
private java.lang.String screenResolution
-
colorDepth
private java.lang.String colorDepth
-
userLanguage
private java.lang.String userLanguage
-
flashVersion
private java.lang.String flashVersion
-
userAgent
private java.lang.String userAgent
-
visitorData
private VisitorData visitorData
-
-
Constructor Detail
-
AnalyticsConfigData
public AnalyticsConfigData(java.lang.String argTrackingCode)
constructs with the tracking code and a new visitor data.- Parameters:
argTrackingCode-
-
AnalyticsConfigData
public AnalyticsConfigData(java.lang.String argTrackingCode, VisitorData visitorData)constructs with the tracking code using the provided visitor data.- Parameters:
argTrackingCode-
-
-
Method Detail
-
getColorDepth
public java.lang.String getColorDepth()
- Returns:
- the colorDepth
-
getEncoding
public java.lang.String getEncoding()
- Returns:
- the encoding
-
getFlashVersion
public java.lang.String getFlashVersion()
- Returns:
- the flashVersion
-
getScreenResolution
public java.lang.String getScreenResolution()
- Returns:
- the screenResolution
-
getTrackingCode
public java.lang.String getTrackingCode()
- Returns:
- the trackingCode
-
getUserLanguage
public java.lang.String getUserLanguage()
- Returns:
- the userLanguage
-
getUserAgent
public java.lang.String getUserAgent()
- Returns:
- the user agent used for the network requests
-
getVisitorData
public VisitorData getVisitorData()
- Returns:
- the visitor data, used to track unique visitors
-
setColorDepth
public void setColorDepth(java.lang.String argColorDepth)
Sets the color depth of the user. like 32 bit.- Parameters:
argColorDepth-
-
setEncoding
public void setEncoding(java.lang.String argEncoding)
Sets the character encoding of the client. like UTF-8- Parameters:
argEncoding- the encoding to set
-
setFlashVersion
public void setFlashVersion(java.lang.String argFlashVersion)
Sets the flash version of the client, like "9.0 r24"- Parameters:
argFlashVersion- the flashVersion to set
-
setScreenResolution
public void setScreenResolution(java.lang.String argScreenResolution)
Sets the screen resolution, like "1280x800".- Parameters:
argScreenResolution- the screenResolution to set
-
setUserLanguage
public void setUserLanguage(java.lang.String argUserLanguage)
Sets the user language, like "EN-us"- Parameters:
argUserLanguage- the userLanguage to set
-
setUserAgent
public void setUserAgent(java.lang.String userAgent)
-
-