You are here

public function ssga::setEvent in GA Push 7

File

libs/ssga.class.inc, line 48
SSGA Class implementation

Class

ssga
Class created for serversidegoogleanalytics http://code.google.com/p/serversidegoogleanalytics/

Code

public function setEvent($category, $action, $label = "", $value = "") {
  $this->eventString = "5(" . (string) $category . "*" . (string) $action . ($label ? "*" . (string) $label . ")" : ")") . (intval($value) != 0 ? "(" . (int) intval($value) . ")" : '');
}