diff --git a/.vscode/settings.json b/.vscode/settings.json index 7c2feb7..a102526 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "editor.formatOnSave": false + "editor.formatOnSave": false, + "vue-i18n-ally.localesPaths": "locales", + "i18n-ally.localesPaths": "locales" } diff --git a/app.html b/app.html index a641336..3427d3e 100644 --- a/app.html +++ b/app.html @@ -2,25 +2,6 @@
{{ HEAD }} - - - - {{ APP }} diff --git a/nuxt.config.js b/nuxt.config.js index 4271694..f08a356 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -15,10 +15,10 @@ export default { { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: pkg.description }, { hid: 'keywords', name: 'keywords', content: 'css, html, php, server, resources, design, gems, nuxt, javascript, tutorials, development, software'}, - + { name: 'robots', content: 'index, follow' }, - { name: 'distribution', content: 'global'}, - + { name: 'distribution', content: 'global'}, + { name:'theme-color', content: '#ffffff' }, { name: 'msapplication-TileColor', content: '#da532c' }, { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }, @@ -62,6 +62,10 @@ export default { plugins: [ '~/plugins/i18n.js', + { + src: '~/plugins/vue-matomo.js', + ssr: false, + }, ], /* ** Nuxt.js modules diff --git a/package-lock.json b/package-lock.json index e52815a..b9b11d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "webgems", + "name": "webgems.io", "version": "1.0.0", "lockfileVersion": 1, "requires": true, @@ -11126,6 +11126,11 @@ "vue-style-loader": "^4.1.0" } }, + "vue-matomo": { + "version": "3.12.0-5", + "resolved": "https://registry.npmjs.org/vue-matomo/-/vue-matomo-3.12.0-5.tgz", + "integrity": "sha512-n69Nmry7Eg0vooGlEMViaAbjsMGM5Hfno0G9C0o8q5aNIShzez5h2JCLRdHktC1ZdI7p4Wtg0csm++zIO+tWCQ==" + }, "vue-meta": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/vue-meta/-/vue-meta-1.6.0.tgz", diff --git a/package.json b/package.json index e498647..3409945 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "cross-env": "^5.2.0", "nuxt": "^2.4.0", "nuxt-clipboard2": "^0.2.1", - "vue-i18n": "^8.11.2" + "vue-i18n": "^8.11.2", + "vue-matomo": "^3.12.0-5" }, "devDependencies": { "autoprefixer": "^8.6.4", diff --git a/plugins/vue-matomo.js b/plugins/vue-matomo.js new file mode 100644 index 0000000..4700e45 --- /dev/null +++ b/plugins/vue-matomo.js @@ -0,0 +1,34 @@ +import Vue from 'vue' +import VueMatomo from 'vue-matomo' + +export default ({ + app, +}) => { + Vue.use(VueMatomo, { + router: app.router, + // Configure your matomo server and site by providing + host: 'https://stats.lost.services', + siteId: 1, + + // Changes the default .js and .php endpoint's filename + // Default: 'piwik' + trackerFileName: 'matomo', + + // Enables link tracking on regular links. Note that this won't + // work for routing links (ie. internal Vue router links) + // Default: true + enableLinkTracking: true, + + // Require consent before sending tracking information to matomo + // Default: false + requireConsent: false, + + // Whether to track the initial page view + // Default: true + trackInitialView: true, + + // Whether or not to log debug information + // Default: false + debug: false, + }) +} \ No newline at end of file