@@ -8,6 +8,7 @@ import TransactionsList, {DropdownOption} from 'app/components/discover/transact
88import { Body , Main , Side } from 'app/components/layouts/thirds' ;
99import { t } from 'app/locale' ;
1010import { GlobalSelection , NewQuery , Organization , ReleaseProject } from 'app/types' ;
11+ import { trackAnalyticsEvent } from 'app/utils/analytics' ;
1112import { getUtcDateString } from 'app/utils/dates' ;
1213import { TableDataRow } from 'app/utils/discover/discoverQuery' ;
1314import EventView from 'app/utils/discover/eventView' ;
@@ -68,8 +69,17 @@ class ReleaseOverview extends AsyncView<Props> {
6869 }
6970
7071 handleYAxisChange = ( yAxis : YAxis ) => {
71- const { location, router} = this . props ;
72- const { eventType : _eventType , vitalType : _vitalType , ...query } = location . query ;
72+ const { location, router, organization} = this . props ;
73+ const { eventType, vitalType, ...query } = location . query ;
74+
75+ trackAnalyticsEvent ( {
76+ eventKey : `release_detail.change_chart` ,
77+ eventName : `Release Detail: Change Chart` ,
78+ organization_id : parseInt ( organization . id , 10 ) ,
79+ display : yAxis ,
80+ eventType,
81+ vitalType,
82+ } ) ;
7383
7484 router . push ( {
7585 ...location ,
0 commit comments