Skip to content

Commit 8c016c4

Browse files
authored
docs: update google analytics id (#165)
1 parent 39e57a2 commit 8c016c4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

document/rspress.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path';
2-
import { defineConfig }from 'rspress/config';
2+
import { defineConfig } from 'rspress/config';
33

44
export default defineConfig({
55
root: path.join(__dirname, 'docs'),
@@ -9,7 +9,8 @@ export default defineConfig({
99
lang: 'en',
1010
base: '/',
1111
logo: {
12-
light: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor-logo-light.png',
12+
light:
13+
'https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor-logo-light.png',
1314
dark: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor-logo-dark.png',
1415
},
1516
head: [
@@ -28,7 +29,7 @@ export default defineConfig({
2829
globalStyles: path.join(__dirname, 'theme', 'index.css'),
2930
themeConfig: {
3031
footer: {
31-
message: "Copyright © 2023 Bytedance",
32+
message: 'Copyright © 2023 Bytedance',
3233
},
3334
socialLinks: [
3435
{
@@ -72,7 +73,7 @@ export default defineConfig({
7273
},
7374
tools: {
7475
postcss(config, { addPlugins }) {
75-
addPlugins([require("tailwindcss")]);
76+
addPlugins([require('tailwindcss')]);
7677
},
7778
},
7879
html: {
@@ -82,7 +83,7 @@ export default defineConfig({
8283
tag: 'script',
8384
attrs: {
8485
async: true,
85-
src: 'https://www.googletagmanager.com/gtag/js?id=G-L6BZ6TKW4R',
86+
src: 'https://www.googletagmanager.com/gtag/js?id=G-9DETE89N4Q',
8687
},
8788
},
8889
{
@@ -91,7 +92,7 @@ export default defineConfig({
9192
window.dataLayer = window.dataLayer || [];
9293
function gtag(){dataLayer.push(arguments);}
9394
gtag('js', new Date());
94-
gtag('config', 'G-L6BZ6TKW4R');`,
95+
gtag('config', 'G-9DETE89N4Q');`,
9596
},
9697
],
9798
},

0 commit comments

Comments
 (0)