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');