Skip to content

Commit

Permalink
Подключена Google Аналитика
Browse files Browse the repository at this point in the history
  • Loading branch information
sfaqer committed Oct 31, 2024
1 parent b2fd248 commit 51e0961
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ const bslLanguage = JSON.parse(fs.readFileSync('docs/bsl.json', 'utf8'))
// https://vitepress.dev/reference/site-config
export default defineConfig({

head: [
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-ZHG1MYKGV9' }
],
[
'script',
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-ZHG1MYKGV9');"
]
],

appearance: 'dark',
markdown: {
languages: [bslLanguage],
Expand Down Expand Up @@ -122,7 +134,7 @@ export default defineConfig({
returnToTopLabel: 'Вернуться к началу',
langMenuLabel: 'Изменить язык'

},
}

})

Expand Down

0 comments on commit 51e0961

Please sign in to comment.