From 2e6d0c7f414cc8f4e7086367f85eccec1d0e46a7 Mon Sep 17 00:00:00 2001 From: Jim LAURIE Date: Thu, 28 Nov 2019 11:45:45 +0100 Subject: [PATCH] Add GA in the docs --- docs/.vuepress/config.js | 12 ++++++++++-- docs/package.json | 1 + docs/yarn.lock | 5 +++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index beed27f202..bf94fa8d9a 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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', diff --git a/docs/package.json b/docs/package.json index 6f10c49759..f3aacd8b54 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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" } diff --git a/docs/yarn.lock b/docs/yarn.lock index 33fe0b27f2..8c8223b1b5 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -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"