Class AnalyticsConfigData

java.lang.Object
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
invalid reference
#populateFromSystem()
.
  • Field Details

    • trackingCode

      private final String trackingCode
    • encoding

      private String encoding
    • screenResolution

      private String screenResolution
    • colorDepth

      private String colorDepth
    • userLanguage

      private String userLanguage
    • flashVersion

      private String flashVersion
    • userAgent

      private String userAgent
    • visitorData

      private VisitorData visitorData
  • Constructor Details

    • AnalyticsConfigData

      public AnalyticsConfigData(String argTrackingCode)
      constructs with the tracking code and a new visitor data.
      Parameters:
      argTrackingCode -
    • AnalyticsConfigData

      public AnalyticsConfigData(String argTrackingCode, VisitorData visitorData)
      constructs with the tracking code using the provided visitor data.
      Parameters:
      argTrackingCode -
  • Method Details

    • 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
    • getUserAgent

      public 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(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
    • setUserAgent

      public void setUserAgent(String userAgent)