Class AnalyticsRequestData

java.lang.Object
com.dmurph.tracking.AnalyticsRequestData

public class AnalyticsRequestData extends Object
Tracking data that is pertinent to each individual tracking request.
  • Field Details

    • pageTitle

      private String pageTitle
    • hostName

      private String hostName
    • pageURL

      private String pageURL
    • eventCategory

      private String eventCategory
    • eventAction

      private String eventAction
    • eventLabel

      private String eventLabel
    • eventValue

      private Integer eventValue
    • utmcsr

      private String utmcsr
    • utmccn

      private String utmccn
    • utmctr

      private String utmctr
    • utmcmd

      private String utmcmd
    • utmcct

      private String utmcct
  • Constructor Details

    • AnalyticsRequestData

      public AnalyticsRequestData()
  • Method Details

    • setReferrer

      public void setReferrer(String argSite, String argPage)
    • setSearchReferrer

      public void setSearchReferrer(String argSearchSource, String argSearchKeywords)
    • getUtmcsr

      public String getUtmcsr()
      Returns:
      the utmcsr
    • getUtmccn

      public String getUtmccn()
      Returns:
      the utmccn
    • getUtmctr

      public String getUtmctr()
      Returns:
      the utmctr
    • getUtmcmd

      public String getUtmcmd()
      Returns:
      the utmcmd
    • getUtmcct

      public String getUtmcct()
      Returns:
      the utmcct
    • getEventAction

      public String getEventAction()
      Returns:
      the eventAction
    • getEventCategory

      public String getEventCategory()
      Returns:
      the eventCategory
    • getEventLabel

      public String getEventLabel()
      Returns:
      the eventLabel
    • getEventValue

      public Integer getEventValue()
      Returns:
      the eventValue
    • getHostName

      public String getHostName()
      Returns:
      the hostName
    • getPageTitle

      public String getPageTitle()
      Returns:
      the contentTitle
    • getPageURL

      public String getPageURL()
      Returns:
      the pageURL
    • setEventAction

      public void setEventAction(String argEventAction)
      Sets the event action, which is required for tracking events.
      Parameters:
      argEventAction - the eventAction to set
    • setEventCategory

      public void setEventCategory(String argEventCategory)
      Sets the event category, which is required for tracking events.
      Parameters:
      argEventCategory - the eventCategory to set
    • setEventLabel

      public void setEventLabel(String argEventLabel)
      Sets the event label, which is optional for tracking events.
      Parameters:
      argEventLabel - the eventLabel to set
    • setEventValue

      public void setEventValue(Integer argEventValue)
      Sets the event value, which is optional for tracking events.
      Parameters:
      argEventValue - the eventValue to set
    • setHostName

      public void setHostName(String argHostName)
      The host name of the page
      Parameters:
      argHostName - the hostName to set
    • setPageTitle

      public void setPageTitle(String argContentTitle)
      Sets the page title, which will be the Content Title in Google Analytics
      Parameters:
      argContentTitle - the contentTitle to set
    • setPageURL

      public void setPageURL(String argPageURL)
      The page url, which is required. Traditionally this is of the form "/content/page.html", but you can put anything here (like "/com/dmurph/test.java").
      Parameters:
      argPageURL - the pageURL to set