hotfix/AW-282-events
This commit is contained in:
parent
ff9cf9d017
commit
3de4a92a82
@ -59,6 +59,7 @@ function Email() {
|
||||
EMetrics.YANDEX,
|
||||
EMetrics.FACEBOOK,
|
||||
]);
|
||||
metricService.reachGoal(EGoals.ENTER_EMAIL_PALMISTRY, [EMetrics.YANDEX]);
|
||||
await authorization(email, ESourceAuthorization["aura.palmistry.new"]);
|
||||
};
|
||||
|
||||
|
||||
@ -15,7 +15,10 @@ import routes from "@/routes";
|
||||
import { addCurrency, ELocalesPlacement } from "@/locales";
|
||||
import { useTranslations } from "@/hooks/translations";
|
||||
import Stars from "../../components/Stars";
|
||||
import metricService, { EGoals } from "@/services/metric/metricService";
|
||||
import metricService, {
|
||||
EGoals,
|
||||
EMetrics,
|
||||
} from "@/services/metric/metricService";
|
||||
|
||||
interface IPaymentContext {
|
||||
isShowPaymentModal: boolean;
|
||||
@ -43,6 +46,9 @@ function Payment() {
|
||||
useEffect(() => {
|
||||
if (subscriptionStatus !== "subscribed") return;
|
||||
metricService.reachGoal(EGoals.PAYMENT_SUCCESS);
|
||||
metricService.reachGoal(EGoals.PAYMENT_SUCCESS_PALMISTRY, [
|
||||
EMetrics.YANDEX,
|
||||
]);
|
||||
const timer = setTimeout(() => {
|
||||
navigate(routes.client.skipTrial());
|
||||
}, 1500);
|
||||
|
||||
@ -35,6 +35,9 @@ export default function PaymentScreen() {
|
||||
React.useEffect(() => {
|
||||
if (subscriptionStatus === "subscribed") {
|
||||
metricService.reachGoal(EGoals.PAYMENT_SUCCESS);
|
||||
metricService.reachGoal(EGoals.PAYMENT_SUCCESS_PALMISTRY, [
|
||||
EMetrics.YANDEX,
|
||||
]);
|
||||
if (activeProductFromStore) {
|
||||
metricService.reachGoal(EGoals.PURCHASE, [EMetrics.FACEBOOK], {
|
||||
currency: "USD",
|
||||
|
||||
@ -52,6 +52,7 @@ export default function StepEmail() {
|
||||
EMetrics.YANDEX,
|
||||
EMetrics.FACEBOOK,
|
||||
]);
|
||||
metricService.reachGoal(EGoals.ENTER_EMAIL_PALMISTRY, [EMetrics.YANDEX]);
|
||||
metricService.reachGoal(EGoals.LEAD, [EMetrics.FACEBOOK]);
|
||||
setIsAuth(true);
|
||||
};
|
||||
|
||||
@ -16,7 +16,9 @@ export enum EGoals {
|
||||
AURA_PAYMENT_METHODS_OPENED = "AuraPaymentMethodsOpened",
|
||||
AURA_SELECT_TRIAL = "AuraSelectTrial",
|
||||
AURA_TRIAL_CHOICE_PAGE_VISIT = "AuraTrialChoicePageVisit",
|
||||
AURA_TRIAL_PAYMENT_PAGE_VISIT = "AuraTrialPaymentPageVisit"
|
||||
AURA_TRIAL_PAYMENT_PAGE_VISIT = "AuraTrialPaymentPageVisit",
|
||||
PAYMENT_SUCCESS_PALMISTRY = "PaymentSuccessPalmistry",
|
||||
ENTER_EMAIL_PALMISTRY = "EnterEmailPalmistry"
|
||||
}
|
||||
|
||||
export enum EFlags {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user