public function trackEvent($category, $action, $label = null, $value = null)
	{
		$item = "ga('send', 'event', '{$category}', '{$action}'" .
			($label !== null ? ", '{$label}'" : '') .
			($value !== null && is_numeric($value) ? ", {$value}" : '') .
			");";
		$this->addItem($item);
	}
public function trackEvent($category, $action, $label = null, $value = null)
	{
		$item = "ga('send', 'event', '{$category}', '{$action}'" .
			($label !== null ? ", '{$label}'" : '') .
			($value !== null && is_numeric($value) ? ", {$value}" : '') .
			");";
		$this->addItem($item);
	}
public function trackEvent ( $ category , $ action , $ label = null , $ value = null ) { $ item = "ga('send', 'event', '{$category}', '{$action}'" . ( $ label !== null ? ", '{$label}'" : '' ) . ( $ value !== null && is_numeric ( $ value ) ? ", {$value}" : '' ) . ");" ; $ this -> addItem ( $ item ) ; }
Track an event.

@param string  $category
@param string  $action
@param string  $label
@param integer $value

@return void
Track an event .