Skip to content

Commit

Permalink
chore: add more ga event (ElemeFE#14633)
Browse files Browse the repository at this point in the history
* chore: add more ga event

* add download event
  • Loading branch information
iamkun authored and ziyoung committed Mar 13, 2019
1 parent 701caf3 commit 463ed66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/components/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@
getVars()
.then(() => {
this.showThemeConfigurator = true;
ga('send', 'event', 'DocView', 'Inner');
})
.catch((err) => {
console.error(err);
Expand Down
1 change: 1 addition & 0 deletions examples/components/theme-configurator/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default {
.then(() => {
this.downloading = false;
});
ga('send', 'event', 'ThemeConfigurator', 'Download');
}
}
};
Expand Down
1 change: 1 addition & 0 deletions examples/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ router.afterEach(route => {
}
}
document.title = 'Element';
ga('send', 'event', 'PageView', route.name);
});

new Vue({ // eslint-disable-line
Expand Down

0 comments on commit 463ed66

Please sign in to comment.