diff --git a/src/components/views/elements/ActionButton.js b/src/components/views/elements/ActionButton.js index 08fb6faa1d..b1fa71829b 100644 --- a/src/components/views/elements/ActionButton.js +++ b/src/components/views/elements/ActionButton.js @@ -19,6 +19,7 @@ import PropTypes from 'prop-types'; import AccessibleButton from './AccessibleButton'; import dis from '../../../dispatcher'; import sdk from '../../../index'; +import Analytics from '../../../Analytics'; export default React.createClass({ displayName: 'RoleButton', @@ -47,6 +48,7 @@ export default React.createClass({ _onClick: function(ev) { ev.stopPropagation(); + Analytics.trackEvent('Action Button', 'click', this.props.action); dis.dispatch({action: this.props.action}); },