Adds 'Direct / None' referrer when no referrer is present

pull/1279/head
rohandebsarkar 2022-07-08 18:00:43 +05:30
parent 846afad0a4
commit dc7931a061
No known key found for this signature in database
GPG Key ID: 3DA3229799D1A181
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ export async function savePageView(website_id, session_id, url, referrer) {
website_id,
session_id,
url: url?.substr(0, URL_LENGTH),
referrer: referrer?.substr(0, URL_LENGTH),
referrer: referrer ? referrer.substr(0, URL_LENGTH) : 'Direct / None',
},
}),
);