Skip to content

Commit

Permalink
docs: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
NanmiCoder committed Sep 20, 2024
1 parent 95de65e commit 01ec690
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,24 @@ export default defineConfig({
title: "程序员阿江-Relakkes的爬虫教程",
description: "程序员阿江-Relakkes的爬虫教程",
lastUpdated: true,
head: [
[
'script',
{async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-B5H6D2HDGK'}
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-B5H6D2HDGK');`
]
],
themeConfig: {
editLink: {
pattern: 'https://github.com/NanmiCoder/CrawlerTutorial/tree/main/docs/:path'
},
editLink: {
pattern: 'https://github.com/NanmiCoder/CrawlerTutorial/tree/main/docs/:path'
},
search: {
provider: 'local'
},
Expand Down

0 comments on commit 01ec690

Please sign in to comment.