-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(dashboards): Add analytics for dashboards view and favourites #83766
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, but watch out for Canadian spelling!
// TODO(nikki): may not need this one | ||
'dashboards_manage.count_favourites': {count: number; user_id: string}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, might as well not include it, IMO!
// TODO(nikki): may not need this one | |
'dashboards_manage.count_favourites': {count: number; user_id: string}; |
@@ -144,9 +150,12 @@ export const dashboardsEventMap: Record<DashboardsEventKey, string | null> = { | |||
'dashboards_views.widget_library.opened': 'Dashboards2: Add Widget Library opened', | |||
'dashboards_manage.search': 'Dashboards Manager: Search', | |||
'dashboards_manage.change_sort': 'Dashboards Manager: Sort By Changed', | |||
'dashboards_manage.change_view_type': 'Dashboards Manager: View Type Toggled', | |||
'dashboards_manage.count_favourites': 'Dashboards Manager: Count Favourites', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'dashboards_manage.count_favourites': 'Dashboards Manager: Count Favourites', |
'dashboards_manage.create.start': {}; | ||
'dashboards_manage.delete': {dashboard_id: number; view_type: DashboardsLayout}; | ||
'dashboards_manage.duplicate': {dashboard_id: number; view_type: DashboardsLayout}; | ||
'dashboards_manage.favourite': {dashboard_id: string; favourited: boolean}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'dashboards_manage.favourite': {dashboard_id: string; favourited: boolean}; | |
'dashboards_manage.favorite': {dashboard_id: string; favorited: boolean}; |
🇨🇦 👮🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be confusing that an "unfavorite" event has the same name! Maybe toggle_favorite
would be better?
'dashboards_manage.create.start': 'Dashboards Manager: Dashboard Create Started', | ||
'dashboards_manage.delete': 'Dashboards Manager: Dashboard Deleted', | ||
'dashboards_manage.duplicate': 'Dashboards Manager: Dashboard Duplicated', | ||
'dashboards_manage.favourite': 'Dashboards Manager: Dashboard Favourited', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'dashboards_manage.favourite': 'Dashboards Manager: Dashboard Favourited', | |
'dashboards_manage.favorite': 'Dashboards Manager: Dashboard Favorited', |
Adding analytics to:
Still need to figure out how to add analytics to view how many dashboards a user has favourited...
Contributes to #83742