Add GA in the docs

This commit is contained in:
Jim LAURIE 2019-11-28 11:45:45 +01:00
parent 24fde718db
commit 2e6d0c7f41
3 changed files with 16 additions and 2 deletions

View File

@ -2,8 +2,16 @@ module.exports = {
title: 'Strapi Documentation',
description: 'The headless CMS developers love.',
base: '/documentation/',
ga: 'UA-54313258-1',
plugins: ['@vuepress/medium-zoom', 'vuepress-plugin-element-tabs'],
plugins: [
'@vuepress/medium-zoom',
'vuepress-plugin-element-tabs',
[
'@vuepress/google-analytics',
{
ga: 'UA-54313258-1',
},
],
],
head: [
[
'link',

View File

@ -9,6 +9,7 @@
"license": "MIT",
"dependencies": {
"@vuepress/plugin-medium-zoom": "^1.2.0",
"@vuepress/plugin-google-analytics": "^1.2.0",
"vuepress": "^1.2.0",
"vuepress-plugin-element-tabs": "^0.1.8"
}

View File

@ -886,6 +886,11 @@
dependencies:
lodash.debounce "^4.0.8"
"@vuepress/plugin-google-analytics@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.2.0.tgz#54555fd14f01a032c5acff04ecbbe0911577d7d0"
integrity sha512-0zol5D4Efb5GKel7ADO/s65MLtKSLnOEGkeWzuipkWomSQPzP7TJ3+/RcYBnGdyBFHd1BSpTUHGK0b/IGwM3UA==
"@vuepress/plugin-last-updated@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@vuepress/plugin-last-updated/-/plugin-last-updated-1.2.0.tgz#7b34065b793848b0482a222b7a6f1b7df3668cdc"