Browse Source

Add google analytics plugin to vuepress

pull/2732/head
Artur Arseniev 6 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',
description: 'GrapesJS documentation',
base: '/docs/',
ga: 'UA-74284223-1',
serviceWorker: false, // Enable Service Worker for offline usage
head: [
['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"
}
},
"@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": {
"version": "1.4.1",
"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/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@vuepress/plugin-google-analytics": "^1.4.1",
"babel-loader": "^8.1.0",
"documentation": "^8.1.2",
"eslint": "^6.6.0",

Loading…
Cancel
Save