com.dmurph.tracking
Class AnalyticsRequestData

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

public class AnalyticsRequestData
extends Object

Tracking data that is pertinent to each individual tracking request.

Author:
Daniel Murphy

Constructor Summary
AnalyticsRequestData()
           
 
Method Summary
 String getEventAction()
           
 String getEventCategory()
           
 String getEventLabel()
           
 Integer getEventValue()
           
 String getHostName()
           
 String getPageTitle()
           
 String getPageURL()
           
 String getUtmccn()
           
 String getUtmcct()
           
 String getUtmcmd()
           
 String getUtmcsr()
           
 String getUtmctr()
           
 void setEventAction(String argEventAction)
          Sets the event action, which is required for tracking events.
 void setEventCategory(String argEventCategory)
          Sets the event category, which is required for tracking events.
 void setEventLabel(String argEventLabel)
          Sets the event label, which is optional for tracking events.
 void setEventValue(Integer argEventValue)
          Sets the event value, which is optional for tracking events.
 void setHostName(String argHostName)
          The host name of the page
 void setPageTitle(String argContentTitle)
          Sets the page title, which will be the Content Title in Google Analytics
 void setPageURL(String argPageURL)
          The page url, which is required.
 void setReferrer(String argSite, String argPage)
           
 void setSearchReferrer(String argSearchSource, String argSearchKeywords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyticsRequestData

public AnalyticsRequestData()
Method Detail

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


Copyright © 2011. All Rights Reserved.