From 6e8e320acec2e427a75a790b9298c2f6eef0ccb3 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Tue, 28 Jan 2025 16:00:54 +0000 Subject: [PATCH] Chore: emit event whenever the theme changes (#99672) emit event whenever the theme changes --- .../core/components/SharedPreferences/SharedPreferences.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/core/components/SharedPreferences/SharedPreferences.tsx b/public/app/core/components/SharedPreferences/SharedPreferences.tsx index 462e38863a5..a24bd4b027b 100644 --- a/public/app/core/components/SharedPreferences/SharedPreferences.tsx +++ b/public/app/core/components/SharedPreferences/SharedPreferences.tsx @@ -120,6 +120,10 @@ export class SharedPreferences extends PureComponent { onThemeChanged = (value: ComboboxOption) => { this.setState({ theme: value.value }); + reportInteraction('grafana_preferences_theme_changed', { + toTheme: value.value, + preferenceType: this.props.preferenceType, + }); if (value.value) { changeTheme(value.value, true);