Add dev master item logging
This commit is contained in:
parent
389e8ce10b
commit
1cf8ed82d1
1 changed files with 22 additions and 2 deletions
|
@ -7,12 +7,18 @@
|
|||
class="released"
|
||||
:title="releasedString"
|
||||
:href="commitUrl"
|
||||
target="_blank">
|
||||
target="_blank"
|
||||
@click="releasedClick">
|
||||
{{ releasedRelativeString }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<a class="download-button" :href="download" target="_blank" title="Download">
|
||||
<a
|
||||
class="download-button"
|
||||
:href="download"
|
||||
target="_blank"
|
||||
title="Download"
|
||||
@click="downloadClick">
|
||||
<span class="mdi mdi-download"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -40,6 +46,20 @@ export default {
|
|||
type: String,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
releasedClick() {
|
||||
this.$ga.event({
|
||||
eventCategory: 'dev-master-item',
|
||||
eventAction: 'released-click',
|
||||
});
|
||||
},
|
||||
downloadClick() {
|
||||
this.$ga.event({
|
||||
eventCategory: 'dev-master-item',
|
||||
eventAction: 'download-click',
|
||||
});
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
releasedString() {
|
||||
return moment(this.released).format('dddd, D MMM YYYY HH:mm:ss');
|
||||
|
|
Loading…
Reference in a new issue