Elementor's button tracking with Matomo


We’re facing issues tracking button clicks with Matomo on a website built with Elementor.

Since Elementor buttons are actually < a > elements wrapped in multiple divs, styled to look like buttons, we can’t get {{Click ID}} or {{Click Classes}} to work. The buttons don’t have unique text either (there are too many buttons that we want to track).

We also can’t use URL builder because UTMs get lost by default after the first click.

What would be the best solution here?

Any info is much appreciated Thanks!