Tracking a single HTML Page


I have a single HTML file with JQuery functions to toggle viewing different DIVs within the same HTML page.
Showing and hiding pages depend on the buttons user click in the app which in essence is a Kiosk webapp.

So is there any method that allows me to use piwiki to track visitors behaviour? Like which buttons where most clicked, etc?


see : JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

Sometimes this year we will have full support for Custom Events, see ticket; Custom Events analytics, event tracking · Issue #472 · matomo-org/matomo · GitHub