Skip to content

Commit

Permalink
add Mixpanel BlueprintsPageView event to the Blueprints page (#4248)
Browse files Browse the repository at this point in the history
Co-authored-by: Misha Holtz <mishmish@Mishas-MacBook-Pro.local>
  • Loading branch information
mnholtz and Misha Holtz authored Sep 7, 2022
1 parent d5c0b82 commit 63f3851
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/options/pages/blueprints/BlueprintsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import React, { useMemo } from "react";
import React, { useMemo, useEffect } from "react";
import BlueprintsCard from "@/options/pages/blueprints/BlueprintsCard";
import useInstallables from "@/options/pages/blueprints/useInstallables";
import ExtensionLogsModal from "@/options/pages/blueprints/modals/ExtensionLogsModal";
Expand All @@ -33,6 +33,7 @@ import { useTitle } from "@/hooks/title";
import { ErrorDisplay } from "@/layout/ErrorDisplay";
import ConvertToRecipeModal from "./modals/ConvertToRecipeModal";
import ShareRecipeModal from "./modals/ShareRecipeModal/ShareRecipeModal";
import { reportEvent } from "@/telemetry/events";

const BlueprintsPage: React.FunctionComponent = () => {
useTitle("Blueprints");
Expand All @@ -44,6 +45,10 @@ const BlueprintsPage: React.FunctionComponent = () => {
selectShowShareContext
);

useEffect(() => {
reportEvent("BlueprintsPageView");
}, []);

const body = useMemo(() => {
if (error) {
return <ErrorDisplay error={error} />;
Expand Down

0 comments on commit 63f3851

Please sign in to comment.