fix($plugin-google-analytics): duplicate tracking of first page (fix #2017) (#2039)

This commit is contained in:
Ajit Panigrahi
2019-11-27 14:25:33 +08:00
committed by meteorlxy
parent 28a10c6077
commit a69df2101a
@@ -18,7 +18,6 @@ export default ({ router }) => {
ga('create', GA_ID, 'auto')
ga('set', 'anonymizeIp', true)
ga('send', 'pageview')
router.afterEach(function (to) {
ga('set', 'page', to.fullPath)