Skip to content

Commit d532a25

Browse files
committed
feat: add google manager tag
1 parent 7b8744f commit d532a25

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.vitepress/config.mts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,23 @@ export default defineConfig({
55
base: '/stochastix-docs/',
66
title: "Stochastix",
77
description: "High-Performance Quantitative Backtesting Engine",
8-
head: [['link', { rel: 'icon', href: '/stochastix-docs/favicon.ico' }]],
8+
head: [
9+
['link', { rel: 'icon', href: '/stochastix-docs/favicon.ico' }],
10+
[
11+
'script',
12+
{},
13+
`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
14+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
15+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
16+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
17+
})(window,document,'script','dataLayer','GTM-MR9GH7X4');`
18+
],
19+
[
20+
'noscript', {}, `
21+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MR9GH7X4"
22+
height="0" width="0" style="display:none;visibility:hidden"></iframe>`
23+
],
24+
],
925
lastUpdated: true,
1026
themeConfig: {
1127
logo: '/logo.svg',

0 commit comments

Comments
 (0)