Skip to content

Commit

Permalink
docs: Add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Oct 7, 2022
1 parent 3720784 commit 21285f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ export default defineConfig({
// Twitter
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:site', content: '@odroeinc' }],

// Google Analytics
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-TLJ4LJL8HY' }],
[
'script',
{},
'window.dataLayer = window.dataLayer || [];' +
'function gtag(){dataLayer.push(arguments);}' +
'gtag("js", new Date());' +
'gtag("config", "G-TLJ4LJL8HY");'
],
],

themeConfig: {
Expand Down

1 comment on commit 21285f8

@vercel
Copy link

@vercel vercel bot commented on 21285f8 Oct 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.