diff --git a/src/sentry/static/sentry/app/views/groupDetails/organization/index.jsx b/src/sentry/static/sentry/app/views/groupDetails/organization/index.jsx index 0c6cdddfb77432..8530249ba90e7b 100644 --- a/src/sentry/static/sentry/app/views/groupDetails/organization/index.jsx +++ b/src/sentry/static/sentry/app/views/groupDetails/organization/index.jsx @@ -1,6 +1,7 @@ import React from 'react'; import SentryTypes from 'app/sentryTypes'; +import {analytics} from 'app/utils/analytics'; import withGlobalSelection from 'app/utils/withGlobalSelection'; import withOrganization from 'app/utils/withOrganization'; @@ -9,8 +10,16 @@ import GroupDetails from '../shared/groupDetails'; class OrganizationGroupDetails extends React.Component { static propTypes = { selection: SentryTypes.GlobalSelection.isRequired, + organization: SentryTypes.Organization.isRequired, }; + componentDidMount() { + analytics('issue_page.viewed', { + group_id: parseInt(this.props.params.groupId, 10), + org_id: parseInt(this.props.organization.id, 10), + }); + } + render() { // eslint-disable-next-line no-unused-vars const {selection, ...props} = this.props; diff --git a/src/sentry/static/sentry/app/views/groupDetails/project/index.jsx b/src/sentry/static/sentry/app/views/groupDetails/project/index.jsx index a7cbf1e6594f35..fddee8f16415e0 100644 --- a/src/sentry/static/sentry/app/views/groupDetails/project/index.jsx +++ b/src/sentry/static/sentry/app/views/groupDetails/project/index.jsx @@ -38,7 +38,6 @@ class ProjectGroupDetails extends React.Component { analytics('issue_page.viewed', { group_id: parseInt(this.props.params.groupId, 10), org_id: parseInt(this.context.organization.id, 10), - project_id: parseInt(this.context.project.id, 10), }); }