Commit 463ed66a authored by iamkun's avatar iamkun Committed by hetech

chore: add more ga event (#14633)

* chore: add more ga event

* add download event
parent 701caf3f
...@@ -428,6 +428,7 @@ ...@@ -428,6 +428,7 @@
getVars() getVars()
.then(() => { .then(() => {
this.showThemeConfigurator = true; this.showThemeConfigurator = true;
ga('send', 'event', 'DocView', 'Inner');
}) })
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
......
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
.then(() => { .then(() => {
this.downloading = false; this.downloading = false;
}); });
ga('send', 'event', 'ThemeConfigurator', 'Download');
} }
} }
}; };
......
...@@ -44,6 +44,7 @@ router.afterEach(route => { ...@@ -44,6 +44,7 @@ router.afterEach(route => {
} }
} }
document.title = 'Element'; document.title = 'Element';
ga('send', 'event', 'PageView', route.name);
}); });
new Vue({ // eslint-disable-line new Vue({ // eslint-disable-line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment