mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
try to remove undefined
This commit is contained in:
parent
ecdbbb414d
commit
484d5ee4b8
1 changed files with 8 additions and 8 deletions
|
@ -74,17 +74,17 @@ const updateSession = async (
|
|||
const inserts = {
|
||||
session_id: pageview.sessionId,
|
||||
user_id: pageview.userId,
|
||||
hostname: pageview.hostname,
|
||||
start_time: pageview.timestamp,
|
||||
last_activity: pageview.timestamp,
|
||||
hostname: pageview.hostname || "",
|
||||
start_time: pageview.timestamp || "",
|
||||
last_activity: pageview.timestamp || "",
|
||||
pageviews: 1,
|
||||
entry_page: pageview.pathname,
|
||||
entry_page: pageview.pathname || "",
|
||||
// exit_page: pageview.pathname,
|
||||
device_type: getDeviceType(pageview.screenWidth, pageview.screenHeight),
|
||||
screen_width: pageview.screenWidth,
|
||||
screen_height: pageview.screenHeight,
|
||||
browser: pageview.ua.browser.name,
|
||||
operating_system: pageview.ua.os.name,
|
||||
screen_width: pageview.screenWidth || 0,
|
||||
screen_height: pageview.screenHeight || 0,
|
||||
browser: pageview.ua.browser.name || "",
|
||||
operating_system: pageview.ua.os.name || "",
|
||||
language: pageview.language || "",
|
||||
referrer: pageview.referrer || "",
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue