Add analytics for timeline navigation

Test: Please see Google analytics and see event updates as you change
timeline navigation on winscope.
Bug: 200518515

Change-Id: I42152025d8cc2ef0b596d65fce177732eb6f9a98
This commit is contained in:
Shashwat
2021-09-22 10:18:15 +00:00
parent 9d3f674027
commit 7e0fbcbc13
3 changed files with 8 additions and 2 deletions

View File

@@ -160,7 +160,6 @@ export default {
// Pass click event to parent, so that click event handler can be attached
// to component.
this.$emit('click', e);
this.newEventOccurred(e.toString());
},
/** Filter data view files by current show settings */
updateShowFileTypes() {

View File

@@ -686,7 +686,7 @@ export default {
navigationStyleFilter =
(f) => f.type === fileType;
}
this.changedNavigationStyle(this.navigationStyle);
this.$store.commit('setNavigationFilesFilter', navigationStyleFilter);
},
updateVideoOverlayWidth(width) {

View File

@@ -411,6 +411,13 @@ Vue.mixin({
'value': field,
});
},
changedNavigationStyle(field) {
this.$gtag.event("Timeline navigation changed", {
'event_category': "Timeline Navigation",
'event_label': "Winscope Interactions",
'value': field,
});
},
}
});