Skip to content

Commit 254d488

Browse files
author
reco_luan
committed
feat: add google analytics
1 parent 96faec2 commit 254d488

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

components/Common.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
</div>
3535
</div>
3636
</transition>
37+
<GA></GA>
3738
</div>
3839
</template>
3940

components/Page.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
</p>
6666
</div>
6767

68+
<GA></GA>
69+
6870
<slot name="bottom"/>
6971
</main>
7072
</template>

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = (options, ctx) => ({
2222
'@vuepress-reco/loading-page',
2323
'@vuepress-reco/pagation',
2424
'@vuepress-reco/screenfull',
25+
'@vuepress-reco/ga',
2526
'@vuepress/active-header-links',
2627
['@vuepress/plugin-blog', {
2728
permalink: '/:regular',
@@ -39,8 +40,8 @@ module.exports = (options, ctx) => ({
3940
path: '/categories/',
4041
layout: 'Categories',
4142
scopeLayout: 'Category'
42-
},
43-
],
43+
}
44+
]
4445
}],
4546
'@vuepress/search',
4647
'@vuepress/plugin-nprogress',

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-reco",
3-
"version": "1.0.9-alpha.8",
3+
"version": "1.0.9-alpha.11",
44
"description": "this is a vuepress theme",
55
"main": "index.js",
66
"scripts": {
@@ -30,6 +30,7 @@
3030
"@vuepress-reco/vuepress-plugin-loading-page": "^1.0.0",
3131
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.3",
3232
"@vuepress-reco/vuepress-plugin-screenfull": "^1.0.0",
33+
"@vuepress-reco/vuepress-plugin-ga": "^1.0.2",
3334
"@vuepress/plugin-blog": "1.3.0",
3435
"leancloud-storage": "3.13.2",
3536
"valine": "1.3.6",

0 commit comments

Comments
 (0)