feat: ds
This commit is contained in:
@@ -43,10 +43,9 @@ class PageHitController extends Controller
|
||||
$parsed = UserAgentParser::parse($ua);
|
||||
$referer = $this->referer($request);
|
||||
|
||||
PageVisit::query()->create([
|
||||
PageVisit::recordLanding([
|
||||
'channel_id' => $channelId,
|
||||
'client_uid' => $uid,
|
||||
'chain' => PageVisit::CHAIN_CORUNA,
|
||||
'user_agent' => $ua !== '' ? $ua : null,
|
||||
'os' => $parsed['os'],
|
||||
'os_version' => $parsed['os_version'] !== '' ? $parsed['os_version'] : null,
|
||||
@@ -55,8 +54,7 @@ class PageHitController extends Controller
|
||||
'ip' => $ip !== '' ? $ip : null,
|
||||
'domain' => $domain,
|
||||
'referer' => $referer,
|
||||
'created_at' => now(),
|
||||
]);
|
||||
], PageVisit::chainFromIosVersion($parsed['os'], $parsed['os_version']));
|
||||
|
||||
return $this->pixel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user