Skip to content

Commit

Permalink
add ga4
Browse files Browse the repository at this point in the history
  • Loading branch information
llwslc committed Jul 20, 2024
1 parent e5bde4e commit 7d3ac22
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 32 deletions.
24 changes: 12 additions & 12 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
plugins: [
[
'@vuepress/google-analytics',
'google-analytics-4',
{
ga: 'G-423T4HSGBR',
},
],
gtag: 'G-423T4HSGBR'
}
]
],
base: process.env.GITHUB == 'github' ? '/grammar-club/' : '/',
dest: process.env.GITHUB == 'github' ? 'docs/.vuepress/github' : 'docs/.vuepress/dist',
Expand Down Expand Up @@ -33,21 +33,21 @@ module.exports = {
'Chapter08',
'Chapter09',
'Chapter10',
'Chapter11',
],
'Chapter11'
]
},
{
title: '第二篇 中级句型--复句',
collapsable: false,
children: ['Chapter12', 'Chapter13', 'Chapter14', 'Chapter15'],
children: ['Chapter12', 'Chapter13', 'Chapter14', 'Chapter15']
},
{
title: '第三篇 高级句型--简化从句',
collapsable: false,
children: ['Chapter16', 'Chapter17', 'Chapter18', 'Chapter19', 'Chapter20', 'Chapter21', 'Chapter22'],
},
],
children: ['Chapter16', 'Chapter17', 'Chapter18', 'Chapter19', 'Chapter20', 'Chapter21', 'Chapter22']
}
]
},
nav: [{ text: '目录', link: '/content/Preface' }],
},
nav: [{ text: '目录', link: '/content/Preface' }]
}
};
58 changes: 40 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"homepage": "https://github.com/llwslc/grammar-club#readme",
"dependencies": {
"@vuepress/plugin-google-analytics": "^1.9.10",
"cross-env": "^7.0.2",
"vuepress": "^1.4.1"
"vuepress": "^1.4.1",
"vuepress-plugin-google-analytics-4": "^0.1.1"
}
}

0 comments on commit 7d3ac22

Please sign in to comment.