Browse Source

Add google analytics plugin to vuepress

pull/2732/head
Artur Arseniev 7 years ago
parent
commit
80dec9d8ab
  1. 4
      docs/.vuepress/config.js
  2. 6
      package-lock.json
  3. 1
      package.json

4
docs/.vuepress/config.js

@ -6,7 +6,6 @@ module.exports = {
title: 'GrapesJS', title: 'GrapesJS',
description: 'GrapesJS documentation', description: 'GrapesJS documentation',
base: '/docs/', base: '/docs/',
ga: 'UA-74284223-1',
serviceWorker: false, // Enable Service Worker for offline usage serviceWorker: false, // Enable Service Worker for offline usage
head: [ head: [
['link', { rel: 'icon', href: '/logo-icon.png' }], ['link', { rel: 'icon', href: '/logo-icon.png' }],
@ -106,4 +105,7 @@ module.exports = {
], ],
} }
}, },
plugins: [
[ '@vuepress/google-analytics', { ga: 'UA-74284223-1' } ],
],
} }

6
package-lock.json

@ -1740,6 +1740,12 @@
"lodash.debounce": "^4.0.8" "lodash.debounce": "^4.0.8"
} }
}, },
"@vuepress/plugin-google-analytics": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.4.1.tgz",
"integrity": "sha512-s43V5QHdTz0ayfy5vZrfMPpZzJBsj9L79TaxyMux1jOviS7oeWqkvNSblaHwP4Y8BxISehsKte8qsblQEN3zvQ==",
"dev": true
},
"@vuepress/plugin-last-updated": { "@vuepress/plugin-last-updated": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.4.1.tgz", "resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.4.1.tgz",

1
package.json

@ -32,6 +32,7 @@
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.0", "@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5", "@babel/preset-env": "^7.9.5",
"@vuepress/plugin-google-analytics": "^1.4.1",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"documentation": "^8.1.2", "documentation": "^8.1.2",
"eslint": "^6.6.0", "eslint": "^6.6.0",

Loading…
Cancel
Save