diff --git a/src/components/EmailEnterPage/index.tsx b/src/components/EmailEnterPage/index.tsx
index c54cddf..d3377c6 100755
--- a/src/components/EmailEnterPage/index.tsx
+++ b/src/components/EmailEnterPage/index.tsx
@@ -88,6 +88,8 @@ function EmailEnterPage({
const handleClick = () => {
authorize();
+ if (typeof window.ym === "function")
+ window.ym(95799066, "reachGoal", "EnteredEmail");
};
const authorize = async () => {
diff --git a/src/components/PaymentPage/results/SuccessPage/index.tsx b/src/components/PaymentPage/results/SuccessPage/index.tsx
index 603b597..21a1e39 100644
--- a/src/components/PaymentPage/results/SuccessPage/index.tsx
+++ b/src/components/PaymentPage/results/SuccessPage/index.tsx
@@ -6,6 +6,7 @@ import Title from "@/components/Title";
import MainButton from "@/components/MainButton";
import { useDispatch } from "react-redux";
import { actions } from "@/store";
+import { useEffect } from "react";
function PaymentSuccessPage(): JSX.Element {
const { t } = useTranslation();
@@ -16,6 +17,11 @@ function PaymentSuccessPage(): JSX.Element {
navigate(routes.client.addReport());
};
+ useEffect(() => {
+ if (typeof window.ym === "function")
+ window.ym(95799066, "reachGoal", "PaymentSuccess");
+ }, []);
+
return (
{
authorize();
+ if (typeof window.ym === "function")
+ window.ym(95799066, "reachGoal", "EnteredEmail");
};
const authorize = async () => {
diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PaymentModal/index.tsx b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PaymentModal/index.tsx
index 9b1ee66..cdb78ad 100644
--- a/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PaymentModal/index.tsx
+++ b/src/components/pages/ABDesign/v1/pages/TrialPayment/components/PaymentModal/index.tsx
@@ -143,7 +143,6 @@ function PaymentModal({
activeProduct={_activeProduct}
client_secret={clientSecret}
subscriptionReceiptId={paymentIntentId}
- returnUrl={window.location.href}
/>
)}
diff --git a/src/components/pages/SinglePaymentPage/ResultPayment/SuccessPaymentPage/index.tsx b/src/components/pages/SinglePaymentPage/ResultPayment/SuccessPaymentPage/index.tsx
index 5168b8b..0a464fd 100644
--- a/src/components/pages/SinglePaymentPage/ResultPayment/SuccessPaymentPage/index.tsx
+++ b/src/components/pages/SinglePaymentPage/ResultPayment/SuccessPaymentPage/index.tsx
@@ -4,6 +4,7 @@ import Title from "@/components/Title";
import MainButton from "@/components/MainButton";
import { useNavigate } from "react-router-dom";
import routes from "@/routes";
+import { useEffect } from "react";
function SuccessPaymentPage(): JSX.Element {
const { t } = useTranslation();
@@ -13,6 +14,11 @@ function SuccessPaymentPage(): JSX.Element {
? "The payment was successful"
: "The information has been sent to your email";
+ useEffect(() => {
+ if (typeof window.ym === "function")
+ window.ym(95799066, "reachGoal", "PaymentSuccess");
+ }, []);
+
return (