feat: add google analytics

This commit is contained in:
reco_luan 2019-10-09 19:14:28 +08:00
parent 96faec2b20
commit 254d4882cf
4 changed files with 8 additions and 3 deletions

View File

@ -34,6 +34,7 @@
</div>
</div>
</transition>
<GA></GA>
</div>
</template>

View File

@ -65,6 +65,8 @@
</p>
</div>
<GA></GA>
<slot name="bottom"/>
</main>
</template>

View File

@ -22,6 +22,7 @@ module.exports = (options, ctx) => ({
'@vuepress-reco/loading-page',
'@vuepress-reco/pagation',
'@vuepress-reco/screenfull',
'@vuepress-reco/ga',
'@vuepress/active-header-links',
['@vuepress/plugin-blog', {
permalink: '/:regular',
@ -39,8 +40,8 @@ module.exports = (options, ctx) => ({
path: '/categories/',
layout: 'Categories',
scopeLayout: 'Category'
},
],
}
]
}],
'@vuepress/search',
'@vuepress/plugin-nprogress',

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-reco",
"version": "1.0.9-alpha.8",
"version": "1.0.9-alpha.11",
"description": "this is a vuepress theme",
"main": "index.js",
"scripts": {
@ -30,6 +30,7 @@
"@vuepress-reco/vuepress-plugin-loading-page": "^1.0.0",
"@vuepress-reco/vuepress-plugin-pagation": "^1.0.3",
"@vuepress-reco/vuepress-plugin-screenfull": "^1.0.0",
"@vuepress-reco/vuepress-plugin-ga": "^1.0.2",
"@vuepress/plugin-blog": "1.3.0",
"leancloud-storage": "3.13.2",
"valine": "1.3.6",