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;
}