diff --git a/site/src/site/sphinx/_templates/layout.html b/site/src/site/sphinx/_templates/layout.html index b81eef939..d5bc01ec4 100644 --- a/site/src/site/sphinx/_templates/layout.html +++ b/site/src/site/sphinx/_templates/layout.html @@ -28,7 +28,12 @@ var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + if (window.location.hostname == "arthas.gitee.io") { + hm.src = "https://hm.baidu.com/hm.js?ecc1b0d9aeb73da1671876133211d4d3"; + } else { // https://alibaba.github.io/arthas/ + hm.src = "https://hm.baidu.com/hm.js?d5c5e25b100f0eb51a4c35c8a86ea9b4"; + } + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();