From 47cf625c7cc1843e204875fd9211bdc0718894a3 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Thu, 18 Apr 2024 09:18:59 -0500 Subject: [PATCH] CE-1123 - Fix to only record analytics when menu is clicked (not when it's rendered...) --- src/qqq/components/query/ExportMenuItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qqq/components/query/ExportMenuItem.tsx b/src/qqq/components/query/ExportMenuItem.tsx index 19a251a..bafaaa0 100644 --- a/src/qqq/components/query/ExportMenuItem.tsx +++ b/src/qqq/components/query/ExportMenuItem.tsx @@ -46,13 +46,13 @@ export default function ExportMenuItem(props: QExportMenuItemProps) const {recordAnalytics} = useContext(QContext); - recordAnalytics({category: "tableEvents", action: "export", label: tableMetaData.label}); - return ( { + recordAnalytics({category: "tableEvents", action: "export", label: tableMetaData.label}); + /////////////////////////////////////////////////////////////////////////////// // build the list of visible fields. note, not doing them in-order (in case // // the user did drag & drop), because column order model isn't right yet //