Event tracking with data-attributes

I would like to target the click event with a certain data-attribute. Currently, the built-in variables only cover Click class, Click id, Click element and Click url.

Does anyone know how to build a custom variable e.g. with a custom JS function to enable this?

Thank you and best regards
Julian

Hi :slight_smile:

You can use Click element condition.

Here are some examples of this notation: [attribute] | CSS-Tricks - CSS-Tricks

Brilliant, thanks a lot @kuba!