From a69df2101a5a20b964404bb99ab870d49335f1c7 Mon Sep 17 00:00:00 2001 From: Ajit Panigrahi Date: Wed, 27 Nov 2019 11:53:20 +0530 Subject: [PATCH] fix($plugin-google-analytics): duplicate tracking of first page (fix #2017) (#2039) --- packages/@vuepress/plugin-google-analytics/enhanceAppFile.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/@vuepress/plugin-google-analytics/enhanceAppFile.js b/packages/@vuepress/plugin-google-analytics/enhanceAppFile.js index 87e75084c3..6762d48e45 100644 --- a/packages/@vuepress/plugin-google-analytics/enhanceAppFile.js +++ b/packages/@vuepress/plugin-google-analytics/enhanceAppFile.js @@ -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)