Skip to content

Commit 08f02ae

Browse files
authored
Merge pull request #1 from rustfs/fix-statistics
add google analytics
2 parents d5f4e7f + 1221126 commit 08f02ae

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,43 @@ export default defineAdditionalConfig({
2424
text: 'Edit this page on GitHub'
2525
},
2626

27+
head: [
28+
[
29+
'script',
30+
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-TWW7WMTWL9' }
31+
],
32+
33+
[
34+
'script',
35+
{},
36+
`window.dataLayer = window.dataLayer || [];
37+
function gtag(){dataLayer.push(arguments);}
38+
gtag('js', new Date());
39+
gtag('config', 'G-TWW7WMTWL9');`
40+
],
41+
42+
['script', {}, `
43+
var _hmt = _hmt || [];
44+
(function() {
45+
var hm = document.createElement("script");
46+
hm.src = "https://hm.baidu.com/hm.js?968e7103a8e28fb30f7d69e42b7c82bc";
47+
var s = document.getElementsByTagName("script")[0];
48+
s.parentNode.insertBefore(hm, s);
49+
})();
50+
`]
51+
],
52+
53+
54+
55+
56+
2757
footer: {
2858
message: 'Released under the Apache License 2.0.',
2959
copyright: 'Copyright © 2025 RustFS'
3060
}
3161
}
3262
})
63+
64+
65+
66+

0 commit comments

Comments
 (0)