Add tracking for comment tab clicks

Change-Id: I273694ec381b41bc3296223c1cdf6dea2c77ab9c
This commit is contained in:
Dhruv Srivastava
2020-01-31 10:31:56 +01:00
parent 0879693d46
commit 66deeaf002

View File

@@ -476,6 +476,10 @@
_handleCommentTabChange() {
this._currentView = this.$.commentTabs.selected;
const type = Object.keys(CommentTabs).find(key => CommentTabs[key] ===
this._currentView);
this.$.reporting.reportInteraction('comment-tab-changed', {tabName:
type});
}
_isSelectedView(currentView, view) {