chore: add more ga event (#14633)

* chore: add more ga event

* add download event
pull/14703/head
iamkun 2019-03-13 19:46:03 +08:00 committed by hetech
parent 701caf3f08
commit 463ed66a4e
3 changed files with 3 additions and 0 deletions

View File

@ -428,6 +428,7 @@
getVars()
.then(() => {
this.showThemeConfigurator = true;
ga('send', 'event', 'DocView', 'Inner');
})
.catch((err) => {
console.error(err);

View File

@ -70,6 +70,7 @@ export default {
.then(() => {
this.downloading = false;
});
ga('send', 'event', 'ThemeConfigurator', 'Download');
}
}
};

View File

@ -44,6 +44,7 @@ router.afterEach(route => {
}
}
document.title = 'Element';
ga('send', 'event', 'PageView', route.name);
});
new Vue({ // eslint-disable-line