Add tracking for comment tab clicks
Change-Id: I273694ec381b41bc3296223c1cdf6dea2c77ab9c
This commit is contained in:
@@ -476,6 +476,10 @@
|
|||||||
|
|
||||||
_handleCommentTabChange() {
|
_handleCommentTabChange() {
|
||||||
this._currentView = this.$.commentTabs.selected;
|
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) {
|
_isSelectedView(currentView, view) {
|
||||||
|
|||||||
Reference in New Issue
Block a user