diff --git a/package.json b/package.json index bf6b4fc..9af4a23 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "tunnel": "^0.0.6", "vscode-codicons": "^0.0.17", "vue": "^2.6.11", - "vue-analytics": "^5.22.1", + "vue-gtag": "^5.22.1", "vue-clipboard2": "^0.3.1", "vue-i18n": "^8.22.0", "vue-router": "^3.4.3", diff --git a/src/main.js b/src/main.js index 3903764..73f7e8e 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ import Vue from 'vue'; -import VueAnalytics from 'vue-analytics'; +import VueGtag from 'vue-gtag'; import App from './App.vue'; import router from './router'; import store from './store'; @@ -28,10 +28,13 @@ console.log( 'background:unset;color:unset;' ); -Vue.use(VueAnalytics, { - id: 'UA-180189423-1', - router, -}); +Vue.use( + VueGtag, + { + config: { id: 'G-KMJJCFZDKF' }, + }, + router +); Vue.config.productionTip = false; NProgress.configure({ showSpinner: false, trickleSpeed: 100 }); diff --git a/yarn.lock b/yarn.lock index 058008a..dfd08e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12511,11 +12511,6 @@ vscode-codicons@^0.0.17: resolved "https://registry.yarnpkg.com/vscode-codicons/-/vscode-codicons-0.0.17.tgz#5ab4f2015641adaa1a73136195ba916aebf8764d" integrity sha512-Hzclzhz9ouj5sfjDbXE78fciSGwDrlOMimkRIxFNy0pmHoexzLH1+OKTbrlR+Gz17C9ZCfX7Mlpq21jGsyhgSg== -vue-analytics@^5.22.1: - version "5.22.1" - resolved "https://registry.yarnpkg.com/vue-analytics/-/vue-analytics-5.22.1.tgz#9d6b32da56daee1b9dfb23a267b50349a03f710f" - integrity sha512-HPKQMN7gfcUqS5SxoO0VxqLRRSPkG1H1FqglsHccz6BatBatNtm/Vyy8brApktZxNCfnAkrSVDpxg3/FNDeOgQ== - vue-class-component@^7.1.0: version "7.2.6" resolved "https://registry.yarnpkg.com/vue-class-component/-/vue-class-component-7.2.6.tgz#8471e037b8e4762f5a464686e19e5afc708502e4" @@ -12567,6 +12562,11 @@ vue-eslint-parser@^7.10.0: lodash "^4.17.21" semver "^6.3.0" +vue-gtag@^5.22.1: + version "1.16.1" + resolved "https://registry.yarnpkg.com/vue-gtag/-/vue-gtag-1.16.1.tgz#edb2f20ab4f6c4d4d372dfecf8c1fcc8ab890181" + integrity sha512-5vs0pSGxdqrfXqN1Qwt0ZFXG0iTYjRMu/saddc7QIC5yp+DKgjWQRpGYVa7Pq+KbThxwzzMfo0sGi7ISa6NowA== + vue-hot-reload-api@^2.3.0: version "2.3.4" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"