Click trigger target data attribute


(Michael) #1

Hi all

Really impressed so far with Matomo and the Tag Manager. I have a question. I want to target the click event on all elements with a certain data attribute (e.g <div data-name="test">). Is it possible to do this?

Thanks


(Lukas Winkler) #2

Hi,

Without trying it out: Did you check [data-name="test"] as a CSS selector?