com.dmurph.tracking
Class AnalyticsConfigData

java.lang.Object
  extended by com.dmurph.tracking.AnalyticsConfigData

public class AnalyticsConfigData
extends Object

Data that is client-specific, and should be common for all tracking requests. For convenience most of this data is populated automatically by populateFromSystem().

Author:
Daniel Murphy

Constructor Summary
AnalyticsConfigData(String argTrackingCode)
          constructs with the tracking code, and automatically populates most of the config data from the current system.
 
Method Summary
 String getColorDepth()
           
 String getEncoding()
           
 String getFlashVersion()
           
 String getScreenResolution()
           
 String getTrackingCode()
           
 String getUserLanguage()
           
 void populateFromSystem()
          Populates user language, color depth, screen resolution, and character encoding.
 void 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 setUserLanguage(String argUserLanguage)
          Sets the user language, like "EN-us"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyticsConfigData

public AnalyticsConfigData(String argTrackingCode)
constructs with the tracking code, and automatically populates most of the config data from the current system.

Parameters:
argTrackingCode -
Method Detail

populateFromSystem

public void populateFromSystem()
Populates user language, color depth, screen resolution, and character encoding. Can't get flash version.


getColorDepth

public String getColorDepth()
Returns:
the colorDepth

getEncoding

public String getEncoding()
Returns:
the encoding

getFlashVersion

public String getFlashVersion()
Returns:
the flashVersion

getScreenResolution

public String getScreenResolution()
Returns:
the screenResolution

getTrackingCode

public String getTrackingCode()
Returns:
the trackingCode

getUserLanguage

public String getUserLanguage()
Returns:
the userLanguage

setColorDepth

public void setColorDepth(String argColorDepth)
Sets the color depth of the user. like 32 bit.

Parameters:
argColorDepth -

setEncoding

public void setEncoding(String argEncoding)
Sets the character encoding of the client. like UTF-8

Parameters:
argEncoding - the encoding to set

setFlashVersion

public void setFlashVersion(String argFlashVersion)
Sets the flash version of the client, like "9.0 r24"

Parameters:
argFlashVersion - the flashVersion to set

setScreenResolution

public void setScreenResolution(String argScreenResolution)
Sets the screen resolution, like "1280x800".

Parameters:
argScreenResolution - the screenResolution to set

setUserLanguage

public void setUserLanguage(String argUserLanguage)
Sets the user language, like "EN-us"

Parameters:
argUserLanguage - the userLanguage to set


Copyright © 2011. All Rights Reserved.