Package com.dmurph.tracking
Class AnalyticsRequestData
- java.lang.Object
-
- com.dmurph.tracking.AnalyticsRequestData
-
public class AnalyticsRequestData extends java.lang.Object
Tracking data that is pertinent to each individual tracking request.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
eventAction
private java.lang.String
eventCategory
private java.lang.String
eventLabel
private java.lang.Integer
eventValue
private java.lang.String
hostName
private java.lang.String
pageTitle
private java.lang.String
pageURL
private java.lang.String
utmccn
private java.lang.String
utmcct
private java.lang.String
utmcmd
private java.lang.String
utmcsr
private java.lang.String
utmctr
-
Constructor Summary
Constructors Constructor Description AnalyticsRequestData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEventAction()
java.lang.String
getEventCategory()
java.lang.String
getEventLabel()
java.lang.Integer
getEventValue()
java.lang.String
getHostName()
java.lang.String
getPageTitle()
java.lang.String
getPageURL()
java.lang.String
getUtmccn()
java.lang.String
getUtmcct()
java.lang.String
getUtmcmd()
java.lang.String
getUtmcsr()
java.lang.String
getUtmctr()
void
setEventAction(java.lang.String argEventAction)
Sets the event action, which is required for tracking events.void
setEventCategory(java.lang.String argEventCategory)
Sets the event category, which is required for tracking events.void
setEventLabel(java.lang.String argEventLabel)
Sets the event label, which is optional for tracking events.void
setEventValue(java.lang.Integer argEventValue)
Sets the event value, which is optional for tracking events.void
setHostName(java.lang.String argHostName)
The host name of the pagevoid
setPageTitle(java.lang.String argContentTitle)
Sets the page title, which will be the Content Title in Google Analyticsvoid
setPageURL(java.lang.String argPageURL)
The page url, which is required.void
setReferrer(java.lang.String argSite, java.lang.String argPage)
void
setSearchReferrer(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
-
-