Skip to content

Commit df24f3d

Browse files
committed
Add GA plugin
1 parent c1f953f commit df24f3d

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"vuepress": "^1.2.0"
1313
},
1414
"devDependencies": {
15+
"@vuepress/plugin-google-analytics": "^1.2.0",
1516
"babel-eslint": "^10.0.3",
1617
"eslint": "^6.5.1",
1718
"eslint-plugin-vue": "^5.2.3",

src/.vuepress/config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
module.exports = {
22
base: "/vue-testing-handbook/",
33
title: "Vue testing handbook",
4-
ga: "UA-122389064-1",
4+
plugins: [
5+
[
6+
'@vuepress/google-analytics',
7+
{
8+
'ga': 'UA-122389064-1'
9+
}
10+
]
11+
],
512
head: [
613
['link', { rel: 'icon', href: 'https://lmiller1990.github.io/vue-testing-handbook/img/favicon.png' }],
714
['meta',{ property:"og:title", content:"Vue testing handbook"}],

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,11 @@
881881
dependencies:
882882
lodash.debounce "^4.0.8"
883883

884+
"@vuepress/plugin-google-analytics@^1.2.0":
885+
version "1.2.0"
886+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.2.0.tgz#54555fd14f01a032c5acff04ecbbe0911577d7d0"
887+
integrity sha512-0zol5D4Efb5GKel7ADO/s65MLtKSLnOEGkeWzuipkWomSQPzP7TJ3+/RcYBnGdyBFHd1BSpTUHGK0b/IGwM3UA==
888+
884889
"@vuepress/plugin-last-updated@^1.2.0":
885890
version "1.2.0"
886891
resolved "https://registry.yarnpkg.com/@vuepress/plugin-last-updated/-/plugin-last-updated-1.2.0.tgz#7b34065b793848b0482a222b7a6f1b7df3668cdc"

0 commit comments

Comments
 (0)