From 515222c25f6f9571728873a9c8a86bdf06855f4d Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 20 Sep 2017 17:16:49 +0100 Subject: [PATCH] Track action button click event --- src/components/views/elements/ActionButton.js | 2 ++ 1 file changed, 2 insertions(+) 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}); },