Skip to content
Snippets Groups Projects
Commit 21ae8064 authored by llaffont's avatar llaffont
Browse files

Correction track event google analytics

parent 4402e459
No related merge requests found
......@@ -55,7 +55,7 @@ class AuthController extends Zend_Controller_Action
return $this->view->_('Identifiant ou mot de passe incorrect.');
$user = Class_Users::getIdentity();
$this->_helper->trackEvent('authentification', 'login', $user->getLibelleRole(), $user->getId());
$this->_helper->trackEvent('authentification', 'login', $user->getId());
}
//------------------------------------------------------------------------------------------------------
......
......@@ -23,18 +23,17 @@ class ZendAfi_Controller_Action_Helper_TrackEvent extends Zend_Controller_Action
/**
* voir [[file:~/public_html/afi-opac3/library/Class/ScriptLoader.php::public%20function%20executeTrackEvents()%20{][Class_ScriptLoader::executeTrackEvents]]
*/
public function trackEvent($category, $action, $label, $value) {
public function trackEvent($category, $action, $value) {
$this->getActionController()
->getHelper('flashMessenger')
->addMessage([ZendAfi_Controller_Action_Helper_FlashMessenger::TRACK_EVENT =>
['category' => $category,
'action' => $action,
'label' => 'abonne_sigb',
'value' => 2]]);
}
public function direct($category, $action, $label, $value) {
return $this->trackEvent($category, $action, $label, $value);
public function direct($category, $action, $value) {
return $this->trackEvent($category, $action, $value);
}
}
......
......@@ -461,7 +461,6 @@ class AuthControllerPostSimpleSuccessfulTest extends AuthControllerPostSimpleTes
$this->assertFlashMessengerContains(['track_event' =>
['category' => 'authentification',
'action' => 'login',
'label' => 'abonne_sigb',
'value' => '2']]);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment