Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Custom DTM event implementation using jQuery

Avatar

Avatar
Validate 10
Level 2
Bsmith320
Level 2

Likes

11 likes

Total Posts

47 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 2
Bsmith320
Level 2

Likes

11 likes

Total Posts

47 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
Bsmith320
Level 2

02-09-2016

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

Replies

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

05-09-2016

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

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

12-09-2016

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