Thank you so much @heurteph-ei, also need help to detect error clicks, dead clicks and mouse shakers. @Lukas do we have some type of code in Matomo for detecting these type of clicks?
Just FYI, not every conceivable feature needs to be part of Matomo core (or Tag Manager in this case).
That’s what plugins are for. One can easily create a plugin that contains Tags/Variables/Triggers/etc. and can then publish it on the marketplace for those who need it.
But the plugins are only for on-premise versions, with @heurteph-ei 's solution you can storage the value in a custom variable and this solution would work for both on-premise and cloud.