update analytics to treat unknown device type as desktop

pull/3/head
TZGyn 2 years ago
parent 27b5328c5b
commit 3ed4475de4
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -42,7 +42,7 @@ app.get(
country_code: geolocation.data.location.country country_code: geolocation.data.location.country
.alpha2 as string, .alpha2 as string,
city: geolocation.data.location.city.name as string, city: geolocation.data.location.city.name as string,
device_type: ua_parser.getDevice().type, device_type: ua_parser.getDevice().type || 'desktop',
device_vendor: ua_parser.getDevice().vendor, device_vendor: ua_parser.getDevice().vendor,
browser: ua_parser.getBrowser().name, browser: ua_parser.getBrowser().name,
os: ua_parser.getOS().name, os: ua_parser.getOS().name,

Loading…
Cancel
Save