Skip to content

Commit 5bbbc25

Browse files
authored
feat(ui): Add release details chart to analytics (#26619)
1 parent 995ecac commit 5bbbc25

File tree

1 file changed

+12
-2
lines changed
  • static/app/views/releases/detail/overview

1 file changed

+12
-2
lines changed

static/app/views/releases/detail/overview/index.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import TransactionsList, {DropdownOption} from 'app/components/discover/transact
88
import {Body, Main, Side} from 'app/components/layouts/thirds';
99
import {t} from 'app/locale';
1010
import {GlobalSelection, NewQuery, Organization, ReleaseProject} from 'app/types';
11+
import {trackAnalyticsEvent} from 'app/utils/analytics';
1112
import {getUtcDateString} from 'app/utils/dates';
1213
import {TableDataRow} from 'app/utils/discover/discoverQuery';
1314
import 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

Comments
 (0)