Skip to content

Commit 6bbcc69

Browse files
authoredDec 3, 2020
fix($plugin-google-analytics): report site base (#2687) (close #2169)
1 parent 81cce39 commit 6bbcc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/@vuepress/plugin-google-analytics/enhanceAppFile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default ({ router }) => {
2020
ga('set', 'anonymizeIp', true)
2121

2222
router.afterEach(function (to) {
23-
ga('set', 'page', to.fullPath)
23+
ga('set', 'page', router.app.$withBase(to.fullPath))
2424
ga('send', 'pageview')
2525
})
2626
}

0 commit comments

Comments
 (0)
Please sign in to comment.