src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function gaTrackEvent($values = null)
    {
        $values = func_get_args();
        array_unshift($values, '_trackEvent');

        return sprintf(
            ' onclick="_gaq.push(%s);"',
            htmlspecialchars(json_encode(array_values($values)))
        );
    }
public function gaTrackEvent($values = null)
    {
        $values = func_get_args();
        array_unshift($values, '_trackEvent');

        return sprintf(
            ' onclick="_gaq.push(%s);"',
            htmlspecialchars(json_encode(array_values($values)))
        );
    }
public function gaTrackEvent ( $ values = null ) { $ values = func_get_args ( ) ; array_unshift ( $ values , '_trackEvent' ) ; return sprintf ( ' onclick="_gaq.push(%s);"' , htmlspecialchars ( json_encode ( array_values ( $ values ) ) ) ) ; }
Formats some values as an 'onclick' attribute for Google Analytics

@param null $values
@return string
Formats some values as an onclick attribute for Google Analytics