diff --git a/public/app/features/correlations/CorrelationsPage.tsx b/public/app/features/correlations/CorrelationsPage.tsx index 57f2d08924e..119e5b66452 100644 --- a/public/app/features/correlations/CorrelationsPage.tsx +++ b/public/app/features/correlations/CorrelationsPage.tsx @@ -40,7 +40,15 @@ const loaderWrapper = css` export default function CorrelationsPage() { const navModel = useNavModel('correlations'); - const [isAdding, setIsAdding] = useState(false); + const [isAdding, setIsAddingValue] = useState(false); + + const setIsAdding = (value: boolean) => { + setIsAddingValue(value); + if (value) { + reportInteraction('grafana_correlations_adding_started'); + } + }; + const { remove, get: { execute: fetchCorrelations, ...get },