Skip to content

Commit a69df21

Browse files
ajitzerometeorlxy
authored andcommitted
fix($plugin-google-analytics): duplicate tracking of first page (fix #2017) (#2039)
1 parent 28a10c6 commit a69df21

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default ({ router }) => {
1818

1919
ga('create', GA_ID, 'auto')
2020
ga('set', 'anonymizeIp', true)
21-
ga('send', 'pageview')
2221

2322
router.afterEach(function (to) {
2423
ga('set', 'page', to.fullPath)

0 commit comments

Comments
 (0)