change google trace code

This commit is contained in:
liangping 2021-10-15 18:52:30 +08:00
parent 9f44ccfbf0
commit 87ab3d9815
4 changed files with 10 additions and 8 deletions

View File

@ -61,7 +61,6 @@
"vue-flatpickr-component": "8.1.6",
"vue-flex-waterfall": "^1.0.7",
"vue-form-wizard": "0.8.4",
"vue-gtag": "^1.16.1",
"vue-i18n": "8.22.2",
"vue-loader": "^15.9.6",
"vue-perfect-scrollbar": "0.2.1",

View File

@ -34,5 +34,14 @@
</div>
<div id="app"></div>
<!-- built files will be auto injected -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-238887-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-238887-1');
</script>
</body>
</html>

View File

@ -7,7 +7,6 @@ import VueI18n from 'vue-i18n'
import ChainAPI from '@/libs/fetch'
import VueGtag from 'vue-gtag'
import router from './router'
import store from './store'
import App from './App.vue'
@ -20,7 +19,7 @@ import '@/libs/portal-vue'
import '@/libs/toastification'
import '@/libs/clipboard'
Vue.use(VueGtag, { config: { id: 'UA-238887-1' } }, router)
// Vue.use(VueGtag, { config: { id: 'UA-238887-1' } }, router)
Vue.use(VueI18n)

View File

@ -11575,11 +11575,6 @@ vue-functional-data-merge@^3.1.0:
resolved "https://registry.npmjs.org/vue-functional-data-merge/-/vue-functional-data-merge-3.1.0.tgz"
integrity sha512-leT4kdJVQyeZNY1kmnS1xiUlQ9z1B/kdBFCILIjYYQDqZgLqCLa0UhjSSeRX6c3mUe6U5qYeM8LrEqkHJ1B4LA==
vue-gtag@^1.16.1:
version "1.16.1"
resolved "https://registry.npmjs.org/vue-gtag/-/vue-gtag-1.16.1.tgz"
integrity sha512-5vs0pSGxdqrfXqN1Qwt0ZFXG0iTYjRMu/saddc7QIC5yp+DKgjWQRpGYVa7Pq+KbThxwzzMfo0sGi7ISa6NowA==
vue-hot-reload-api@^2.3.0:
version "2.3.4"
resolved "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz"