Skip to content
Snippets Groups Projects
Commit 3e8444a6 authored by llaffont's avatar llaffont
Browse files

Google analytics: le session ID est un entier 32 bits

parent a20777e1
No related merge requests found
......@@ -66,7 +66,7 @@ class Class_WebService_Analytics_Client {
// (could also get unserialized from database)
if( !isset($session->uniqueID) || !isset($session->visitor) ) {
$visitor = new GoogleAnalytics\Visitor();
$session->uniqueID = md5(Zend_Session::getId());
$session->uniqueID = rand(0, 2147483647);
} else {
$visitor = unserialize($session->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