Package com.dmurph.tracking
Class AnalyticsRequestData
- java.lang.Object
-
- com.dmurph.tracking.AnalyticsRequestData
-
public class AnalyticsRequestData extends java.lang.ObjectTracking data that is pertinent to each individual tracking request.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringeventActionprivate java.lang.StringeventCategoryprivate java.lang.StringeventLabelprivate java.lang.IntegereventValueprivate java.lang.StringhostNameprivate java.lang.StringpageTitleprivate java.lang.StringpageURLprivate java.lang.Stringutmccnprivate java.lang.Stringutmcctprivate java.lang.Stringutmcmdprivate java.lang.Stringutmcsrprivate java.lang.Stringutmctr
-
Constructor Summary
Constructors Constructor Description AnalyticsRequestData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEventAction()java.lang.StringgetEventCategory()java.lang.StringgetEventLabel()java.lang.IntegergetEventValue()java.lang.StringgetHostName()java.lang.StringgetPageTitle()java.lang.StringgetPageURL()java.lang.StringgetUtmccn()java.lang.StringgetUtmcct()java.lang.StringgetUtmcmd()java.lang.StringgetUtmcsr()java.lang.StringgetUtmctr()voidsetEventAction(java.lang.String argEventAction)Sets the event action, which is required for tracking events.voidsetEventCategory(java.lang.String argEventCategory)Sets the event category, which is required for tracking events.voidsetEventLabel(java.lang.String argEventLabel)Sets the event label, which is optional for tracking events.voidsetEventValue(java.lang.Integer argEventValue)Sets the event value, which is optional for tracking events.voidsetHostName(java.lang.String argHostName)The host name of the pagevoidsetPageTitle(java.lang.String argContentTitle)Sets the page title, which will be the Content Title in Google AnalyticsvoidsetPageURL(java.lang.String argPageURL)The page url, which is required.voidsetReferrer(java.lang.String argSite, java.lang.String argPage)voidsetSearchReferrer(java.lang.String argSearchSource, java.lang.String argSearchKeywords)
-
-
-
Field Detail
-
pageTitle
private java.lang.String pageTitle
-
hostName
private java.lang.String hostName
-
pageURL
private java.lang.String pageURL
-
eventCategory
private java.lang.String eventCategory
-
eventAction
private java.lang.String eventAction
-
eventLabel
private java.lang.String eventLabel
-
eventValue
private java.lang.Integer eventValue
-
utmcsr
private java.lang.String utmcsr
-
utmccn
private java.lang.String utmccn
-
utmctr
private java.lang.String utmctr
-
utmcmd
private java.lang.String utmcmd
-
utmcct
private java.lang.String utmcct
-
-
Method Detail
-
setReferrer
public void setReferrer(java.lang.String argSite, java.lang.String argPage)
-
setSearchReferrer
public void setSearchReferrer(java.lang.String argSearchSource, java.lang.String argSearchKeywords)
-
getUtmcsr
public java.lang.String getUtmcsr()
- Returns:
- the utmcsr
-
getUtmccn
public java.lang.String getUtmccn()
- Returns:
- the utmccn
-
getUtmctr
public java.lang.String getUtmctr()
- Returns:
- the utmctr
-
getUtmcmd
public java.lang.String getUtmcmd()
- Returns:
- the utmcmd
-
getUtmcct
public java.lang.String getUtmcct()
- Returns:
- the utmcct
-
getEventAction
public java.lang.String getEventAction()
- Returns:
- the eventAction
-
getEventCategory
public java.lang.String getEventCategory()
- Returns:
- the eventCategory
-
getEventLabel
public java.lang.String getEventLabel()
- Returns:
- the eventLabel
-
getEventValue
public java.lang.Integer getEventValue()
- Returns:
- the eventValue
-
getHostName
public java.lang.String getHostName()
- Returns:
- the hostName
-
getPageTitle
public java.lang.String getPageTitle()
- Returns:
- the contentTitle
-
getPageURL
public java.lang.String getPageURL()
- Returns:
- the pageURL
-
setEventAction
public void setEventAction(java.lang.String argEventAction)
Sets the event action, which is required for tracking events.- Parameters:
argEventAction- the eventAction to set
-
setEventCategory
public void setEventCategory(java.lang.String argEventCategory)
Sets the event category, which is required for tracking events.- Parameters:
argEventCategory- the eventCategory to set
-
setEventLabel
public void setEventLabel(java.lang.String argEventLabel)
Sets the event label, which is optional for tracking events.- Parameters:
argEventLabel- the eventLabel to set
-
setEventValue
public void setEventValue(java.lang.Integer argEventValue)
Sets the event value, which is optional for tracking events.- Parameters:
argEventValue- the eventValue to set
-
setHostName
public void setHostName(java.lang.String argHostName)
The host name of the page- Parameters:
argHostName- the hostName to set
-
setPageTitle
public void setPageTitle(java.lang.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(java.lang.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
-
-