docs: add google analytics

This commit is contained in:
Relakkes 2024-09-20 19:18:48 +08:00
parent 52fe281f2f
commit 0fac56ce50
1 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,20 @@ export default defineConfig({
description: "小红书爬虫,抖音爬虫, 快手爬虫, B站爬虫 微博爬虫,百度贴吧爬虫,知乎爬虫...。 ",
lastUpdated: true,
base: '/MediaCrawler/',
head: [
[
'script',
{async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-5TK7GF3KK1'}
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5TK7GF3KK1');`
]
],
themeConfig: {
editLink: {
pattern: 'https://github.com/NanmiCoder/MediaCrawler/tree/main/docs/:path'