From d24160e27e17ce56a7e52725934cd7c6efc5c9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Fri, 14 Mar 2025 12:55:03 +0100 Subject: [PATCH] chore: change default matomo analytics siteId assigning logic --- govtool/frontend/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/govtool/frontend/index.html b/govtool/frontend/index.html index c97a2ed91..9294c61a0 100644 --- a/govtool/frontend/index.html +++ b/govtool/frontend/index.html @@ -26,8 +26,10 @@ var isPreview = window.location.hostname == "preview.gov.tools"; var isPreprod = window.location.hostname == "pre-prod.gov.tools"; - var siteId = "1"; - if (isPreview) { + var siteId; + if (isMainnet) { + siteId = "1"; + } else if (isPreview) { siteId = "2"; } else if (isPreprod) { siteId = "4"; @@ -38,7 +40,7 @@ _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function () { - if (!isPreview && !isMainnet) { + if (!siteId) { return; }