From 463ed66a4ecbf79084f10cc41d2f13566250b0f5 Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 13 Mar 2019 19:46:03 +0800 Subject: [PATCH] chore: add more ga event (#14633) * chore: add more ga event * add download event --- examples/components/header.vue | 1 + examples/components/theme-configurator/download.vue | 1 + examples/entry.js | 1 + 3 files changed, 3 insertions(+) diff --git a/examples/components/header.vue b/examples/components/header.vue index 3b3f68b3acd..b0888a596b1 100644 --- a/examples/components/header.vue +++ b/examples/components/header.vue @@ -428,6 +428,7 @@ getVars() .then(() => { this.showThemeConfigurator = true; + ga('send', 'event', 'DocView', 'Inner'); }) .catch((err) => { console.error(err); diff --git a/examples/components/theme-configurator/download.vue b/examples/components/theme-configurator/download.vue index 34cc6de22d6..56ece1853fb 100644 --- a/examples/components/theme-configurator/download.vue +++ b/examples/components/theme-configurator/download.vue @@ -70,6 +70,7 @@ export default { .then(() => { this.downloading = false; }); + ga('send', 'event', 'ThemeConfigurator', 'Download'); } } }; diff --git a/examples/entry.js b/examples/entry.js index b0b48e2d072..5d5c13464f9 100644 --- a/examples/entry.js +++ b/examples/entry.js @@ -44,6 +44,7 @@ router.afterEach(route => { } } document.title = 'Element'; + ga('send', 'event', 'PageView', route.name); }); new Vue({ // eslint-disable-line