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