router check added for gtag

pull/3437/head
Tuğçe Küçükoğlu 2022-12-20 11:55:49 +03:00
parent 005d192afc
commit 1693834a99
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ export default {
return; return;
} }
window['gtag']('config', 'UA-93461466-1', {
page_path: '/primevue' + to.path
});
this.sidebarActive = false; this.sidebarActive = false;
DomHandler.removeClass(document.body, 'blocked-scroll'); DomHandler.removeClass(document.body, 'blocked-scroll');
this.$toast.removeAllGroups(); this.$toast.removeAllGroups();