Skip to content
Snippets Groups Projects
Commit 816e8671 authored by jcgachod's avatar jcgachod
Browse files

Correction Google Analytics

parent 82f332d5
Branches
Tags
No related merge requests found
......@@ -64,9 +64,9 @@ class Class_WebService_Analytics_Client {
// Assemble Visitor information
// (could also get unserialized from database)
if( !isset($session->uniqueID) ) {
if( !isset($session->uniqueID) || !isset($session->visitor) ) {
$visitor = new GoogleAnalytics\Visitor();
$session->uniqueID = generateHash(rand(1000000,2000000));
$session->uniqueID = md5(Zend_Session::getId());
} else {
$visitor = unserialize($session->visitor);
}
......@@ -82,6 +82,7 @@ class Class_WebService_Analytics_Client {
$visitor->addSession($session);
$session->visitor = serialize($visitor);
return $visitor;
}
}
......
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