ソースを参照

修正ARMS采样率

Michael Wang 6 年 前
コミット
f5b1a0c0ef
1 ファイル変更1 行追加1 行削除
  1. 1 1
      public/index.html

+ 1 - 1
public/index.html

@@ -26,7 +26,7 @@
     function startAliArms(sampleRate) {
       console.log('ARMS sample: ' + sampleRate);
       !(function (c, b, d, a) {
-        c[a] || (c[a] = {}); c[a].config = { pid: "hworw@48e147d26fd751a", enableSPA: true, sample: 10, sendResource: true, imgUrl: "https://arms-retcode.aliyuncs.com/r.png?" };
+        c[a] || (c[a] = {}); c[a].config = { pid: "hworw@48e147d26fd751a", enableSPA: true, sample: sampleRate, sendResource: true, imgUrl: "https://arms-retcode.aliyuncs.com/r.png?" };
         with (b) with (body) with (insertBefore(createElement("script"), firstChild)) setAttribute("crossorigin", "", src = d)
       })(window, document, "https://retcode.alicdn.com/retcode/bl.js", "__bl");
     }