From af5d61ac00252034e2f167c41b28a64fb17c4ae6 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 20 Oct 2020 20:57:38 +0300 Subject: [PATCH] replace owa with google analytics --- app/app.html | 22 ++++++++-------------- app/nuxt.config.js | 1 - app/plugins/owa.js | 12 ------------ 3 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 app/plugins/owa.js diff --git a/app/app.html b/app/app.html index a34c85b..1b40019 100644 --- a/app/app.html +++ b/app/app.html @@ -1,23 +1,17 @@ + + + {{ HEAD }} {{ APP }} - diff --git a/app/nuxt.config.js b/app/nuxt.config.js index 8ca7da5..f4eb6e7 100644 --- a/app/nuxt.config.js +++ b/app/nuxt.config.js @@ -69,7 +69,6 @@ module.exports = { */ plugins: [ { src: '~/plugins/Vuelidate' }, - // { src: '~/plugins/owa.js', mode: 'client' } ], /* diff --git a/app/plugins/owa.js b/app/plugins/owa.js deleted file mode 100644 index 6549f40..0000000 --- a/app/plugins/owa.js +++ /dev/null @@ -1,12 +0,0 @@ -/* eslint-disable */ - -export default ({ app }) => { - if (process.env.NODE_ENV !== 'production') return - - app.router.afterEach((to, from) => { - if (window.owa_cmds) { - window.owa_cmds.push(['trackPageView']); - window.owa_cmds.push(['trackClicks']); - } - }) -}