Packagecom.distriqt.extension.googleanalytics.builders
Classpublic class EventBuilder
InheritanceEventBuilder Inheritance com.distriqt.extension.googleanalytics.builders._HitBuilderImpl
Implements HitBuilder

A Builder object to build event hits. For meaningful data, event hits should contain at least the event category and the event action.



Public Methods
 MethodDefined By
  
EventBuilder(category:String = null, action:String = null)
Constructor
EventBuilder
  
setAction(action:String):EventBuilder
Set the Action associated with the event
EventBuilder
  
setCategory(category:String):EventBuilder
Set the Category in which the event will be filed
EventBuilder
  
setLabel(label:String):EventBuilder
EventBuilder
  
EventBuilder
Constructor Detail
EventBuilder()Constructor
public function EventBuilder(category:String = null, action:String = null)

Constructor

Parameters
category:String (default = null)
 
action:String (default = null)
Method Detail
setAction()method
public function setAction(action:String):EventBuilder

Set the Action associated with the event

Parameters

action:String

Returns
EventBuilder — The EventBuilder for chaining
setCategory()method 
public function setCategory(category:String):EventBuilder

Set the Category in which the event will be filed

Parameters

category:String

Returns
EventBuilder — The EventBuilder for chaining
setLabel()method 
public function setLabel(label:String):EventBuilder

Parameters

label:String

Returns
EventBuilder
setValue()method 
public function setValue(value:int):EventBuilder

Parameters

value:int

Returns
EventBuilder