Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Matomo integration

    Hi,
    I am investigating possibilities for collecting front-end stats. Matomo (piwik) looks interesting in many aspects.
    Since we have single page applications we need to simulate different pages (urls) by manually setting URL property which will get reported.
    With https://github.com/ubegun/gwt-piwik-wrapper it is easy to communicate with Matomo javascript client code from java code.

    Now I am thinking what would be the least effort, maximum coverage approach.
    Most of our main features which are opened from navigation links are shown in tabs. Every time tab is created or selected I can track it as new page gets visited.

    My question for you is about tracking actions triggered by buttons which I want to interpret as Matomo events. There is no single point in our codebase where I could catch click events of all our button, since in many components we are instantiating directly smargwt buttons. Is there some way how I could register click handler globally? Maybe somehow through SmartClient API?

    I would be glad if you have also some other advises regarding Matomo integration.
    Regards
    Matus
Working...
X