diff --git a/src/components/dataset-data/dataset-data.spec.js b/src/components/dataset-data/dataset-data.spec.js index c5ec515fd..63712790f 100644 --- a/src/components/dataset-data/dataset-data.spec.js +++ b/src/components/dataset-data/dataset-data.spec.js @@ -453,7 +453,7 @@ describe('DatasetData', () => { expect(analyticsSpy).toHaveBeenLastCalledWith({ action: 'Published Report Preview', - category: 'Fiscal Data - Published Report Preview', + category: 'Published Report Preview', label: '/downloads/mspd_reports/opdm092020.pdf', }); analyticsSpy.mockClear(); diff --git a/src/components/dataset-data/table-section-container/pivot-options/pivot-options.jsx b/src/components/dataset-data/table-section-container/pivot-options/pivot-options.jsx index 79e498ec1..3dc4e427e 100644 --- a/src/components/dataset-data/table-section-container/pivot-options/pivot-options.jsx +++ b/src/components/dataset-data/table-section-container/pivot-options/pivot-options.jsx @@ -30,7 +30,7 @@ const PivotOptions = ({ datasetName, table, pivotSelection, setSelectedPivot, pi } Analytics.event({ - category: 'Fiscal Data - Chart Enabled', + category: 'Chart Enabled', action: 'Pivot View Click', label: `${view.title}, ${datasetName}, ${table.tableName}`, }); @@ -42,7 +42,7 @@ const PivotOptions = ({ datasetName, table, pivotSelection, setSelectedPivot, pi const pivotValueChangeHandler = valueField => { if (valueField?.prettyName !== '— N / A —') { Analytics.event({ - category: 'Fiscal Data - Chart Enabled', + category: 'Chart Enabled', action: 'Pivot Value Click', label: `${valueField?.prettyName}, ${datasetName}, ${table.tableName}`, }); diff --git a/src/components/dataset-data/table-section-container/table-section-container.jsx b/src/components/dataset-data/table-section-container/table-section-container.jsx index eafdb1403..0d1a5fdca 100644 --- a/src/components/dataset-data/table-section-container/table-section-container.jsx +++ b/src/components/dataset-data/table-section-container/table-section-container.jsx @@ -251,7 +251,7 @@ const TableSectionContainer = ({ if (e.key === undefined || e.key === 'Enter') { if (legend) { Analytics.event({ - category: 'Fiscal Data - Chart Enabled', + category: 'Chart Enabled', action: 'Hide Legend Click', label: `${config.name}, ${selectedTable.tableName}`, }); @@ -266,7 +266,7 @@ const TableSectionContainer = ({ const pivotToggler = () => { if (showPivotBar) { Analytics.event({ - category: 'Fiscal Data - Chart Enabled', + category: 'Chart Enabled', action: 'Hide Pivot Options Click', label: `${config.name}, ${selectedTable.tableName}`, }); @@ -341,7 +341,13 @@ const TableSectionContainer = ({ )}