Skip to content

Commit

Permalink
Test feedback page.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-sig committed Apr 15, 2024
1 parent 944a129 commit 2d54240
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/landing/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d54240

Please sign in to comment.