diff --git a/src/components/ProfilePage.jsx b/src/components/ProfilePage.jsx index 96262af..e6a65cd 100644 --- a/src/components/ProfilePage.jsx +++ b/src/components/ProfilePage.jsx @@ -42,8 +42,9 @@ export class ProfilePage extends React.Component { componentDidMount() { this.props.fetchProfile(this.props.match.params.username); - logEvent('edx.profile.viewed', { - profileUsername: this.props.match.params.username, + // TODO: Rename 'edx.bi.profile.viewed' when the event is finalized + logEvent('edx.bi.profile.viewed', { + username: this.props.match.params.username, }); } diff --git a/src/components/ProfilePage.test.jsx b/src/components/ProfilePage.test.jsx index c7ed1bf..9f98725 100644 --- a/src/components/ProfilePage.test.jsx +++ b/src/components/ProfilePage.test.jsx @@ -39,9 +39,9 @@ describe('', () => { )); expect(analytics.logEvent.mock.calls.length).toBe(1); - expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.profile.viewed'); + expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.bi.profile.viewed'); expect(analytics.logEvent.mock.calls[0][1]).toEqual({ - profileUsername: 'test-username', + username: 'test-username', }); }); });