This commit is contained in:
Nisarg Patel 2021-11-09 01:39:30 +00:00
parent 8d4d8bc30a
commit ef85d16497
5 changed files with 37476 additions and 6225 deletions

View file

@ -39,7 +39,7 @@ import { removeTrailingSlash } from '../lib/url';
const screen = `${width}x${height}`;
const listeners = [];
let currentUrl = `${pathname}${search}`;
let currentRef = document.referrer || new URLSearchParams(window.location.search).get('r');
let currentRef = document.referrer + (new URLSearchParams(window.location.search).get('r') || '');
/* Collect metrics */