Skip to content
Snippets Groups Projects
Commit dce8b38d authored by Tom Robinson's avatar Tom Robinson
Browse files

Alert instrumentation

parent 8278a85a
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ import cxs from "cxs";
import ChannelSetupModal from "metabase/components/ChannelSetupModal";
import ButtonWithStatus from "metabase/components/ButtonWithStatus";
import { apiUpdateQuestion } from "metabase/query_builder/actions";
import MetabaseAnalytics from "metabase/lib/analytics";
const getScheduleFromChannel = channel =>
_.pick(
......@@ -117,6 +118,8 @@ export class CreateAlertModalContent extends Component {
// OR should the modal visibility be part of QB redux state
// (maybe check how other modals are implemented)
onAlertCreated();
MetabaseAnalytics.trackEvent("Alert", "Create", alert.alert_condition)
};
proceedFromEducationalScreen = () => {
......@@ -288,6 +291,8 @@ export class UpdateAlertModalContent extends Component {
await updateAlert(modifiedAlert);
onAlertUpdated();
MetabaseAnalytics.trackEvent("Alert", "Update", modifiedAlert.alert_condition)
};
onDeleteAlert = async () => {
......
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