diff --git a/docs/landing/feedback.html b/docs/landing/feedback.html
index 80998c8..352a4f2 100644
--- a/docs/landing/feedback.html
+++ b/docs/landing/feedback.html
@@ -17,11 +17,13 @@
document.addEventListener("DOMContentLoaded", () => {
const statsURL = "https://sigrid-says.com/usage/matomo.php";
const params = new URLSearchParams(window.location.search);
- const feature = params.get("feature");
- const feedback = params.get("feedback");
- const system = params.get("system");
+
- if (feature && feedback && system) {
+ if (params.has("feature") && params.has("feedback") && params.has("system")) {
+ const feature = encodeURIComponent(params.get("feature"));
+ const feedback = encodeURIComponent(params.get("feedback"));
+ const system = encodeURIComponent(params.get("system"));
+
const statsElement = document.createElement("img");
statsElement.src = `${statsURL}?idsite=6&rec=1&ca=1&e_c=${feature}&e_a=${feedback}&e_n=${system}`;
document.body.appendChild(statsElement);