From 8790c328551edec525fc725d1422dc36c793b7ef Mon Sep 17 00:00:00 2001 From: kazachilo Date: Tue, 29 Apr 2025 11:29:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D0=B4=D0=BE=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D1=82=D0=BA=D0=B0=20=D1=81=D0=BE=D0=B1=D1=8B?= =?UTF-8?q?=D1=82=D0=B8=D1=8F=20=D0=BD=D0=B0=D0=B6=D0=B0=D1=82=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=B3=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=B3?= =?UTF-8?q?=D0=BF=D1=824.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/generation/GenerationButton.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/generation/GenerationButton.tsx b/src/components/generation/GenerationButton.tsx index f6db2be..5478558 100644 --- a/src/components/generation/GenerationButton.tsx +++ b/src/components/generation/GenerationButton.tsx @@ -33,7 +33,13 @@ const GenerationButton: React.FC = ({ // Обработчик нажатия на кнопку генерации const handleAction = (actionType: string, actionValue: string) => { if (actionType === 'function' && actionValue === 'startGeneration' && !isGenerating) { - // Отслеживаем событие нажатия на кнопку генерации + // Всегда отправляем событие клика по кнопке генерации + customAnalyticsService.trackEvent({ + telegram_id: getCurrentUserId(), + event_category: 'generation', + event_name: 'generation_button_click' + }); + // Аналитика: пресет или мем if (emotionType === 'memes' && memeId) { customAnalyticsService.trackEvent({