VuePress で Google Anayltics と Search Console を設定する

Google Anayltics

docs/.vuepress/config.js


 


module.exports = {
  ga: 'UA-xxx'
}
1
2
3

Search Console

html の meta タグで設定する場合。

docs/.vuepress/config.js


 


module.exports = {
  head: [['meta', { name: 'google-site-verification', content: 'xxx' }]]
}
1
2
3
Last Updated: 2018/6/26 21:52:27