Skip to content

Commit b2078bb

Browse files
committed
fix: vuejs#818 Missing config.base in google analytics page view URL
1 parent 6857aac commit b2078bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/clientEntry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (process.env.NODE_ENV === 'production' && GA_ID) {
3030
ga('send', 'pageview')
3131

3232
router.afterEach(function (to) {
33-
ga('set', 'page', to.fullPath)
33+
ga('set', 'page', app.$withBase(to.fullPath))
3434
ga('send', 'pageview')
3535
})
3636
}

0 commit comments

Comments
 (0)