I use CSS to implement event tracking in DTM. One of the issues I've run into is the CSS will be changed/updated without letting me know. I worked with a developer and we now have a unique attribute that will be used for all of event tracking.
He is an example of one of the unique attributes we are using within jQuery.
$("button[data-sc='my lists add item to list from modal']")
I tested this attribute in the developer console and it worked.
My question is how do I implement this in DTM? I don't think I can add this attribute into the "element tag or selector"
I thought I could add it to the page custom code, but I need to also add a tag or selector to the "element tag or selector"
If I am able to use the code, how do I set-up the variable(s) to report a value?
I would appreciate your help with this issue.
Thank you,
Bill