PLT-5071: Client side component of Telemetry. (#5516)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f182d196ff
Коммит
97cc0a0d73
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import {track} from 'actions/analytics_actions.jsx';
|
||||
import {trackEvent} from 'actions/diagnostics_actions.jsx';
|
||||
|
||||
import Constants from 'utils/constants.jsx';
|
||||
import {cleanUpUrlable} from 'utils/url.jsx';
|
||||
@@ -22,6 +22,10 @@ export default class TeamSignupDisplayNamePage extends React.Component {
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
trackEvent('signup', 'signup_team_01_name');
|
||||
}
|
||||
|
||||
submitNext(e) {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -60,8 +64,6 @@ export default class TeamSignupDisplayNamePage extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
track('signup', 'signup_team_02_name');
|
||||
|
||||
var nameError = null;
|
||||
var nameDivClass = 'form-group';
|
||||
if (this.state.nameError) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See License.txt for license information.
|
||||
|
||||
import {checkIfTeamExists, createTeam} from 'actions/team_actions.jsx';
|
||||
import {track} from 'actions/analytics_actions.jsx';
|
||||
import {trackEvent} from 'actions/diagnostics_actions.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
import * as URL from 'utils/url.jsx';
|
||||
|
||||
@@ -27,6 +27,10 @@ export default class TeamUrl extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
trackEvent('signup', 'signup_team_02_url');
|
||||
}
|
||||
|
||||
submitBack(e) {
|
||||
e.preventDefault();
|
||||
this.props.state.wizard = 'display_name';
|
||||
@@ -106,7 +110,7 @@ export default class TeamUrl extends React.Component {
|
||||
|
||||
createTeam(teamSignup.team,
|
||||
() => {
|
||||
track('signup', 'signup_team_08_complete');
|
||||
trackEvent('signup', 'signup_team_03_complete');
|
||||
},
|
||||
(err) => {
|
||||
this.setState({nameError: err.message});
|
||||
@@ -126,8 +130,6 @@ export default class TeamUrl extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
track('signup', 'signup_team_03_url');
|
||||
|
||||
let nameError = null;
|
||||
let nameDivClass = 'form-group';
|
||||
if (this.state.nameError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user