From dcb78a4e0bba9bf5084f69a470603422733b151d Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Tue, 20 Aug 2019 11:13:10 -0400 Subject: [PATCH] docs: Add a GA tag --- docs/.vuepress/config.js | 10 +++++++++- docs/package-lock.json | 6 ++++++ docs/package.json | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index c06583f3..8d299542 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -25,5 +25,13 @@ module.exports = { editLinks: true, // custom text for edit link. Defaults to "Edit this page" editLinkText: 'Edit this page on GitHub' - } + }, + plugins: [ + [ + '@vuepress/google-analytics', + { + 'ga': 'UA-71160903-4' + } + ] + ] } diff --git a/docs/package-lock.json b/docs/package-lock.json index 6971bfd2..a1b6c1cd 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1060,6 +1060,12 @@ "lodash.throttle": "^4.1.1" } }, + "@vuepress/plugin-google-analytics": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.0.3.tgz", + "integrity": "sha512-mqFFQSJjQp5zscZJ0Ik+YDLV7sZSAO8w13CG8c5WsUCjy+0oWhqAw/NjpVrEK8Y/PdYPe4l/OE5jMUU5AqRRjg==", + "dev": true + }, "@vuepress/plugin-last-updated": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.0.2.tgz", diff --git a/docs/package.json b/docs/package.json index fc0df163..72edb136 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,6 +4,7 @@ "build": "vuepress build" }, "devDependencies": { + "@vuepress/plugin-google-analytics": "^1.0.3", "vuepress": "^1.0.2" } }