URI encode title, url and referrer in tracker.

This commit is contained in:
Mike Cao committed 2024-01-19 15:06:41 -08:00
1 parent 288836d4a5
commit 0d442b751d
1 file changed
+3 -3
+3 -3
View File
@@ -44,9 +44,9 @@
hostname,
screen,
language,
title,
url: currentUrl,
referrer: currentRef,
title: encodeURIComponent(title),
url: encodeURI(currentUrl),
referrer: encodeURI(currentRef),
});
/* Event handlers */