Skip to content

Commit

Permalink
MM-13062: Fix missed out diagnostic action. (mattermost#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
grundleborg authored and jwilander committed Dec 12, 2018
1 parent 61efca9 commit 1fc7a7d
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions actions/diagnostics_actions.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import {Client4} from 'mattermost-redux/client';
import {getConfig} from 'mattermost-redux/selectors/entities/general';
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';

import store from 'stores/redux_store.jsx';

Expand All @@ -16,23 +16,7 @@ const SUPPORTS_MEASURE_METHODS = isSupported([
]);

export function trackEvent(category, event, props) {
if (global.window && global.window.analytics) {
const properties = Object.assign({category, type: event, user_actual_id: getCurrentUserId(store.getState())}, props);
const options = {
context: {
ip: '0.0.0.0',
},
page: {
path: '',
referrer: '',
search: '',
title: '',
url: '',
},
anonymousId: '00000000000000000000000000',
};
global.window.analytics.track('event', properties, options);
}
Client4.trackEvent(category, event, props);
}

/**
Expand Down

0 comments on commit 1fc7a7d

Please sign in to comment.