From 6500b97f8b3dcd453e138bbfc9ba4dd8bf7b2215 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sun, 29 Mar 2020 19:14:59 +0530 Subject: [PATCH] update canonical url, add GA to docs --- docs/.vuepress/config.js | 8 ++++++++ package-lock.json | 6 ++++++ package.json | 3 ++- public/index.html | 3 ++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 4c3a1122..8b89301e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -21,4 +21,12 @@ module.exports = { ], smoothScroll: true, }, + plugins: [ + [ + '@vuepress/google-analytics', + { + ga: 'UA-161860275-1', + }, + ], + ], }; diff --git a/package-lock.json b/package-lock.json index 3fde237f..b4affcf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3272,6 +3272,12 @@ "lodash.debounce": "^4.0.8" } }, + "@vuepress/plugin-google-analytics": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.4.0.tgz", + "integrity": "sha512-Q3jTyNovy81vlqfCQ5MewYU2K/brn0DfhAlJJnelXdbYH7XRe1IA3hZCcQQO73rzIMA/HxIsMBWevs8jTQF3QA==", + "dev": true + }, "@vuepress/plugin-last-updated": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.4.0.tgz", diff --git a/package.json b/package.json index f5faefd7..9a51bdb6 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ }, "devDependencies": { "@fullhuman/postcss-purgecss": "^2.1.0", + "@vuepress/plugin-google-analytics": "^1.4.0", "autoprefixer": "^9.7.5", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.1.0", @@ -64,4 +65,4 @@ "tailwindcss": "^1.2.0", "vuepress": "^1.4.0" } -} \ No newline at end of file +} diff --git a/public/index.html b/public/index.html index f791a688..ab979153 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ + - +