mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
always prefer the google analytics client id.
This commit is contained in:
parent
3dd1922e8d
commit
c644f4c50e
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class Session
|
|||
Response::addPostRenderCallback(function () {
|
||||
$ga_cid = filter_input(INPUT_COOKIE, 'ga_cid');
|
||||
$site_visitor_id = key_exists(static::USER_ID, $_SESSION) ? $_SESSION[static::USER_ID] : $ga_cid;
|
||||
$site_visitor_id = isset($ga_cid) ? $ga_cid : $site_visitor_id;
|
||||
$response = LBRY::logWebVisitor(static::SITE_ID, $site_visitor_id, static::getClientIP());
|
||||
if (!is_null($response)
|
||||
&& key_exists('data', $response)
|
||||
|
|
Loading…
Add table
Reference in a new issue