Skip to content

Commit 8f3c853

Browse files
committed
Add tracking
1 parent 2d5b08f commit 8f3c853

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/Map/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default {
123123
self.$gtag('event', 'click', {
124124
event_category: 'clustered',
125125
event_label: 'clustered click',
126-
value: title
126+
value: clusterId
127127
})
128128
})
129129

pages/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ export default {
9191
clearTimeout(this.timer)
9292
this.timer = setTimeout(_ => {
9393
this.isClosed = !this.isClosed
94+
this.$gtag('event', 'click', {
95+
event_category: 'icon',
96+
event_label: 'icon click',
97+
value: this.isOpen
98+
})
9499
}, 800)
95100
}
96101
}

0 commit comments

Comments
 (0)