From 559888bbb1119a3123feb87f928803fd76d41e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20Bru=C3=A8re?= Date: Sat, 15 Sep 2018 07:41:44 +0200 Subject: [PATCH] fix: missing config.base in google analytics page view URL (close: #818) (#834) --- 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') }) }