From dda9a56610b598cc9e46b049af1bc2b47027159b Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 22 Apr 2022 10:08:58 +0300 Subject: [PATCH] Fixed gtag update --- src/App.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index b94747613..a7b658939 100755 --- a/src/App.vue +++ b/src/App.vue @@ -41,12 +41,9 @@ export default { $route: { immediate: true, handler(to) { - let route = window.location.href.split('/#')[1]; - if (to.path === route) { - window['gtag']('config', 'UA-93461466-1', { + window['gtag']('config', 'UA-93461466-1', { 'page_path': '/primevue' + to.path - }); - } + }); this.sidebarActive = false; DomHandler.removeClass(document.body, 'blocked-scroll');