From 36ba1a84948737b718b186be15d0fb4bc617d0f4 Mon Sep 17 00:00:00 2001 From: Cyrus Goh Date: Sat, 16 Nov 2019 05:04:10 -0800 Subject: [PATCH] docs: add GA for docs.tendermint.com (#4149) --- docs/.vuepress/config.js | 10 +++++++++- docs/package-lock.json | 6 ++++++ docs/package.json | 4 +++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index de922ea48..b667aeab5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -141,5 +141,13 @@ module.exports = { anchor: { permalinkSymbol: "" } - } + }, + plugins: [ + [ + "@vuepress/google-analytics", + { + ga: "UA-51029217-11" + } + ] + ], }; diff --git a/docs/package-lock.json b/docs/package-lock.json index 9fd8d8c6b..82c2a8b5e 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1132,6 +1132,12 @@ "lodash.debounce": "^4.0.8" } }, + "@vuepress/plugin-google-analytics": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.2.0.tgz", + "integrity": "sha512-0zol5D4Efb5GKel7ADO/s65MLtKSLnOEGkeWzuipkWomSQPzP7TJ3+/RcYBnGdyBFHd1BSpTUHGK0b/IGwM3UA==", + "dev": true + }, "@vuepress/plugin-last-updated": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.2.0.tgz", diff --git a/docs/package.json b/docs/package.json index 4e34b969c..d787b1cb8 100644 --- a/docs/package.json +++ b/docs/package.json @@ -6,7 +6,9 @@ "dependencies": { "vuepress-theme-cosmos": "^1.0.54" }, - "devDependencies": {}, + "devDependencies": { + "@vuepress/plugin-google-analytics": "^1.2.0" + }, "scripts": { "preserve": "./pre.sh", "serve": "trap 'exit 0' SIGINT; vuepress dev",