Skip to content

Commit 4cef738

Browse files
authored
Merge pull request #3197 from IntersectMBO/chore/change-default-site-id-to-be-preview
chore: change default matomo analytics siteId assigning logic
2 parents 4a90557 + d24160e commit 4cef738

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

govtool/frontend/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
var isPreview = window.location.hostname == "preview.gov.tools";
2727
var isPreprod = window.location.hostname == "pre-prod.gov.tools";
2828

29-
var siteId = "1";
30-
if (isPreview) {
29+
var siteId;
30+
if (isMainnet) {
31+
siteId = "1";
32+
} else if (isPreview) {
3133
siteId = "2";
3234
} else if (isPreprod) {
3335
siteId = "4";
@@ -38,7 +40,7 @@
3840
_paq.push(["trackPageView"]);
3941
_paq.push(["enableLinkTracking"]);
4042
(function () {
41-
if (!isPreview && !isMainnet) {
43+
if (!siteId) {
4244
return;
4345
}
4446

0 commit comments

Comments
 (0)