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

Event based rule not firing on a link

Avatar

Avatar
Validate 1
Level 1
danielr53452174
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
danielr53452174
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
danielr53452174
Level 1

15-10-2015

Hi,

I'm having an issue where it looks like DTM is not detecting a click on an <a> tag

The link looks like this

<a href="javascript:;" class="ripplelink" data-rel="spending-based" rel="Needs-based" title="Select spending based"><img src="/views/main/images/tick-icon.png" alt="select-icon"></a>

I've set an event based rule to fire on the click of an <a> tag where rel=spending-based but looking in the console it looks like DTM doesn't detect a click on the <a> at all. Everything else seems to show up fine.

Any help would be greatly appreciated!

Thanks

Replies

Avatar

Avatar
Validate 250
Employee
TanmayMathur
Employee

Likes

245 likes

Total Posts

1,193 posts

Correct Reply

422 solutions
Top badges earned
Validate 250
Validate 100
Validate 25
Validate 50
Validate 10
View profile

Avatar
Validate 250
Employee
TanmayMathur
Employee

Likes

245 likes

Total Posts

1,193 posts

Correct Reply

422 solutions
Top badges earned
Validate 250
Validate 100
Validate 25
Validate 50
Validate 10
View profile
TanmayMathur
Employee

15-10-2015

Hi, 

Assuming you set the rule correctly it might be possible that you are not addressing the right class of the element. Could you check in your pagecode if there is a 'span' under your 'a' class ? 

It would be great if you could show us a screenshot of your link element code and your event based rule condition in DTM.

Regards,

TM

Avatar

Avatar
Validate 1
Level 1
danielr53452174
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
danielr53452174
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
danielr53452174
Level 1

15-10-2015

Hi TM,

Thanks for your reply - I've attached the screenshots as requested. I've tried addressing pretty much every property and I can't get the rule to fire. In the console the click on the <a> link doesn't show at all.

Daniel

Avatar

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Daniel,

I think you'll need to specify the class under the element tag.

Try passing 'ripplelink' instead of 'a' into the element tag and see if it works.

Rahul

Avatar

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Also, uncheck the 'manually assign properties & attributes' option.