WebSite X5Help Center

 
Aleksej H.
Aleksej H.
Moderator

Click tracking for Google Analytics  en

Автор: Aleksej H.
Просмотрено 2762, Подписчики 2, Размещенный 0  

Hello.Please explain, what I must do to track button presses and transfer this data to Google Analytics.

For example, how can I add such code for a button?

onClick="ga('send', 'event', 'Knopka', 'Podtverdit'

Размещено
2 Ответы - 1 Полезно
Incomedia
Stefano G.
Incomedia

Hi Aleksej

At the moment, it is not possible to alter an onClick property for a button in the default UI of the software. You would need to do this either directly in the generated files after export, or by manually adding links inside Text Objects or similar, and then applying the code.

Alternatively, you could insert the whole code in an click javascript event instead of the button directly, but since this involves additional custom code, the Staff cannot unfortunately provide support for this

I will leave this topic open so that other users might eventually stop by and help you out nonetheless

Thank you for your understanding

Stefano

Читать больше
Размещено От Stefano G.
Aleksej H.
Aleksej H.
Moderator
Автор

"At the moment, it is not possible to alter an onClick property for a button in the default UI of the software." - too badfrown.

"You would need to do this either directly in the generated files after export, or by manually adding links inside Text Objects or similar, and then applying the code." - I know about it.But it's too bad option.

Thanks for the answer.

Читать больше
Размещено От Aleksej H.