From b2078bbeb6c296064a2757b8f67c44acc46a93bf Mon Sep 17 00:00:00 2001 From: abruere Date: Sun, 9 Sep 2018 23:57:01 +0200 Subject: [PATCH] fix: #818 Missing config.base in google analytics page view URL --- lib/app/clientEntry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/clientEntry.js b/lib/app/clientEntry.js index 7b634e7fb1..dc86314a97 100644 --- a/lib/app/clientEntry.js +++ b/lib/app/clientEntry.js @@ -30,7 +30,7 @@ if (process.env.NODE_ENV === 'production' && GA_ID) { ga('send', 'pageview') router.afterEach(function (to) { - ga('set', 'page', to.fullPath) + ga('set', 'page', app.$withBase(to.fullPath)) ga('send', 'pageview') }) }