Skip to content

Commit

Permalink
docs: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
malkiii committed Jan 5, 2024
1 parent f2558cb commit 05b354f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ export default defineConfig({
base: site.url.pathname,
head: [
['link', { rel: 'icon', href: site.url.pathname + site.logo, type: 'image/svg+xml' }],
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-G7X3ML41SG' }],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-G7X3ML41SG');`
],
['meta', { name: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: site.title }],
['meta', { property: 'og:description', content: site.description }],
Expand Down

0 comments on commit 05b354f

Please sign in to comment.