diff --git a/package.json b/package.json index a9ae14b..efe7ea3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "core-js": "^3.3.2", "vue": "^2.6.10", "vue-gettext": "^2.1.5", - "vue-matomo": "^3.9.1-2", "vue-router": "^3.1.3" }, "devDependencies": { diff --git a/src/main.js b/src/main.js index 2974d41..1dfb83f 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,4 @@ import Vue from 'vue' -import VueMatomo from 'vue-matomo' import VueRouter from 'vue-router' import GetTextPlugin from 'vue-gettext' import VueMeta from 'vue-meta' @@ -116,54 +115,6 @@ p.catch(err => { } }) - // Stats Matomo - if (!(navigator.doNotTrack === 'yes' || - navigator.doNotTrack === '1' || - navigator.msDoNotTrack === '1' || - window.doNotTrack === '1') - ) { - Vue.use(VueMatomo, { - // Configure your matomo server and site - host: 'https://stats.framasoft.org/', - siteId: 68, - - // Enables automatically registering pageviews on the router - router, - - // Require consent before sending tracking information to matomo - // Default: false - requireConsent: false, - - // Whether to track the initial page view - // Default: true - trackInitialView: true, - - // Changes the default .js and .php endpoint's filename - // Default: 'piwik' - trackerFileName: 'p', - - enableLinkTracking: true - }) - - const _paq = _paq || [] // eslint-disable-line - - // CNIL conformity - _paq.push([function piwikCNIL () { - const self = this - - function getOriginalVisitorCookieTimeout () { - const now = new Date() - const nowTs = Math.round(now.getTime() / 1000) - const visitorInfo = self.getVisitorInfo() - const createTs = parseInt(visitorInfo[2], 10) - const cookieTimeout = 33696000 // 13 months in seconds - return (createTs + cookieTimeout) - nowTs - } - - this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout()) - }]) - } - new Vue({ // eslint-disable-line no-new el: '#app', router, diff --git a/yarn.lock b/yarn.lock index 39fac66..8eb1225 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8609,11 +8609,6 @@ vue-loader@^15.7.0: vue-hot-reload-api "^2.3.0" vue-style-loader "^4.1.0" -vue-matomo@^3.9.1-2: - version "3.9.1-2" - resolved "https://registry.yarnpkg.com/vue-matomo/-/vue-matomo-3.9.1-2.tgz#c409fac632c3eb3a3d2d6b88a3cf2edbc166cdb1" - integrity sha512-wq9DtgV6yp86xKw4O0s+3DWcG+wjiCYlHoalzFTTqcRPpkWiZl1esWYsvWkDYxVHXzzfAWjS+4bYK65cvFUBoA== - vue-meta@^2.2.2: version "2.2.2" resolved "https://registry.yarnpkg.com/vue-meta/-/vue-meta-2.2.2.tgz#ec6be76d75b7d6e4abb6d995d92245487081428b"