File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2424 < script >
2525 var isMainnet = window . location . hostname == "gov.tools" ;
2626 var isPreview = window . location . hostname == "preview.gov.tools" ;
27+ var isPreprod = window . location . hostname == "pre-prod.gov.tools" ;
28+
29+ var siteId = "1" ;
30+ if ( isPreview ) {
31+ siteId = "2" ;
32+ } else if ( isPreprod ) {
33+ siteId = "4" ;
34+ }
2735
2836 var _paq = ( window . _paq = window . _paq || [ ] ) ;
2937 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
3644
3745 var u = "//analytics.gov.tools/" ;
3846 _paq . push ( [ "setTrackerUrl" , u + "matomo.php" ] ) ;
39- _paq . push ( [ "setSiteId" , isMainnet ? "1" : "2" ] ) ;
47+ _paq . push ( [ "setSiteId" , siteId ] ) ;
4048 var d = document ,
4149 g = d . createElement ( "script" ) ,
4250 s = d . getElementsByTagName ( "script" ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments