Skip to content
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

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

nikkikapadia
Copy link
Member

@nikkikapadia nikkikapadia commented Jan 21, 2025

Adding analytics to:

  • see if users toggle between table and grid view + see which view they switch to
  • view interaction between the favourite button

Still need to figure out how to add analytics to view how many dashboards a user has favourited...

Contributes to #83742

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 21, 2025
@nikkikapadia nikkikapadia marked this pull request as ready for review January 21, 2025 20:21
@nikkikapadia nikkikapadia requested a review from a team as a code owner January 21, 2025 20:22
Copy link
Member

@gggritso gggritso left a 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!

Comment on lines 51 to 52
// TODO(nikki): may not need this one
'dashboards_manage.count_favourites': {count: number; user_id: string};
Copy link
Member

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!

Suggested change
// 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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'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};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'dashboards_manage.favourite': {dashboard_id: string; favourited: boolean};
'dashboards_manage.favorite': {dashboard_id: string; favorited: boolean};

🇨🇦 👮🏻

Copy link
Member

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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'dashboards_manage.favourite': 'Dashboards Manager: Dashboard Favourited',
'dashboards_manage.favorite': 'Dashboards Manager: Dashboard Favorited',

@nikkikapadia nikkikapadia merged commit 9a02e57 into master Jan 22, 2025
43 checks passed
@nikkikapadia nikkikapadia deleted the nikki/analytics-for-fav-dashboards branch January 22, 2025 14:46
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
…83766)

Adding analytics to:
- see if users toggle between table and grid view + see which view they
switch to
- view interaction between the favourite button

Still need to figure out how to add analytics to view how many
dashboards a user has favourited...

Contributes to #83742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants