kopia lustrzana https://github.com/bugout-dev/moonstream
remove analytics from hubspot analytics page
rodzic
e71a41bed2
commit
5ca122612a
|
@ -3,9 +3,6 @@ import HubspotForm from "react-hubspot-form";
|
||||||
import { getLayout } from "../src/layouts/AppLayout";
|
import { getLayout } from "../src/layouts/AppLayout";
|
||||||
import { Spinner, Flex, Heading } from "@chakra-ui/react";
|
import { Spinner, Flex, Heading } from "@chakra-ui/react";
|
||||||
import Scrollable from "../src/components/Scrollable";
|
import Scrollable from "../src/components/Scrollable";
|
||||||
import mixpanel from "mixpanel-browser";
|
|
||||||
import MIXPANEL_EVENTS from "../src/core/providers/AnalyticsProvider/constants";
|
|
||||||
import { useUser } from "../src/core/hooks";
|
|
||||||
|
|
||||||
const Analytics = () => {
|
const Analytics = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -14,8 +11,6 @@ const Analytics = () => {
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const { user } = useUser();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Scrollable>
|
<Scrollable>
|
||||||
<Flex
|
<Flex
|
||||||
|
@ -36,12 +31,6 @@ const Analytics = () => {
|
||||||
portalId="8018701"
|
portalId="8018701"
|
||||||
formId="39bc0fbe-41c4-430a-b885-46eba66c59c2"
|
formId="39bc0fbe-41c4-430a-b885-46eba66c59c2"
|
||||||
loading={<Spinner colorScheme="primary" speed="1s" />}
|
loading={<Spinner colorScheme="primary" speed="1s" />}
|
||||||
onSubmit={() =>
|
|
||||||
mixpanel.track(MIXPANEL_EVENTS.FORM_SUBMITTED, {
|
|
||||||
formType: "Hubspot analytics",
|
|
||||||
user: user,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Scrollable>
|
</Scrollable>
|
||||||
|
|
Ładowanie…
Reference in New Issue