TrackEvent get parameters from selected element

Avatar

Avatar

lonestarspock

Avatar

lonestarspock

lonestarspock

22-10-2020

I want to track clicks on a few elements using a certain CSS selector. Right now, I'm adding a click listener using the JavaScript methods and using a for loop to add the trackEvent call to get parameters from the "my-custom-name" attribute in each selected element. Instead of using the document.querySelectorAll function to get parameters from the "my-custom-name" element attribute, is there a way to get those parameters and send them with the trackEvent call?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

skandg43264764

Avatar

skandg43264764

skandg43264764

27-10-2020

@lonestarspock 

It would be more clear if you can show us what exactly are you doing via screenshot or the code itself.