Skip to content

Commit

Permalink
feat: 添加 Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh40Le1ZOOB committed Jan 17, 2024
1 parent 5e22a60 commit afec5f2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@ import { generateSidebar } from "vitepress-sidebar";
export default defineConfig({
title: "药娘的天空",
description: "《药娘的天空》精修版",
head: [["link", { rel: "icon", href: "/progynova.png" }]],
head: [
["link", { rel: "icon", href: "/progynova.png" }],
[
"script",
{
async: "",
src: "https://www.googletagmanager.com/gtag/js?id=G-5W4FMPMLT3",
},
],
[
"script",
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-5W4FMPMLT3');",
],
],
lang: "zh-CN",
cleanUrls: true,
lastUpdated: true,
Expand Down

0 comments on commit afec5f2

Please sign in to comment.