mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix setup analytics
This commit is contained in:
@@ -61,9 +61,7 @@ export default function Step4Rules({
|
||||
setNewRules(inserted);
|
||||
}, [currentRules, rules]);
|
||||
|
||||
const [rulesStatus, setRulesStatus] = useState<"IDLE" | "LOADING" | string>(
|
||||
"IDLE"
|
||||
);
|
||||
const [rulesStatus, setRulesStatus] = useState<"LOADING" | string>("");
|
||||
const setRules = async () => {
|
||||
setRulesStatus("LOADING");
|
||||
try {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function Step6Finish() {
|
||||
|
||||
const handleRate = (e) => {
|
||||
setRating(e.target.value);
|
||||
analytics.logEvent("rate_setup", { rating: e.target.value });
|
||||
analytics.logEvent("setup_rating", { rating: e.target.value });
|
||||
enqueueSnackbar("Thanks for your feedback!");
|
||||
};
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ import Step6Finish from "components/Setup/Step6Finish";
|
||||
import { name } from "@root/package.json";
|
||||
import routes from "constants/routes";
|
||||
import { useAppContext } from "contexts/AppContext";
|
||||
import { analytics } from "analytics";
|
||||
|
||||
export interface ISetupStep {
|
||||
id: string;
|
||||
@@ -239,7 +240,9 @@ export default function SetupPage() {
|
||||
nextIncompleteStepIndex++;
|
||||
}
|
||||
|
||||
setStepId(steps[nextIncompleteStepIndex].id);
|
||||
const nextStepId = steps[nextIncompleteStepIndex].id;
|
||||
analytics.logEvent("setup_step", { step: nextStepId });
|
||||
setStepId(nextStepId);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user