Expand my Community achievements bar.

Custom DTM event implementation using jQuery

Avatar

Level 4

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

2 Replies

Avatar

Level 10

Hi ,

Can you please share more details?.Like will the css remain as in the example that you provided or the css will have different values ?. Is it going to be same element all the time etc ?.

Please provide a simple code source of  what you want to obtain and we can test and find solution for that.

Thanks & Regards

Parit Mittal

Avatar

Level 10

Hi ,

Is the above query resolved . If not, Can you please share the details asked by us so that  we can further look into your query.

Thanks & Regards

Parit Mittal