Skip to content
Snippets Groups Projects
Commit 01e6ebac authored by Allen Gilliland's avatar Allen Gilliland
Browse files

instrumentation on enable/disable of Metabot.

parent 73196bf0
No related merge requests found
......@@ -99,6 +99,10 @@ export default class SettingsSlackForm extends Component {
this.setState({
formData: { ...this.state.formData, [element.key]: (MetabaseUtils.isEmpty(value)) ? null : value }
});
if (element.key === "metabot-enabled") {
MetabaseAnalytics.trackEvent("Slack Settings", "Toggle Metabot", value);
}
}
handleFormErrors(error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment