TrackEvent get parameters from selected element | Community
Skip to main content
Level 2
October 22, 2020
Question

TrackEvent get parameters from selected element

  • October 22, 2020
  • 1 reply
  • 985 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
October 28, 2020

@lonestarspock 

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