From 1cf8ed82d185b7b702548bd4bcbf8ab1082efc61 Mon Sep 17 00:00:00 2001 From: Dominik Korsa Date: Sun, 3 Mar 2019 13:55:38 +0100 Subject: [PATCH] Add dev master item logging --- src/components/HomeDownloadDevMaster.vue | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/components/HomeDownloadDevMaster.vue b/src/components/HomeDownloadDevMaster.vue index 817aab5..ec50d8f 100644 --- a/src/components/HomeDownloadDevMaster.vue +++ b/src/components/HomeDownloadDevMaster.vue @@ -7,12 +7,18 @@ class="released" :title="releasedString" :href="commitUrl" - target="_blank"> + target="_blank" + @click="releasedClick"> {{ releasedRelativeString }}
- +
@@ -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');